rasbt / mlxtend

A library of extension and helper modules for Python's data analysis and machine learning libraries.
https://rasbt.github.io/mlxtend/
Other
4.82k stars 853 forks source link

Use params instead of fit_params (deprecated since 1.4) when calling cross_validate from sklearn #1082

Open jokari69 opened 5 months ago

jokari69 commented 5 months ago

Hello all,

I noticed the following warning site-packages/sklearn/model_selection/_validation.py:73: FutureWarning:fit_paramsis deprecated and will be removed in version 1.6. Pass parameters viaparamsinstead.

I think this is generated by the cross_val_score call on line 98 in the function _calc_score of the file utilitilies.py. It seems sklearn version 1.4 was just released on january 18 2024 which has the change and the future warning.

Let me know if this seems correct and how I can help to fix it.

kind regards,

Joris