Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
hapi
提交
c42caaaa
H
hapi
项目概览
PaddlePaddle
/
hapi
通知
11
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
7
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hapi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
7
合并请求
7
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c42caaaa
编写于
4月 29, 2020
作者:
L
LielinJiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refine callback comments
上级
2dd4aa3a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
14 deletion
+14
-14
hapi/callbacks.py
hapi/callbacks.py
+14
-14
未找到文件。
hapi/callbacks.py
浏览文件 @
c42caaaa
...
...
@@ -124,27 +124,27 @@ class Callback(object):
self
.
model
=
model
def
on_train_begin
(
self
,
logs
=
None
):
"""Called at the start of train.
"""Called at the start of train
ing
.
"""
def
on_train_end
(
self
,
logs
=
None
):
"""Called at the end of train.
"""Called at the end of train
ing
.
"""
def
on_eval_begin
(
self
,
logs
=
None
):
"""Called at the start of eval.
"""Called at the start of eval
uation
.
"""
def
on_eval_end
(
self
,
logs
=
None
):
"""Called at the end of
trai
n.
"""Called at the end of
evaluatio
n.
"""
def
on_test_begin
(
self
,
logs
=
None
):
"""Called at the
test of begin
.
"""Called at the
beginning of predict
.
"""
def
on_test_end
(
self
,
logs
=
None
):
"""Called at the
test of end
.
"""Called at the
end of predict
.
"""
def
on_epoch_begin
(
self
,
epoch
,
logs
=
None
):
...
...
@@ -156,35 +156,35 @@ class Callback(object):
"""
def
on_train_batch_begin
(
self
,
step
,
logs
=
None
):
"""Called at the beginning of each batch in
`train` mode
.
"""Called at the beginning of each batch in
training
.
"""
def
on_train_batch_end
(
self
,
step
,
logs
=
None
):
"""Called at the end of each batch in
`train` mode
.
"""Called at the end of each batch in
training
.
"""
def
on_eval_batch_begin
(
self
,
step
,
logs
=
None
):
"""Called at the beginning of each batch in
`eval` mode
.
"""Called at the beginning of each batch in
evaluation
.
"""
def
on_eval_batch_end
(
self
,
step
,
logs
=
None
):
"""Called at the end of each batch in
`eval` mode
.
"""Called at the end of each batch in
evaluation
.
"""
def
on_test_batch_begin
(
self
,
step
,
logs
=
None
):
"""Called at the beginning of each batch in
`test` mode
.
"""Called at the beginning of each batch in
predict
.
"""
def
on_test_batch_end
(
self
,
step
,
logs
=
None
):
"""Called at the end of each batch in
`test` mode
.
"""Called at the end of each batch in
predict
.
"""
class
ProgBarLogger
(
Callback
):
"""Logger callback function
Args:
log_freq (int): The frequency, in number of steps, the
training logs
are printed. Default: 1.
log_freq (int): The frequency, in number of steps, the
logs such as `loss`,
`metrics`
are printed. Default: 1.
verbose (int): The verbosity mode, should be 0, 1, or 2.
0 = silent, 1 = progress bar, 2 = one line per epoch. Default: 2.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录