Machine Learning in Action 8.3分
读书笔记 2 Classifying with k-Nearest Neighbors

###This chapter covers - The knn algorithm - Parsing and import data from file - Creating scatter plots wiht Matplotlib - Normalizing Movie, classified into Romance and Action, with numbers of kick and kiss. ###For every point in our dataset: - calculate the distance between inX and the current point - sort the distance in increasing order - take k items with lowest distances to inX - find the majority class among these items - return the majority class as our prediction for class of inX

《Machine Learning in Action》的全部笔记 37篇
免费下载 iOS / Android 版客户端