KNN-Digit-Classifier

时间:2024-04-21 20:00:16
【文件属性】:

文件名称:KNN-Digit-Classifier

文件大小:56KB

文件格式:ZIP

更新时间:2024-04-21 20:00:16

Python

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
----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)

网友评论