Spaces:
Runtime error
Runtime error
gorkaartola
commited on
Commit
•
1480616
1
Parent(s):
012d4cb
Update README.md
Browse files
README.md
CHANGED
@@ -20,13 +20,11 @@ This metric is specially designed to measure the performance of sentence classif
|
|
20 |
## How to Use
|
21 |
In addition to the classical *predictions* and *references* inputs, this metric includes a *kwarg* named *prediction_strategies (list(str))*, that refer to a family of prediction strategies that the metric can handle.
|
22 |
|
23 |
-
Add *predictions*, *references* and *prediction_strategies* as follows
|
24 |
|
25 |
-
```
|
26 |
metric = evaluate.load(metric_selector)
|
27 |
metric.add_batch(predictions = predictions, references = references)
|
28 |
results = metric.compute(prediction_strategies = prediction_strategies)
|
29 |
-
```
|
30 |
|
31 |
The *prediction_strategies* implemented in this metric are:
|
32 |
- *argmax*, which takes the highest value of the softmax inference logits to select the prediction.
|
|
|
20 |
## How to Use
|
21 |
In addition to the classical *predictions* and *references* inputs, this metric includes a *kwarg* named *prediction_strategies (list(str))*, that refer to a family of prediction strategies that the metric can handle.
|
22 |
|
23 |
+
Add *predictions*, *references* and *prediction_strategies* as follows:
|
24 |
|
|
|
25 |
metric = evaluate.load(metric_selector)
|
26 |
metric.add_batch(predictions = predictions, references = references)
|
27 |
results = metric.compute(prediction_strategies = prediction_strategies)
|
|
|
28 |
|
29 |
The *prediction_strategies* implemented in this metric are:
|
30 |
- *argmax*, which takes the highest value of the softmax inference logits to select the prediction.
|