"...resnet50_tensorflow.git" did not exist on "428a156b63e726dbe05dcbcf2785537d1f5caf44"
Unverified Commit 2098d343 authored by Anirudh Haritas Murali's avatar Anirudh Haritas Murali Committed by GitHub
Browse files

Fix semantic error in evaluation section (#27675)

Change "convert predictions to logits" to "convert logits to
predictions" to fix semantic error in the evaluation section. Logits
need to be converted to predictions to evaluate the accuracy, not the
other way round
parent 181f85da
......@@ -119,7 +119,7 @@ Specify where to save the checkpoints from your training:
>>> metric = evaluate.load("accuracy")
```
Call [`~evaluate.compute`] on `metric` to calculate the accuracy of your predictions. Before passing your predictions to `compute`, you need to convert the predictions to logits (remember all 🤗 Transformers models return logits):
Call [`~evaluate.compute`] on `metric` to calculate the accuracy of your predictions. Before passing your predictions to `compute`, you need to convert the logits to predictions (remember all 🤗 Transformers models return logits):
```py
>>> def compute_metrics(eval_pred):
......
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