-
-
Save BinarySpoon/faa36aa886bee73f60db48383d20ce61 to your computer and use it in GitHub Desktop.
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
# ACCURACY --> | |
#----------------- | |
# TRAIN DATABASE --> | |
print('#ACCURACY ON TRAIN') | |
pred_train = Classifier.predict(X_train) | |
print(classification_report(y_train, pred_train)) | |
print('Confusion Matrix: \n {}'.format(confusion_matrix(y_train, pred_train))) | |
print() | |
print('Accuracy Train: {}'.format(accuracy_score(y_train, pred_train))) | |
print() | |
# TEST DATABASE --> | |
print('#ACCURACY ON TEST') | |
pred_test = Classifier.predict(X_test) | |
print(classification_report(y_test,pred_test)) | |
print('Confusion Matrix: \n {}'.format(confusion_matrix(y_test,pred_test))) | |
print() | |
print('Accuracy Test: {}'.format(accuracy_score(y_test,pred_test))) | |
print() | |
print('#CODE PROCESSED') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment