摘要: from numpy import * ''' 生成数据 ''' def createData(): dataMat = matrix( [[0.],[1.],[2.],[3.],[4.],[5.],[6.],[7.],[8.],[9.]]) classLabels = [1.0,1.0,1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,-1... 阅读全文
posted @ 2016-12-01 02:35 日天大哥哥 阅读(274) 评论(0) 推荐(0) 编辑