问题描述
我正在使用caret :: train训练我的模型。我正在使用护林员方法来训练我的模型。游骑兵有很多参数,但是在插入符tuneGrid中,只有3个参数可以进行调整。除了这3个参数,我想调整更多的参数
tr <- caret::trainControl(method = 'cv',number = 10,search = 'grid')
Grd <- expand.grid(mtry = 3,splitrule = 'gini',min.node.size = 3,num.tree = 1000)
mdl <- caret::train(x = iris[,-ncol(iris)],y = iris[,ncol(iris)],method = 'ranger',trControl = tr,tuneGrid = Grd)
Error: The tuning parameter grid should have columns mtry,splitrule,min.node.size
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)