curso-r/treesnip

all models failed: subscript out of bounds when tuning lightgbm in tidymodels (kaggle code)

verajosemanuel opened this issue · 1 comments

First of all, thanks for treesnip package. I love to use tidymodels with lightgbm.

But I get an error trying to run your code from Kaggle here:

https://www.kaggle.com/athosdamiani/lightgbm-with-tidymodels

Maybe needs some upgrade as I am getting this message:


adult_tune_grid <- adult_wf %>%
   tune_grid(
     resamples = adult_resamples,
     grid = adult_grid,
     control = control_grid(verbose = FALSE),
     metrics = metric_set(roc_auc)
   )

adult_tune_grid <- adult_wf %>%
   tune_grid(
     resamples = adult_resamples,
     grid = adult_grid,
     control = control_grid(verbose = FALSE),
     metrics = metric_set(roc_auc)
   )
Warning messages:
1:  All models failed. See the `.notes` column. 
Run `rlang::last_error()` to see where the error occurred.

x 1.2 GiB [master*]> adult_tune_grid$.notes
[[1]]
# A tibble: 1 x 1
  .notes                                                           
  <chr>                                                            
1 internal: Error in pkg_list[[1]]: subscript out of bounds

[[2]]....

solved installing tree package