Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
f099249c
Unverified
Commit
f099249c
authored
Oct 05, 2021
by
Boris Dayma
Committed by
GitHub
Oct 05, 2021
Browse files
fix(integrations): consider test metrics (#13888)
parent
0ddadbf0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/transformers/integrations.py
src/transformers/integrations.py
+4
-0
No files found.
src/transformers/integrations.py
View file @
f099249c
...
...
@@ -358,9 +358,13 @@ def rewrite_logs(d):
new_d
=
{}
eval_prefix
=
"eval_"
eval_prefix_len
=
len
(
eval_prefix
)
test_prefix
=
"test_"
test_prefix_len
=
len
(
test_prefix
)
for
k
,
v
in
d
.
items
():
if
k
.
startswith
(
eval_prefix
):
new_d
[
"eval/"
+
k
[
eval_prefix_len
:]]
=
v
elif
k
.
startswith
(
test_prefix
):
new_d
[
"test/"
+
k
[
test_prefix_len
:]]
=
v
else
:
new_d
[
"train/"
+
k
]
=
v
return
new_d
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment