#285·golearn

保存的 KNN 分类器模型和加载的模型不给出相同的结果。

作者: juanma9613创建于 2023年1月6日更新于 2023年1月11日

(base) asdads@ASDF-02Y611MJHC8-2 serve_first_mlmodel % go run main.go Load our csv data Initialize a new KNN classifier Print our summary metrics Reference Class True Positives False Positives True Negatives Precision Recall F1 Score


Iris-virginica 31 1 66 0.9688 0.9688 0.9688 Iris-setosa 35 0 64 1.0000 1.0000 1.0000 Iris-versicolor 31 1 66 0.9688 0.9688 0.9688 Overall accuracy: 0.9798 writer: &{0xc00012c630 0xc0000145f8 0xc00019c380 }##### USING LOADED MODEL Print our summary metrics of loaded model Reference Class True Positives False

内容来源: sjwhitworth/golearn