- Machine Learning with Swift
- Alexander Sosnovshchenko
- 47字
- 2021-06-24 18:54:59
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.
推薦閱讀
- 24小時學會電腦組裝與維護
- Learning Cocos2d-x Game Development
- Effective STL中文版:50條有效使用STL的經驗(雙色)
- 深入淺出SSD:固態(tài)存儲核心技術、原理與實戰(zhàn)
- 施耐德SoMachine控制器應用及編程指南
- 電腦常見故障現(xiàn)場處理
- 電腦維護365問
- scikit-learn:Machine Learning Simplified
- Apple Motion 5 Cookbook
- Creating Flat Design Websites
- 筆記本電腦應用技巧
- 單片機開發(fā)與典型工程項目實例詳解
- Source SDK Game Development Essentials
- Internet of Things Projects with ESP32
- 數(shù)字媒體專業(yè)英語(第2版)