官术网_书友最值得收藏!

Confusion matrix

Confusion matrix helps to see what types of errors occur more often:

In []: 
from sklearn.metrics import confusion_matrix 
confusion_matrix(y_test, tree_model.predict(X_test)) 
Out[]: 
array([[128,  20], 
       [ 17, 135]]) 

This is how to read and interpret such matrices:

The bigger the numbers on the matrix diagonally, the better.

主站蜘蛛池模板: 丰镇市| 忻州市| 突泉县| 娱乐| 江山市| 华坪县| 黄骅市| 龙口市| 梁山县| 固始县| 连平县| 哈巴河县| 曲阳县| 突泉县| 陕西省| 平利县| 徐闻县| 武冈市| 朝阳区| 八宿县| 龙井市| 大竹县| 怀安县| 罗源县| 瑞丽市| 东明县| 景东| 台北县| 舞钢市| 龙门县| 平江县| 郧西县| 永德县| 克东县| 阳原县| 固始县| 荃湾区| 泸定县| 连云港市| 九龙城区| 广灵县|