您好,登錄后才能下訂單哦!
這篇文章主要介紹“Python機(jī)器學(xué)習(xí)k-近鄰算法怎么實(shí)現(xiàn)”,在日常操作中,相信很多人在Python機(jī)器學(xué)習(xí)k-近鄰算法怎么實(shí)現(xiàn)問(wèn)題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”Python機(jī)器學(xué)習(xí)k-近鄰算法怎么實(shí)現(xiàn)”的疑惑有所幫助!接下來(lái),請(qǐng)跟著小編一起來(lái)學(xué)習(xí)吧!
簡(jiǎn)單地說(shuō), k-近鄰算法采用測(cè)量不同特征值之間的距離方法進(jìn)行分類。
k-近鄰算法
優(yōu)點(diǎn):精度高、對(duì)異常值不敏感、無(wú)數(shù)據(jù)輸入假定。
缺點(diǎn): 計(jì)算復(fù)雜度高、空間復(fù)雜度高。
適用數(shù)據(jù)范圍: 數(shù)值型和標(biāo)稱型。
存在一個(gè)樣本數(shù)據(jù)集合, 也稱作訓(xùn)練樣本集, 并且樣本集中每個(gè)數(shù)據(jù)都存在標(biāo)簽, 知道樣本集中每一數(shù)據(jù)與所屬分類的對(duì)應(yīng)關(guān)系。
輸入沒(méi)有標(biāo)簽的新數(shù)據(jù)后, 將新數(shù)據(jù)的每個(gè)特征與樣本集中數(shù)據(jù)對(duì)應(yīng)的特征進(jìn)行比較, 然后算法提取樣本集中特征最相似數(shù)據(jù) (最近鄰)的分類標(biāo)簽。
一般來(lái)說(shuō), 只選擇樣本數(shù)據(jù)集中前 k個(gè)最相似的數(shù)據(jù), 這就是k-近鄰算法中k的出處, 通常 k 是不大于 20 的整數(shù)。
最后, 選擇 k個(gè)最相似數(shù)據(jù)中出現(xiàn)次數(shù)最多的分類, 作為新數(shù)據(jù)的分類。
k-近鄰算法的一般流程
收集數(shù)據(jù): 可以使用任何方法。
準(zhǔn)備數(shù)據(jù): 距離計(jì)算所需要的數(shù)值, 最好是結(jié)構(gòu)化的數(shù)據(jù)格式。
分析數(shù)據(jù): 可以使用任何方法。
訓(xùn)練算法: 此步驟不適用于 k-近鄰算法。
測(cè)試算法: 計(jì)算錯(cuò)誤率。
使用算法: 首先需要輸入樣本數(shù)據(jù)和結(jié)構(gòu)化的輸出結(jié)果, 然后運(yùn)行 k-近鄰算法判定輸 入數(shù)據(jù)分別屬于哪個(gè)分類, 最后應(yīng)用對(duì)計(jì)算出的分類執(zhí)行后續(xù)的處理。
from numpy import * import operator
def createDataSet(): group = array([[1.0,1.1],[1.0,1.0],[0,0],[0,0.1]]) labels = ['A','A','B','B'] return group, labels
group, labels = createDataSet()
group
array([[1. , 1.1], [1. , 1. ], [0. , 0. ], [0. , 0.1]])
labels
['A', 'A', 'B', 'B']
a = tile([3,3],(4,1)) a
array([[3, 3], [3, 3], [3, 3], [3, 3]])
其偽代碼如下:
對(duì)末知類別屬性的數(shù)據(jù)集中的每個(gè)點(diǎn)依次執(zhí)行以下操作:
計(jì)算已知類別數(shù)據(jù)集中的點(diǎn)與當(dāng)前點(diǎn)之間的距離;
按照距離遞增次序排序;
選取與當(dāng)前點(diǎn)距離最小的k個(gè)點(diǎn);
確定前k個(gè)點(diǎn)所在類別的出現(xiàn)頻率;
返回前k個(gè)點(diǎn)出現(xiàn)頻率最高的類別作為當(dāng)前點(diǎn)的預(yù)測(cè)分類。
def classify0(inX, dataSet, labels, k): dataSetSize = dataSet.shape[0] diffMat = tile(inX,(dataSetSize,1)) - dataSet sqDiffMat = diffMat**2 sqDistances = sqDiffMat.sum(axis=1) distances = sqDistances**0.5 sortedDistIndicies = distances.argsort() classCount = {} for i in range(k): voteIlabel = labels[sortedDistIndicies[i]] classCount[voteIlabel] = classCount.get(voteIlabel,0) + 1 sortedClassCount = sorted(classCount.items(),key = operator.itemgetter(1), reverse=True) return sortedClassCount[0][0]
classify0([0,0],group,labels,3)
'B'
數(shù)據(jù)集如下圖:
示例: 使用k-近鄰算法的手寫識(shí)別系統(tǒng)
收集數(shù)據(jù): 提供文本文件。
準(zhǔn)備數(shù)據(jù): 編寫函數(shù) classify0(), 將圖像格式轉(zhuǎn)換為分類器使用的list格式。
分析數(shù)據(jù): 在Python命令提示符中檢查數(shù)據(jù), 確保它符合要求。
訓(xùn)練算法: 此步驟不適用于 k-近鄰算法。
測(cè)試算法: 編寫函數(shù)使用提供的部分?jǐn)?shù)據(jù)集作為測(cè)試樣本, 測(cè)試樣本與非測(cè)試樣本 的區(qū)別在于測(cè)試樣本是已經(jīng)完成分類的數(shù)據(jù), 如果預(yù)測(cè)分類與實(shí)際類別不同, 則標(biāo)記 為一個(gè)錯(cuò)誤。
使用算法:本例沒(méi)有完成此步驟,若你感興趣可以構(gòu)建完整的應(yīng)用程序,從圖像中提 取數(shù)字, 并完成數(shù)字識(shí)別, 美國(guó)的郵件分棟系統(tǒng)就是一個(gè)實(shí)際運(yùn)行的類似系統(tǒng)。
圖像轉(zhuǎn)換為向量
def img2vector(filename): returnVect = zeros((1,1024)) fr = open(filename) for i in range(32): lineStr = fr.readline() for j in range(32): returnVect[0,32*i+j] = int(lineStr[j]) return returnVect
testVector = img2vector('digits/testDigits/0_13.txt') testVector[0,0:31]
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.])
from os import listdir
def handwritingClassTest(): hwLables = [] trainingFileList = listdir('digits/trainingDigits') m = len(trainingFileList) trainingMat = zeros((m,1024)) for i in range(m): fileNameStr = trainingFileList[i] fileStr = fileNameStr.split('.')[0] classNumStr = int(fileStr.split('_')[0]) hwLables.append(classNumStr) trainingMat[i,:] = img2vector('digits/trainingDigits/%s' % fileNameStr) testFileList = listdir('digits/testDigits') errorCount = 0.0 mTest = len(testFileList) for i in range(mTest): fileNameStr = testFileList[i] fileStr = fileNameStr.split('.')[0] classNumStr = int(fileStr.split('_')[0]) vectorUnderTest = img2vector('digits/testDigits/%s' % fileNameStr) classifierResult = classify0(vectorUnderTest, trainingMat,hwLables,3) print("the classifier came back width: %d, the real answer is: %d" % (classifierResult,classNumStr)) if(classifierResult != classNumStr): errorCount += 1.0 print("\nthe total number of errors is :%d" % errorCount) print("\nthe total error rate is:%f" % (errorCount/float(mTest)))
handwritingClassTest()
the classifier came back width: 8, the real answer is: 8 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 3, the real answer is: 8 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 6, the real answer is: 8 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 8 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 3, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 8 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 7, the real answer is: 1 the classifier came back width: 7, the real answer is: 9 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 9 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 6, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 9, the real answer is: 3 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 7, the real answer is: 7 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 9, the real answer is: 9 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 6, the real answer is: 6 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 3, the real answer is: 3 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 1, the real answer is: 1 the classifier came back width: 2, the real answer is: 2 the classifier came back width: 8, the real answer is: 8 the classifier came back width: 4, the real answer is: 4 the classifier came back width: 0, the real answer is: 0 the classifier came back width: 5, the real answer is: 5 the classifier came back width: 8, the real answer is: 8 the total number of errors is :10 the total error rate is:0.010571
到此,關(guān)于“Python機(jī)器學(xué)習(xí)k-近鄰算法怎么實(shí)現(xiàn)”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注億速云網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)?lái)更多實(shí)用的文章!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。