04pallav
9/11/2017 - 10:30 PM

Classification report,confusion matrix

Classification report,confusion matrix

from sklearn.metrics import accuracy_score, precision_recall_curve
from sklearn.metrics import classification_report
from sklearn.metrics import confusion_matrix
print(classification_report(y_true, y_pred))
print(confusion_matrix(y_test, y_pred))