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
b5ba758b
Unverified
Commit
b5ba758b
authored
Aug 14, 2020
by
gijswijnholds
Committed by
GitHub
Aug 14, 2020
Browse files
Import accuracy_score (#6480)
parent
9a8c168f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/training.rst
docs/source/training.rst
+1
-1
No files found.
docs/source/training.rst
View file @
b5ba758b
...
@@ -282,7 +282,7 @@ your own ``compute_metrics`` function and pass it to the trainer.
...
@@ -282,7 +282,7 @@ your own ``compute_metrics`` function and pass it to the trainer.
.. code-block:: python
.. code-block:: python
from sklearn.metrics import precision_recall_fscore_support
from sklearn.metrics import
accuracy_score,
precision_recall_fscore_support
def compute_metrics(pred):
def compute_metrics(pred):
labels = pred.label_ids
labels = pred.label_ids
...
...
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