def print_confusion_matrix(y_test, nb_predict_test):
print ("Confusion Matrix")
print("{0}".format(metrics.confusion_matrix(y_test, nb_predict_test, labels=['malware', 'benign'])))
print("")
print("Classification Report")
print(metrics.classification_report(y_test, nb_predict_test, labels=['malware', 'benign']))
评论列表
文章目录