(self)
| 564 | |
| 565 | class Mario(Mario): |
| 566 | def save(self): |
| 567 | save_path = ( |
| 568 | self.save_dir / f"mario_net_{int(self.curr_step // self.save_every)}.chkpt" |
| 569 | ) |
| 570 | torch.save( |
| 571 | dict(model=self.net.state_dict(), exploration_rate=self.exploration_rate), |
| 572 | save_path, |
| 573 | ) |
| 574 | print(f"MarioNet saved to {save_path} at step {self.curr_step}") |
| 575 | |
| 576 | |
| 577 | ###################################################################### |
no outgoing calls
no test coverage detected