![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
X-Wyatt
For free 邮箱whitezhangv5@gmail.com
展开
-
k-近邻算法
函数:tile(A,(x, y)) 重复A,x行y列tile(A,x) 重复A x次返回 array类型>>> numpy.tile([1,2],(1,2))array([1,2,1,2])mat.sum(axis=0) 计算行和mat.sum(axis=1) 计算列和argsort() 返回排序后的下标>>> aarray([3,1,2])>原创 2014-03-25 10:25:57 · 815 阅读 · 0 评论 -
Kaggle-Data Science London-1
import pylab as plimport numpy as npfrom sklearn.neighbors import KNeighborsClassifierfrom sklearn.metrics import classification_reportfrom sklearn.cross_validation import train_test_split,Stratif原创 2014-06-06 16:20:11 · 1202 阅读 · 0 评论