KNN Digit Classifier 源码
KNN二进制数字分类 单独的泡菜数据 所有泡菜数据均来自MNIST手写数字数据库 import pickle import numpy as np import matplotlib . pyplot as plt import sklearn . neighbors as nb with open ( "mnistTVT.pickle" , "rb" ) as f : Xtrain , Ttrain , Xval , Tval , Xtest , Ttest = pickle . load ( f ) # reduce training data to contain only digits d1 and d2 def reduce_data ( d1 , d2 , xtrain , ttrain , xval , tval , xtest , ttest ): # fu
文件列表
KNN-Digit-Classifier-main.zip
(预估有个6文件)
KNN-Digit-Classifier-main
README.md
5KB
figures
output_9_0.png
13KB
output_18_0.png
11KB
output_15_0.png
14KB
output_19_0.png
17KB
digitsKNNClassifier.py
4KB
暂无评论