未验证 提交 b538c6d7 编写于 作者: J Jiaqi Liu 提交者: GitHub

update callback doc, test=document_fix (#33802)

上级 5e744096
......@@ -126,7 +126,8 @@ class CallbackList(object):
class Callback(object):
"""
Base class used to build new callbacks.
Base class used to build new callbacks. And new callbacks could also
terminate training by setting `model.stop_training=True`.
Examples:
......@@ -685,7 +686,8 @@ class LRScheduler(Callback):
class EarlyStopping(Callback):
"""Stop training when the given monitor stopped improving during evaluation.
"""Stop training when the given monitor stopped improving during evaluation
by setting `model.stop_training=True`.
Args:
monitor(str): Quantity to be monitored. Default: 'loss'.
mode(str|None): Mode should be one of 'auto', 'min' or 'max'. In 'min'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册