摘要:
#coding=utf-8 from numpy import * def loadSimpleData(): dataMat = matrix([[1. , 2.1], [2. , 1.1], [1.3 , 1.], [1. , 1.], [2. , 1.]]) classLabels = [1. 阅读全文
posted @ 2017-02-21 15:56
白白毛狗
阅读(910)
评论(0)
推荐(0)
摘要:
#coding:utf-8 from numpy import * #加载文档词向量数据以及相应文档类别,0表示正常言论,1表示侮辱性文字 def loadDataSet(): postingList = [['my','dog','has','flea','problems','help','pl 阅读全文
posted @ 2017-02-21 15:52
白白毛狗
阅读(879)
评论(0)
推荐(0)

浙公网安备 33010602011771号