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

added setting to skip x epochs when using train_and_test_on_datasets #258

Merged
merged 5 commits into from
Jul 1, 2023

Conversation

BartvanMarrewijk
Copy link
Contributor

@BartvanMarrewijk BartvanMarrewijk commented Apr 25, 2023

Summary:

For training it is not desirable to test at every epoch. This simple update solves this issue. By using a skip_epochs option in train_and_test_on_datasets

Checklist:

  • Your code is documented (To validate this, add your module to tests/documentation_test.py).
  • Your code is tested with unit tests.
  • You moved your Issue to the PR state.

Copy link
Member

@Dref360 Dref360 left a comment

Choose a reason for hiding this comment

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

Hello, thanks for the PR.
We can merge it once the comment is addressed and the formatting is done.

To do so, you can run make format.

if patience is not None and (e - best_epoch) > patience and (e > min_epoch_for_es):
# Early stopping
break
hist.append(self.get_metrics())
Copy link
Member

Choose a reason for hiding this comment

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

This is appending the metric twice I think. L184 already does it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I made an mistake in the PR, sorry for that

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi @studentWUR,
Thank you so much for your Pull Request. Would you mind pushing the requested change so that we can merge this branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for my late reply; pushing a pull request is new for me; so I am slightly confused. In my forked repo I fixed the abovementioned typo, but how to push this to your git? Can you merge it from mine repo

Copy link
Member

@Dref360 Dref360 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Dref360 Dref360 enabled auto-merge (squash) July 1, 2023 01:45
@Dref360 Dref360 merged commit def01e3 into baal-org:master Jul 1, 2023
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.

3 participants