MachineLearning in Action code
friedhelm_739
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python记录 k-nearest neighbor
shape 函数: 建立一个4×2的矩阵c, c.shape[1] 为第一维的长度,c.shape[0] 为第二维的长度。 [plain] view plain copy >>> c = array([[1,1],[1,2],[1,3],[1,4]]) >>> c.shape (4, 2) >>> c.shape[转载 2017-12-11 14:05:07 · 363 阅读 · 0 评论 -
python记录 trees
log()函数: log()方法返回x的自然对数,对于x>0。 以下是log()方法的语法: 1 2 3 importmath math.log( x ) 注意:此函数是无法直接访问的,所以我们需要导入math模块,然后需要用math的静态对象来调用这个函数。 参转载 2017-12-15 12:28:36 · 401 阅读 · 0 评论
分享