大兄弟 你确定是这样吗 我用IRIS集合做的测试 完全没问题
library(kernlab)
data(iris)
rbf <- rbfdot(sigma=0.1)
irismodel <- ksvm(Species~.,data=iris,type="C-bsvc",kernel=rbf,C=10,prob.model=TRUE)
fitted(irismodel)
predict(irismodel, iris[,-5], type="response")
|
楼主: 飞天玄舞6
|
6770
11
[问答] kernlab包的ksvm预测问题 |
|
已卖:3014份资源
学科带头人 13%
(VIP/贵宾)十级 24%
TA的文库 其他...
|
|
|
strive for the best, prepare for the worst.
![]() |
|
|
|
| ||
| ||
| ||
| ||
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


