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

sklearn update to _fit_single_estimator #528

Open
ohsosunny opened this issue Jun 2, 2024 · 3 comments
Open

sklearn update to _fit_single_estimator #528

ohsosunny opened this issue Jun 2, 2024 · 3 comments
Labels

Comments

@ohsosunny
Copy link

sample_weight=sample_weight,

sklearn update in https://github.com/scikit-learn/scikit-learn/blob/7398114752a056edffb6c768393e61c32d56a6c6/sklearn/ensemble/_base.py#L21C22-L21C32 no longer has sample_weight as parameter. It needs fit_params instead.

@kennethshsu
Copy link
Collaborator

Hi @ohsosunny, are you proposing that we change the name of the variable from sample_weight to fit_params? Do you think sample_weight is an inappropriate use in the package? Why?

@ohsosunny
Copy link
Author

Oh! Yes, the commit in scikit-learn/scikit-learn@77a63e7 for sklearn _fit_single_estimator updated sample_weight with fit_params. chainladder-python/chainladder/workflow/voting.py needs to pass in fit_params

@Vu1992
Copy link

Vu1992 commented Sep 26, 2024

Hello, i think we need the voting chain to work as sklearn has changed sample_weight to fit_params

jbogaardt added a commit that referenced this issue Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants