自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Eminem1147的博客

NJU SE Master

  • 博客(3)
  • 收藏
  • 关注

原创 Machine Learning in Action_CH2_3_使用kNN手写数字识别

from numpy import * import operator from os import listdir # kNN def classify0(inX, dataSet, labels, k): dataSetSize = dataSet.shape[0] # 获得向量第一维长度 diffMat = tile(inX, (dataSetSize, 1)) - dat

2017-04-27 15:48:19 299

原创 Machine Learning in Action_CH2_2_使用kNN改进约会网站的配对效果

from numpy import * import operator # 创建数据 def createDataBase(): group = array([[1.0, 1.1], [1.0, 1.0], [0, 0], [0, 0.1]]) # numpy向量 labels = ['A', 'A', 'B', 'B'] # 列表 return group, label

2017-04-27 08:56:38 362

原创 Machine Learning in Action_CH2_1_kNN

from numpy import * import operator def createDataBase(): 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,

2017-04-19 21:30:06 259

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除