Skip to content

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

Open
stsievert wants to merge 2 commits intodask:mainfrom
stsievert:incremental-partial_fit
Open

ValueError → AttributeError when partial_fit not implemented in Incremental's model#920
stsievert wants to merge 2 commits intodask:mainfrom
stsievert:incremental-partial_fit

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