Skip to content

Commit

Permalink
fix(thematos/runners/topic): add save method and implement batch incr…
Browse files Browse the repository at this point in the history
…ement
  • Loading branch information
entelecheia committed Aug 11, 2023
1 parent 7271ce7 commit b7dfb53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/thematos/runners/topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@ def run(self) -> None:
for args in tqdm(self.run_args.iter_configs(), total=self.run_args.total_runs):
if self.verbose:
logger.info("Running with args: %s", args)
self.batch_num += 1
self.model.update_model_args(**args)
self.model.train()
self._summaries_.add_model_summary(
overrides=args,
summary=self.model.model_summary_dict,
)
self.save()

def save(self) -> None:
self.save_result_summary()
self.save_config()

@property
def result_summary_file(self) -> Path:
Expand Down

0 comments on commit b7dfb53

Please sign in to comment.