python cs596-029周-2-报告

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python cs596-029周-2-报告相关的知识,希望对你有一定的参考价值。

$ python recognize_faces.py 

======LOAD TRAINING DATA=======
- Mode, id, name, total images: training, 01, Tracy, 162
- Mode, id, name, total images: training, 02, Trish, 68
- Mode, id, name, total images: training, 03, Steven, 64

======LOAD TESTING DATA=======
- Mode, id, name, total images: testing, 00, friends, 0
- Mode, id, name, total images: testing, 01, Tracy, 28
- Mode, id, name, total images: testing, 02, Trish, 30
- Mode, id, name, total images: testing, 03, Steven, 13

======FITTING THE CLASSIFIER TO THE TRAINING SET=======
Done in 0.761 second(s).
Best estimator found by grid search: SVC(C=1000.0, cache_size=200, class_weight='auto', coef0=0.0, degree=3,
  gamma=0.01, kernel='rbf', max_iter=-1, probability=False,
  random_state=None, shrinking=True, tol=0.001, verbose=False)

==================RESULT==================
Confusion Matrix: 
        Tracy  Trish  Steven
Tracy      27      1       0
Trish      10     20       0
Steven      1      0      12
Classification Report: 
             precision    recall  f1-score   support

      Tracy       0.71      0.96      0.82        28
      Trish       0.95      0.67      0.78        30
     Steven       1.00      0.92      0.96        13

avg / total       0.87      0.83      0.83        71


        How to comprehend the report:
        - Recall value: "Given a true face of person X, how likely does the classifier detect it is X?
        - Precision value: "If the classifier predicted a face person X, how likely is it to be correct?


以上是关于python cs596-029周-2-报告的主要内容,如果未能解决你的问题,请参考以下文章

在按周分组的 2 个日期之间在 MYSQL 中生成报告

CS学员分享| R语言小白,如何用7周斩获名校导师推荐信

2019/3/17周进度报告

2月第4周网络安全报告:境内69.1万主机感染病毒

假期周进度报告2

3月第2周网络安全报告:高危漏洞数量涨幅超126%