-
Notifications
You must be signed in to change notification settings - Fork 19.4k
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
How to find the predicted class for a specific testing sample? #5910
Comments
I assume your outputs are a softmax over classes. If your input is (n, 1, 28, 28) or whatever, run Cheers |
I resolved the issue. Actually model.prect_classes() function does that for me. I didn't know that. Thanks anyway. |
@codeheadshopon There is no function named |
@DNXie The function name is actually predict_classes() |
python throws me an error when I put model.predict_classes(). It says that it needs an argument for the function :( TypeError: predict_classes() missing 1 required positional argument: 'x' |
I have created a model in keras for classifying MNIST digits. Now I want to see the predicted classes for first 10 testing samples. How do I do that ?
The text was updated successfully, but these errors were encountered: