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

ValueError → AttributeError when partial_fit not implemented in Incremental's model #920

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stsievert
Copy link
Member

This PR changes the error type from ValueError to AttributeError when a model without partial_fit is passed to Incremental.fit or Incremental.partial_fit.

It also test that it raises error in the 4 relevant cases ({numpy, dask} data and {fit, partial_fit} methods).

Related issues/PRs
#919

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