Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
e92efcf7
"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "c9e3af8e4b7d7601601fc82c43d228960a802223"
Unverified
Commit
e92efcf7
authored
Aug 13, 2020
by
Sam Shleifer
Committed by
GitHub
Aug 13, 2020
Browse files
Mult rouge by 100: standard units (#6359)
parent
eda07efa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/seq2seq/utils.py
examples/seq2seq/utils.py
+1
-1
No files found.
examples/seq2seq/utils.py
View file @
e92efcf7
...
...
@@ -271,7 +271,7 @@ def calculate_rouge(output_lns: List[str], reference_lns: List[str], use_stemmer
aggregator
.
add_scores
(
scores
)
result
=
aggregator
.
aggregate
()
return
{
k
:
v
.
mid
.
fmeasure
for
k
,
v
in
result
.
items
()}
return
{
k
:
v
.
mid
.
fmeasure
*
100
for
k
,
v
in
result
.
items
()}
def
freeze_params
(
model
:
nn
.
Module
):
...
...
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