Download tests.py from unitxt/metric: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/spaces/unitxt/metric/resolve/f95da7ef32422cabb6dca5846941d8a1f51969e4/tests.py
- Command line
-
hf download hf://spaces/unitxt/metric@f95da7ef32422cabb6dca5846941d8a1f51969e4/tests.py
-
curl -L -o tests.py https://huggingface.co/spaces/unitxt/metric/resolve/f95da7ef32422cabb6dca5846941d8a1f51969e4/tests.py
353 Bytes
| test_cases = [ | |
| { | |
| "predictions": [0, 0], | |
| "references": [1, 1], | |
| "result": {"metric_score": 0} | |
| }, | |
| { | |
| "predictions": [1, 1], | |
| "references": [1, 1], | |
| "result": {"metric_score": 1} | |
| }, | |
| { | |
| "predictions": [1, 0], | |
| "references": [1, 1], | |
| "result": {"metric_score": 0.5} | |
| } | |
| ] |