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
b5ba758b
"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "dd52ea9d3d98d6fa98a309ba682e90f0dadae4ef"
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