-
Notifications
You must be signed in to change notification settings - Fork 47
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 batch_size = 'all' option? #159
Comments
Hi 👋, glad you're finding it useful! Would |
Yep! To replace the option to specify model.fit(X, y, batch_size = X.shape[0]) when fit(X, y, **kwargs) is removed, one could specify batch_size = 'all' on initialization. Should only take a few lines of code to implement. |
Agreed. Will leave this issue open to track. |
Thanks! |
Thats a decent argument for keeping fit |
Hey @john-veillette, I haven't implemented this yet because like @stsievert points out above, we may ended up keeping That said, I do think there are some use cases where For your use case, do you feel that you actually need Edit: I did a sample implementation, for reference, in #194. |
In addition to the implementation in #194, this could also be implemented via #167. Reference implementation here: https://www.adriangb.com/scikeras/refs/pull/167/merge/notebooks/DataTransformers.html#7.-Dynamically-setting-batch_size |
For my use case, **kwargs works just as well! That's how I currently have it implemented, anyhow. |
Implemented in #194 |
Hey devs, thanks for this package.
I see that **kwargs is being deprecated from .fit, which makes sense in the interest of making the API more consistent for grid search, etc. However, it still seems desirable to be able to specify batch_size based on the input dimensions in case users want to use vanilla rather than stochastic gradient descent. Maybe adding a batch_size = 'all' option in init would remove any need to specify batch_size in fit?
The text was updated successfully, but these errors were encountered: