Number of n_neighbors

Hi, thank you very much for the course :slight_smile:

I have a question, is there any method to check the most accurate number of n_neighbors for our data? Of course looking from the perspective of accuracy score.

Hello @romi9987, in Module 3 you will learn how to use tools such as the sklearn.model_selection.GridSearchCV to find the optimal hyperparameters of a model. In particular you can tune the n_neighbors hyperparameter to maximize the score.

Great, thank you very much :slight_smile: