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
gaoqiong
lm-evaluation-harness
Commits
e3c74cc0
Commit
e3c74cc0
authored
Nov 04, 2021
by
Jonathan Tow
Browse files
Add newline to EOF
parent
9e336866
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/truthfulqa.py
lm_eval/tasks/truthfulqa.py
+1
-1
No files found.
lm_eval/tasks/truthfulqa.py
View file @
e3c74cc0
...
...
@@ -405,4 +405,4 @@ class TruthfulQAGeneration(Task):
for
ref
,
pred
in
zip
(
refs
,
preds
):
aggregator
.
add_scores
(
scorer
.
score
(
ref
,
pred
))
result
=
aggregator
.
aggregate
()
return
{
type
:
result
[
type
].
mid
.
fmeasure
*
100
for
type
in
rouge_types
}
\ No newline at end of file
return
{
type
:
result
[
type
].
mid
.
fmeasure
*
100
for
type
in
rouge_types
}
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