You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling method bag without bagcontrol results in numerous errors, better would be to have a standard bagcontrol so the function train(x, y, method = "bag") could be called in a similar way like the working function train(x, y, method = "knn")
>test_reg_none_model<- train(x, y, method="bag")
Somethingiswrong; alltheRMSEmetricvaluesaremissing:RMSERsquaredMin.:NAMin.:NA1stQu.:NA1stQu.:NAMedian:NAMedian:NAMean:NaNMean:NaN3rdQu.:NA3rdQu.:NAMax.:NAMax.:NANA's :1 NA's:1Errorin train.default(x, y, method="bag") :StoppingInaddition:Therewere26 warnings (use warnings() toseethem)
Solution:
This does not work with a standard call train(x,y, "bag") , it requires bagControl parameters.
set.seed(123)
test_reg_none_model<- train(x, y, method="bag",
bagControl= bagControl(fit=ctreeBag$fit,
predict=ctreeBag$pred,
aggregate=ctreeBag$aggregate))
The text was updated successfully, but these errors were encountered:
Calling method bag without bagcontrol results in numerous errors, better would be to have a standard bagcontrol so the function train(x, y, method = "bag") could be called in a similar way like the working function train(x, y, method = "knn")
Solution:
This does not work with a standard call train(x,y, "bag") , it requires bagControl parameters.
The text was updated successfully, but these errors were encountered: