Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect error message #11

Closed
joaopfonseca opened this issue Jul 10, 2019 · 1 comment
Closed

Incorrect error message #11

joaopfonseca opened this issue Jul 10, 2019 · 1 comment

Comments

@joaopfonseca
Copy link
Collaborator

When k_neighbors>n_samples the error message displayed refers to an inexistent hyperparameter n_neighbors:

ValueError: Expected n_neighbors <= n_samples, but n_samples = 2, n_neighbors = 6

@georgedouzas
Copy link
Collaborator

The traceback of the error shows that is raised by the kneighbors method of the KNeighborsMixin class. So it refers to the name of one of its parameters (n_neighbors).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants