Scikit-learn: How to obtain True Positive, True Negative, False Positive and False Negative

前端 未结 16 1227
一生所求
一生所求 2020-12-02 04:25

My problem:

I have a dataset which is a large JSON file. I read it and store it in the trainList variable.

Next, I pre-process

16条回答
  •  遥遥无期
    2020-12-02 05:09

    I have tried some of the answers and found them not working.

    This works for me:

    from sklearn.metrics import classification_report
    
    print(classification_report(y_test, predicted)) 
    

提交回复
热议问题