Assignment 3
Assignment 3
There are also additional parameters that can be used for specific
purposes, such as n_jobs to control the number of CPU cores used for
computation, and metric_params to pass additional parameters to the
distance metric function.
• n_neighbors: 5
• weights: "uniform"
• algorithm: "auto"
• leaf_size: 30
• metric: "minkowski"
• p: 2
These default values are used when no values are specified for these
parameters during the initialization of the KNeighborsClassifier or
KNeighborsRegressor classes. However, it is recommended to tune
these parameters for the specific task and dataset to achieve the best
performance of the model.