摘要: 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 def classify0(inX, ... 阅读全文
posted @ 2018-04-12 17:46 菜鸟key 阅读(116) 评论(0) 推荐(0) 编辑