Created
December 25, 2017 10:49
-
-
Save sagarhowal/f6ea89272f4d988de51318d9a2452840 to your computer and use it in GitHub Desktop.
Predicting the Test set results and Confusion Matrix in Keras
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Predicting the Test set results | |
y_pred = classifier.predict(X_test) | |
y_pred = (y_pred > 0.5) | |
# Making the Confusion Matrix | |
from sklearn.metrics import confusion_matrix | |
cm = confusion_matrix(y_test, y_pred) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment