mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Import accuracy_score (#6480)
This commit is contained in:
parent
9a8c168f56
commit
b5ba758ba9
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ your own ``compute_metrics`` function and pass it to the trainer.
|
|||
|
||||
.. 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):
|
||||
labels = pred.label_ids
|
||||
|
|
|
|||
Loading…
Reference in a new issue