"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "dd52ea9d3d98d6fa98a309ba682e90f0dadae4ef"
Unverified Commit b5ba758b authored by gijswijnholds's avatar gijswijnholds Committed by GitHub
Browse files

Import accuracy_score (#6480)

parent 9a8c168f
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment