Skip to content

ENH: max_iter for Incremental - #266

Open
TomAugspurger wants to merge 1 commit into
dask:mainfrom
TomAugspurger:incremental-max-iter
Open

TomAugspurger wants to merge 1 commit into
dask:mainfrom
TomAugspurger:incremental-max-iter

Conversation

@TomAugspurger

Copy link
Copy Markdown
Member

See #264

I don't think this closes #264. We would want some kind of actual stopping criterion for that.

For now, this provides a convenient way to make multiple passes over the dataset.

I'm not at all sure what the default should be. In #258 (comment) @stsievert suggested 5.

Having max_iter=1 by default makes explaining / understanding Incremental easier. "Dask-ML just makes the partial_fit calls for you". But I'm not sold on that.

Comment thread dask_ml/wrappers.py
a single NumPy array, which may exhaust the memory of your worker.
You probably want to always specify `scoring`.

max_iter : int, default 1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of max in the name is strange to me here. It looks like we always choose this number. Perhaps this is a convention though?

@TomAugspurger

TomAugspurger commented Jul 6, 2018 via email

Copy link
Copy Markdown
Member Author

Comment thread dask_ml/wrappers.py
max_iter : int, default 1
The maximum number of passes over the training data (aka epochs).
It only impacts the behavior in the ``fit`` method, and not
`partial_fit`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo:

- `partial_fit`
+ ``partial_fit``

Comment thread dask_ml/wrappers.py
a single NumPy array, which may exhaust the memory of your worker.
You probably want to always specify `scoring`.

max_iter : int, default 1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the default be 1? That seems low. I'd choose a higher value, at least 10.

Base automatically changed from master to main February 2, 2021 03:43

This branch has not been deployed

No deployments
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.

Multiple epochs for Incremental

3 participants