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

Saving a model wrapped in SKLearnClassifier? #20887

Open
de-odex opened this issue Feb 9, 2025 · 1 comment
Open

Saving a model wrapped in SKLearnClassifier? #20887

de-odex opened this issue Feb 9, 2025 · 1 comment

Comments

@de-odex
Copy link

de-odex commented Feb 9, 2025

I've tried saving an SKLearnClassifier using pickle, but I don't seem able to because of TypeError: cannot pickle 'module' object. Is there a way to save a model wrapped in SKLearnClassifier? Should (Can?) I save just the internal .model_?

@sonali-kumari1
Copy link
Contributor

Hi @de-odex -

Could you please share a standalone code to reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants