Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaëtan Caillaut
minibert-deft2018
Commits
164924ca
Commit
164924ca
authored
Apr 01, 2021
by
Gaëtan Caillaut
Browse files
camembert in output
parent
ea5f7895
Changes
1
Hide whitespace changes
Inline
Side-by-side
eval.py
View file @
164924ca
...
...
@@ -344,9 +344,10 @@ if __name__ == "__main__":
for
e
in
range
(
1
,
11
):
if
task
==
"t1"
:
eval_t1_camembert
(
run
,
e
,
dev_loader
,
test_loader
)
scores
=
eval_t1_camembert
(
run
,
e
,
dev_loader
,
test_loader
)
elif
task
==
"t2"
:
eval_t2_camembert
(
run
,
e
,
dev_loader
,
test_loader
)
scores
=
eval_t2_camembert
(
run
,
e
,
dev_loader
,
test_loader
)
res
.
append
(
scores
)
df
=
pd
.
DataFrame
.
from_records
(
res
)
df
.
to_csv
(
"performances.csv"
,
quoting
=
csv
.
QUOTE_NONNUMERIC
,
index
=
False
)
Write
Preview
Supports
Markdown
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