Spaces:
Sleeping
Sleeping
Achilleas Pasias
commited on
Commit
·
544a8ae
1
Parent(s):
42a75c7
Readme update
Browse files
README.md
CHANGED
@@ -42,7 +42,7 @@ Thus in binary classification, the count of true negatives is
|
|
42 |
At minimum, this metric requires predictions and references as inputs.
|
43 |
|
44 |
```python
|
45 |
-
>>> cfm_metric = evaluate.load("confusion_matrix")
|
46 |
>>> results = cfm_metric.compute(references=[1, 2, 3, 2, 1, 1, 0, 2], predictions=[1, 0, 3, 2, 2, 1, 0, 3])
|
47 |
>>> print(results)
|
48 |
{'confusion_matrix': [[1, 0, 0, 0], [0, 2, 1, 0], [1, 0, 1, 1], [0, 0, 0, 1]]}
|
|
|
42 |
At minimum, this metric requires predictions and references as inputs.
|
43 |
|
44 |
```python
|
45 |
+
>>> cfm_metric = evaluate.load("BucketHeadP65/confusion_matrix")
|
46 |
>>> results = cfm_metric.compute(references=[1, 2, 3, 2, 1, 1, 0, 2], predictions=[1, 0, 3, 2, 2, 1, 0, 3])
|
47 |
>>> print(results)
|
48 |
{'confusion_matrix': [[1, 0, 0, 0], [0, 2, 1, 0], [1, 0, 1, 1], [0, 0, 0, 1]]}
|