随笔分类 -  机器学习

numpy中np.max和np.maximum
摘要:1.np.max(a, axis=None, out=None, keepdims=False) 求序列的最值 最少接受一个参数 axis默认为axis=0即列向,如果axis=1即横向 ex: >> np.max([-2, -1, 0, 1, 2]) 2 >> np.max([-2, -1, 0, 阅读全文

posted @ 2018-07-04 19:44 Magic_chao 阅读(46179) 评论(3) 推荐(3)

KNN--Python实现
摘要:最后运行程序得到如下结果: the total error rate is: 0.400000 2 其中,tt.txt文件如下: 阅读全文

posted @ 2018-01-31 16:17 Magic_chao 阅读(253) 评论(0) 推荐(0)

导航