patternManip.py 文件源码

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

项目:jingjuPhoneticSegmentation 作者: ronggong 项目源码 文件源码
def report_cv(clf,fv_test,target_test):

    print("Best parameters set found on development set:")
    print()
    print(clf.best_params_)
    print()
    print("Grid scores on development set:")
    print()
    for params, mean_score, scores in clf.grid_scores_:
        print("%0.3f (+/-%0.03f) for %r"
              % (mean_score, scores.std() * 2, params))
    print()

    print("Detailed classification report:")
    print()
    print("The model is trained on the full development set.")
    print("The scores are computed on the full evaluation set.")
    print()
    target_true, target_pred = target_test, clf.predict(fv_test)
    print(classification_report(target_true, target_pred))
    print()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号