name | about | labels |
---|---|---|
Task | Use this template for task tracking | kind/task |
为Model API添加 fit
方法实现训练时验证的功能,同步补充 EarlyStop
等相关的callback能力。
对标业界框架通用的 EarlyStop
能力,实现 model.fit
训练时验证。
完善框架训练时验证及早停等callback能力,增强框架易用性。
mindspore.Model.fit
Interface Definition:
class Model:
def fit(self, epoch,
train_dataset,
valid_dataset=None,
valid_frequency=1,
callbacks=None,
dataset_sink_mode=True,
valid_dataset_sink_mode=True,
sink_size=-1,
valid_dataset_sink_size=-1,
**kwargs):
pass
mindspore.train.callback.EarlyStop
Interface Definition:
class EarlyStopping(Callback):
def __init__(self,
monitor='val_loss',
min_delta=0,
patience=0,
verbose=0,
mode='auto',
baseline=None):
xxx ...
Hey wangnan39, Welcome to MindSpore Community.
All of the projects in MindSpore Community are maintained by @mindspore-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/mindspore/community/blob/master/command.md to find the details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
hello, @wangnan39 , Has this problem been resolved? If yes, please close this issue, thanks!
你好, @wangnan39 , 这个问题是否已经解决了呢? 如果是的,请关闭这个issue, 谢谢!
hello, @wangnan39 , Has this problem been resolved? If yes, please close this issue, thanks!
你好, @wangnan39 , 这个问题是否已经解决了呢? 如果是的,请关闭这个issue, 谢谢!
hello, @wangnan39 , Has this problem been resolved? If it is in progress, please change the status to WIP. If the issue was solved, please close this issue, thanks!
你好, @wangnan39 , 这个问题是否已经解决了呢? 如果正在进行中,请把issue状态设置为WIP;如果问题已解决,请关闭这个issue, 谢谢!
登录 后才可以发表评论