Separately save the model with maximum value of some statistics. See docs of :class:`MinSaver` for details.
| 167 | |
| 168 | |
| 169 | class 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) |
no outgoing calls
no test coverage detected