performance.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:bguFinalProject 作者: liranfar 项目源码 文件源码
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']))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号