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

Using right model variables for prediction in the multiclass classification examples (sec 3.1)? #3

Open
robjm16 opened this issue Dec 13, 2017 · 0 comments

Comments

@robjm16
Copy link

robjm16 commented Dec 13, 2017

Great tutorial and notebooks! Thanks.

I think the model variables in the multiclass classification visualization section need to be updated from just "model" to "sr_model" (first snippet) and "deep_model" (second snippet) below:

y_pred_class = model.predict_classes(X_test, verbose=0)
y_test_class = np.argmax(y_test, axis=1)
print(classification_report(y_test_class, y_pred_class))
plot_confusion_matrix(model, X_test, y_test_class)

y_pred_class = model.predict_classes(X_test, verbose=0)
y_test_class = np.argmax(y_test, axis=1)
print(classification_report(y_test_class, y_pred_class))
plot_confusion_matrix(model, X_test, y_test_class)

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