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

Add model_filename and keep_tempfiles attrs to CRF instance #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HarryCaveMan
Copy link

Add model_filename and keep_tempfiles attr to self to comply with sklearn clone api which requires all __init__ args be instance attributes.

This is imperative for functionalities in sklearn which use parameterized cloning of estimators. The API requires all __init__ arguments to also be instance attributes or an AttributeError` will be raised:
https://github.com/scikit-learn/scikit-learn/blob/7f9bad99d6e0a3e8ddf92a7e5561245224dab102/sklearn/base.py#L194C16-L194C16

Add `model_filename` and `keep_tempfiles attr` to `self` to comply with sklearn clone api which requires all `__init__` args be instance attributes
@HarryCaveMan HarryCaveMan changed the title Update estimator.py Add model_filename and keep_tempfiles attrs to CRF instance Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant