Currently it means per number of episodes. But it would make sense to change it to how many times we want to save the model?
suggest: round((max_steps_training/episode_horizon)/checkpoint_frequency), then replace the current self.checkpoint_frequency with this.
e.g.
self.num_ep_for_save = _round((max_steps_training/episode_horizon)/checkpointfrequency)
if self.network is not None and self.log_count % self.num_ep_for_save == 0:
self.network.save_models(
f"{self.algorithm}-checkpoint-{self.log_count}", self.directory
)
Currently it means per number of episodes. But it would make sense to change it to how many times we want to save the model? suggest: round((max_steps_training/episode_horizon)/checkpoint_frequency), then replace the current self.checkpoint_frequency with this.
e.g. self.num_ep_for_save = _round((max_steps_training/episode_horizon)/checkpointfrequency) if self.network is not None and self.log_count % self.num_ep_for_save == 0: self.network.save_models( f"{self.algorithm}-checkpoint-{self.log_count}", self.directory )