- 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.
推薦閱讀
- 網絡服務器配置與管理(第3版)
- Deep Learning with PyTorch
- 基于ARM的嵌入式系統和物聯網開發
- 平衡掌控者:游戲數值經濟設計
- 電腦維護365問
- STM32嵌入式技術應用開發全案例實踐
- Intel Edison智能硬件開發指南:基于Yocto Project
- 無蘋果不生活:OS X Mountain Lion 隨身寶典
- 基于網絡化教學的項目化單片機應用技術
- 計算機電路基礎(第2版)
- 可編程邏輯器件項目開發設計
- 計算機組裝與維護(慕課版)
- Arduino案例實戰(卷Ⅳ)
- Applied Deep Learning with Keras
- Hands-On Markov Models with Python