第210页 Advanced Classification
36° (仰望星空 脚踏实地)
读过 集体智慧编程(影印版)
- 章节名:Advanced Classification
- 页码:第210页
#create a function to scale the input def scaleinput(d): return [(d.data[i] - low[i])/(high[i] - low[i]) for i in range(len(low))]应改为
#create a function to scale the input def scaleinput(d): return [(d[i] - low[i])/(high[i] - low[i]) for i in range(len(low))]因为下面用法传入的已经是data
41人阅读
36°对本书的所有笔记 · · · · · ·
-
第95页
这里的模拟退火的接受概率公式似乎不太对。 原文是 p = exp((-highcost-lowcost)/temperature...
-
第98页
if random.random() < 0.5 and vec[i] > domain[i][0]: return vec[0:i] + [vec[i] - step] +...
-
第210页 Advanced Classification
-
第213页 Advanced Classification
这一页的非线性分类函数错的有点离谱 -。- 原代码如下(部分地方经个人简化): def nlclassify(...
-
第217页 同上
svm的例子旧了 最新的代码应该如下: from svmutil import * prob = svm_problem([1,-1],[[1,...
> 查看全部7篇
说明 · · · · · ·
表示其中内容是对原文的摘抄