MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / _trigger

Method _trigger

examples/DeepQNetwork/expreplay.py:392–396  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

390 self._init_memory()
391
392 def _trigger(self):
393 mean, max = self.runner.reset_stats()
394 if mean is not None:
395 self.trainer.monitors.put_scalar('expreplay/mean_score', mean)
396 self.trainer.monitors.put_scalar('expreplay/max_score', max)

Callers

nothing calls this directly

Calls 2

reset_statsMethod · 0.80
put_scalarMethod · 0.80

Tested by

no test coverage detected