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

How to change the number of epochs when training networks #44

Closed
khoaguin opened this issue Jul 1, 2022 · 4 comments
Closed

How to change the number of epochs when training networks #44

khoaguin opened this issue Jul 1, 2022 · 4 comments

Comments

@khoaguin
Copy link

khoaguin commented Jul 1, 2022

Hi,

How can I define the number of training epochs for different networks? I have found that there is a variable named NUM_ITERATIONS in main.cpp, but not sure what it is, and also we cannot change it in makefile either.

Thank you.

@snwagh
Copy link
Owner

snwagh commented Jul 1, 2022

The variable is set src/globals.h so you can change it there.

@khoaguin
Copy link
Author

khoaguin commented Jul 5, 2022

I tried to change the variable NO_OF_EPOCHS in src/globals.h to different values, but nothing really happened

@khoaguin
Copy link
Author

khoaguin commented Jul 5, 2022

From the train function, I think that the NUM_ITERATIONS variable is actually the number of epochs to train the neural network. Am I wrong?

Screenshot from 2022-07-05 10-12-37

@snwagh
Copy link
Owner

snwagh commented Jul 5, 2022

So the codebase is designed to use NUM_ITERATIONS only, if you want to set using the number of epochs, you comment out this line and uncomment this line.

@khoaguin khoaguin closed this as completed Jul 6, 2022
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