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

Class MaxSaver

tensorpack/callbacks/saver.py:169–182  ·  view source on GitHub ↗

Separately save the model with maximum value of some statistics. See docs of :class:`MinSaver` for details.

Source from the content-addressed store, hash-verified

167
168
169class MaxSaver(MinSaver):
170 """
171 Separately save the model with maximum value of some statistics.
172
173 See docs of :class:`MinSaver` for details.
174 """
175 def __init__(self, monitor_stat, filename=None, checkpoint_dir=None):
176 """
177 Args:
178 monitor_stat(str): the name of the statistics.
179 filename (str): the name for the saved model.
180 Defaults to ``max-{monitor_stat}.tfmodel``.
181 """
182 super(MaxSaver, self).__init__(monitor_stat, True, filename=filename, checkpoint_dir=checkpoint_dir)

Callers 2

mnist-tflayers.pyFile · 0.85
mnist-convnet.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected