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

Method _trigger

examples/DeepQNetwork/common.py:129–137  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 self.input_names, self.output_names)] * NR_PROC
128
129 def _trigger(self):
130 t = time.time()
131 mean, max = eval_with_funcs(
132 self.pred_funcs, self.eval_episode, self.get_player_fn)
133 t = time.time() - t
134 if t > 10 * 60: # eval takes too long
135 self.eval_episode = int(self.eval_episode * 0.94)
136 self.trainer.monitors.put_scalar('mean_score', mean)
137 self.trainer.monitors.put_scalar('max_score', max)

Callers

nothing calls this directly

Calls 2

put_scalarMethod · 0.80
eval_with_funcsFunction · 0.70

Tested by

no test coverage detected