Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in caret.cv <- train(Survived #1

Open
Georgitanev opened this issue Sep 20, 2017 · 1 comment
Open

error in caret.cv <- train(Survived #1

Georgitanev opened this issue Sep 20, 2017 · 1 comment

Comments

@Georgitanev
Copy link

I've closed the whole Rstudio and run it again and the same error appearing (all packages where launched)
#install.packages(c("e1071", "caret", "doSNOW", "ipred", "xgboost"))
Any Idea, why I have this error?

caret.cv <- train(Survived ~ .,

  •               data = titanic.train,
    
  •               method = "xgbTree",
    
  •               tuneGrid = tune.grid,
    
  •               trControl = train.control)
    

Error in e$fun(obj, substitute(ex), parent.frame(), e$data) :
unable to find variable "optimismBoot"

@TheTS
Copy link

TheTS commented Oct 17, 2017

There is a bug in the latest caret build on CRAN that causes this error when parallel processing. It is fixed in the dev version, but not yet released on CRAN.

topepo/caret#706

To fix, install dev build directly from github:

devtools::install_github('topepo/caret/pkg/caret')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants