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

Full batch neural network #157

Open
SULVAL opened this issue Sep 6, 2024 · 1 comment
Open

Full batch neural network #157

SULVAL opened this issue Sep 6, 2024 · 1 comment

Comments

@SULVAL
Copy link

SULVAL commented Sep 6, 2024

Hi! I don't know if i got it right reading documentation and examples. However my question is: in order to train a neural network in full bartch mode (that is, using all the available instancdes), is it correct to impose "batchsize: number_of_all_available_instances" in the RegressionNeuralNetLearner constructor ?

Tnx a lot in advance

@mdabros
Copy link
Owner

mdabros commented Sep 8, 2024

Hi @SULVAL

The implementation in SharpLearning is not intended for running in "full batch mode" as such. The all the different optimizers er based on stochastic gradient descent, so is designed for mini-batch learning. However, if you want to try and use it for "full batch" learning, you are correct. The batch size should be set to the number of examples or instances in the training set. Be aware that it might require a lot of memory to run in this mode.

Best regards
Mads

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

No branches or pull requests

2 participants