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

Performance of the model #304

Open
DriraYosr opened this issue May 27, 2024 · 1 comment
Open

Performance of the model #304

DriraYosr opened this issue May 27, 2024 · 1 comment

Comments

@DriraYosr
Copy link

I don't know how to choose the best number of epochs. Is there a way to evaluate the model's performance throughout the epochs used in training ?

@kirby707
Copy link

The best number of epochs actually depends on your dataset. For example, the best number of epochs will be different for a small (and not-so-diverse) dataset vs. a large (and diverse) dataset.

A common practice is to split your dataset into Train and Validation splits and visualize Training Loss and Validation Loss for each epoch. The Training Loss usually goes down epoch after epoch but the Validation Loss usually reaches a minimum point and then starts going up again. Sometimes, the Validation Loss reaches the minimum point and just stays the same for the rest of the training run.

In either case, the epoch where the Validation Loss was the lowest: technically that is where the model showed the best performance (that model checkpoint should be able to analyze unseen data better than any other checkpoint).

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