我正在执行cforest回归,该回归无需指定控件即可工作。这是我的代码:
Test1 = cforest(X.OfPrevious ~ State + X.Change1YrSoy + X.Change2YrSoy + X.Change1YrCorn +
X.Change2YrCorn +X.Change1YrW + X.Change2YrW + X.Change1YrCotton + X.Change2YrCotton +
FebWASDECO.USoy+FebWASDECO.UCorn+FebWASDECO.UWheat +FebWASDECO.UCotton +NovWASDECO.USoy +
NovWASDECO.UCorn + NovWASDECO.UWheat + NovWASDECO.Ucotton + DecSoyCornRatio +
JanSoyCornRatio+DecSoyWheatRatio+JanSoyWheatRatio+DecSoyCottonRatio+
JanSoyCottonRatio, trainme1, control = ctree_control(alpha = 0.02))
没有control = ctree_control(alpha = 0.02)
部分,cforest可以正常工作。
但是,一旦我尝试将控件的默认alpha值从0.05拧紧,就会收到错误消息
“ ctree_control中的错误(alpha = 0.02):未使用的参数(alpha = 0.02)“
请帮助我,哈哈