- 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.
推薦閱讀
- Arduino入門基礎教程
- Android NDK Game Development Cookbook
- 計算機維修與維護技術速成
- 分布式系統與一致性
- Creating Flat Design Websites
- Internet of Things Projects with ESP32
- 超大流量分布式系統架構解決方案:人人都是架構師2.0
- 筆記本電腦芯片級維修從入門到精通(圖解版)
- Intel FPGA權威設計指南:基于Quartus Prime Pro 19集成開發環境
- 單片機項目設計教程
- Mastering Quantum Computing with IBM QX
- UML精粹:標準對象建模語言簡明指南(第3版)
- Arduino案例實戰(卷Ⅳ)
- 計算機組裝與維護立體化教程(微課版)
- Machine Learning Projects for Mobile Applications