摘要:
#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. 阅读全文
摘要:
#coding:utf-8 from numpy import * #加载文档词向量数据以及相应文档类别,0表示正常言论,1表示侮辱性文字 def loadDataSet(): postingList = [['my','dog','has','flea','problems','help','pl 阅读全文