gorkaartola commited on
Commit
c9a76ea
1 Parent(s): 4b97a39

Update tests.py

Browse files
Files changed (1) hide show
  1. tests.py +18 -9
tests.py CHANGED
@@ -1,17 +1,26 @@
1
  test_cases = [
2
  {
3
- "predictions": [0, 0],
4
- "references": [1, 1],
5
- "result": {"metric_score": 0}
6
  },
7
  {
8
- "predictions": [1, 1],
9
- "references": [1, 1],
10
- "result": {"metric_score": 1}
11
  },
12
  {
13
- "predictions": [1, 0],
14
- "references": [1, 1],
15
- "result": {"metric_score": 0.5}
 
 
 
 
 
 
 
 
 
 
 
16
  }
17
  ]
 
1
  test_cases = [
2
  {
3
+ "predictions": [0.01, 0.01, 0.9],
4
+ "references": [2, 0],
 
5
  },
6
  {
7
+ "predictions": [0.01, 0.01, 0.9],
8
+ "references": [1, 2],
 
9
  },
10
  {
11
+ "predictions": [0.9, 0.01, 0.01],
12
+ "references": [0, 0],
13
+ }
14
+ {
15
+ "predictions": [0.9, 0.01, 0.01],
16
+ "references": [2, 2],
17
+ }
18
+ {
19
+ "predictions": [0.01, 0.9, 0.01],
20
+ "references": [1, 0],
21
+ }
22
+ {
23
+ "predictions": [0.01, 0.9, 0.01],
24
+ "references": [0, 2],
25
  }
26
  ]