File size: 657 Bytes
e22e6b5
 
6aa51b8
 
389a2f6
e22e6b5
 
 
6aa51b8
 
389a2f6
e22e6b5
 
 
6aa51b8
 
389a2f6
e22e6b5
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
test_cases = [
    {
        "predictions": ["blu red yellow", "green orange violet"],
        "references": ["pizza spaghetti mandolino", "piplup prinplup empoleon"],
        "n": 2,
        "result": {"metric_score": 0}
    },
    {
        "predictions": ["a random string", "another string maybe"],
        "references": ["random random string", "string string maybe"],
        "n": 2,
        "result": {"metric_score": 1}
    },
    {
        "predictions": ["conda search evaluate", "conda search transformers"],
        "references": ["conda search evaluate", "conda install pytorch"],
        "n": 2,
        "result": {"metric_score": 0.5}
    }
]