(self,
start_epoch: int = 1,
test_at_most_every_n_epochs: int = 10,
test_at_least_every_n_epochs: int = 20,
test_on_new_best_validation: bool = True,
ignore_first_n_epochs: int = 5,
)
| 5 | |
| 6 | class TestingScheduleCallback: |
| 7 | def __init__(self, |
| 8 | start_epoch: int = 1, |
| 9 | test_at_most_every_n_epochs: int = 10, |
| 10 | test_at_least_every_n_epochs: int = 20, |
| 11 | test_on_new_best_validation: bool = True, |
| 12 | ignore_first_n_epochs: int = 5, |
| 13 | ): |
| 14 | self.test_at_most_every_n_epochs = test_at_most_every_n_epochs |
| 15 | self.test_at_least_every_n_epochs = test_at_least_every_n_epochs |
| 16 | self.test_on_new_best_validation = test_on_new_best_validation |
| 17 | self.untested_epochs = 1 |
| 18 | self.cur_epoch = start_epoch |
| 19 | self.ignore_first_n_epochs = ignore_first_n_epochs |
| 20 | |
| 21 | def __call__(self, is_new_best_val_model: bool = False) -> bool: |
| 22 | do_test = False |
nothing calls this directly
no outgoing calls
no test coverage detected