【发布时间】:2018-08-04 18:54:28
【问题描述】:
我正在使用这个库 https://www.npmjs.com/package/machine_learning 使用 SVM 使用机器学习来做软件
根据SVM的例子:
svm.train({
C : 1.1, // default : 1.0. C in SVM.
tol : 1e-5, // default : 1e-4. Higher tolerance --> Higher precision
max_passes : 20, // default : 20. Higher max_passes --> Higher precision
alpha_tol : 1e-5, // default : 1e-5. Higher alpha_tolerance --> Higher precision
kernel : { type: "polynomial", c: 1, d: 5}
// default : {type : "gaussian", sigma : 1.0}
// {type : "gaussian", sigma : 0.5}
// {type : "linear"} // x*y
// {type : "polynomial", c : 1, d : 8} // (x*y + c)^d
// Or you can use your own kernel.
// kernel : function(vecx,vecy) { return dot(vecx,vecy);}
});
参数 C 告诉 SVM 优化您希望避免对每个训练示例进行错误分类的程度。
其他参数我不明白。
【问题讨论】:
标签: machine-learning