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
I have found an odd bug on both the current CRAN and dev versions of caret which is related to zachmayer/caretEnsemble#171. The error is that predict.train(model, newdata, type = 'prob') does not work consistently for single case values of newdata for gbm models. Here's an MWE using the iris dataset:
I have found an odd bug on both the current CRAN and
dev
versions ofcaret
which is related to zachmayer/caretEnsemble#171. The error is thatpredict.train(model, newdata, type = 'prob')
does not work consistently for single case values of newdata forgbm
models. Here's an MWE using theiris
dataset:This nicely produces:
And if we pass in newdata, that works too:
predict(gbmMod, type = "prob", newdata = iris[100:105, c(1:2)])
:But, if newdata only has 1 row:
predict(gbmMod, type = "prob", newdata = iris[100, c(1:2)])
:The text was updated successfully, but these errors were encountered: