chainer.training.triggers.MinValueTrigger¶
-
class
chainer.training.triggers.
MinValueTrigger
(key, trigger=(1, 'epoch'))[source]¶ Trigger invoked when specific value becomes minimum.
For example you can use this trigger to take snapshot on the epoch the validation loss is minimum.
- Parameters
key (str) – Key of value. The trigger fires when the value associated with this key becomes minimum.
trigger – Trigger that decides the comparison interval between current best value and new value. This must be a tuple in the form of
<int>, 'epoch'
or<int>, 'iteration'
which is passed toIntervalTrigger
.
Methods