Skip to content

hiahia121/pythonStudy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pythonStudy

#python 实现最简单的k-近邻算法 #数据点(1,1.1)为A类,数据点(0,0.1)为B类,将新数据点(0,0)用这个简单的K-近邻算法,进行分类 #在python中依次输入以下命令

import KNN group,labels=KNN.createDataSet() group labels KNN.classify([0,0],group,labels,3) 得出结果 'B'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages