solegalli / feature-selection-for-machine-learning

Code repository for the online course Feature Selection for Machine Learning
https://www.courses.trainindata.com/p/feature-selection-for-machine-learning
Other
302 stars 337 forks source link

Feature Selection in Machine Learning with Python: sklearn\model_selection\_validation.py:73: FutureWarning: `fit_params` is deprecated #9

Open vonczege opened 7 months ago

vonczege commented 7 months ago

In Chapter Six (wrapper methods, exhaustive search) of the text noted above, the code on page 106 (efs = EFS(estimator=RandomRorestClassifier...) spawns the error below (quite a few times since it is evaluating a lot models). The code still works and the results are good bit it is a lot of warnings...

Likely an easy change. Or, if the warning can be suppressed, let me know how.

I am enjoying the book and using the product!

Thanks!

Allen allen.v.wass@gmail.com

sklearn\model_selection_validation.py:73: FutureWarning: fit_params is deprecated and will be removed in version 1.6. Pass parameters via params instead.

solegalli commented 7 months ago

Thank you! I'll leave the issue open till I update the book, hopefully in the next few months!