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

code for K NN, #Making confusion matrix, line 40 #1

Open
nishantra4 opened this issue Oct 25, 2019 · 0 comments
Open

code for K NN, #Making confusion matrix, line 40 #1

nishantra4 opened this issue Oct 25, 2019 · 0 comments

Comments

@nishantra4
Copy link

Making confusion matrix

from sklearn.metrics import confusion_matrix
cm = confusion_matrix(y_test, y_pred)

getting an error
"ValueError: Input contains NaN, infinity or a value too large for dtype('float64')."

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

1 participant