MCPcopy Create free account
hub / github.com/RolnickLab/climart / __init__

Method __init__

climart/utils/callbacks.py:7–19  ·  view source on GitHub ↗
(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,
                 )

Source from the content-addressed store, hash-verified

5
6class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected