curso-r / treesnip

Parsnip backends for `tree`, `lightGBM` and `Catboost`
https://curso-r.github.io/treesnip
GNU General Public License v3.0
85 stars 13 forks source link

Warning with new lightgbm #50

Closed dfalbel closed 2 years ago

dfalbel commented 2 years ago
predict.lgb.Booster: Found the following passed through '...': predict_disable_shape_check. These will be used, but in future 
releases of lightgbm, this warning will become an error. Add these to 'params' instead. See ?predict.lgb.Booster for 
documentation on how to call this function.
amazongodman commented 2 years ago

@dfalbel

I found the cause of the problem. The error can be removed by removing "feature_pre_filter = FALSE" from line 274 of lightgbm.R. I've submitted a pull request, but I'm not sure if there will be an update to treesnip in the near future.

dfalbel commented 2 years ago

Thanks @amazongodman