|View source on GitHub|
Triggers on every fixed interval.
tf_agents.train.interval_trigger.IntervalTrigger( interval: int, fn: Callable[, None], start: int = 0 )
Note that as long as the >=
interval number of steps have passed since the
last trigger, the event gets triggered. The current value is not necessarily
interval steps away from the last triggered value.
||The triggering interval.|
||callable with no arguments that gets triggered.|
||An initial value for the trigger.|
reset() -> None
Resets the trigger interval.
set_start( start: int ) -> None
__call__( value: int, force_trigger: bool = False ) -> None
Maybe trigger the event based on the interval.
||the value for triggering.|
If True, the trigger will be forced triggered unless the
last trigger value is equal to