File size: 3,358 Bytes
d94c92e
88719ee
1b08da5
 
 
 
 
 
 
 
 
 
667672b
1b08da5
 
 
 
 
 
667672b
1b08da5
 
 
 
 
 
88719ee
1b08da5
667672b
377a0b6
667672b
88719ee
 
692721d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
667672b
 
 
692721d
 
 
 
 
 
 
667672b
 
 
692721d
 
 
 
 
 
 
 
 
 
 
 
667672b
 
 
 
 
 
 
 
 
 
1b08da5
 
 
 
 
667672b
 
 
1b08da5
 
 
 
 
 
 
667672b
 
 
1b08da5
 
 
 
 
 
 
667672b
 
 
1b08da5
 
 
 
 
 
 
667672b
 
 
 
 
 
 
 
 
 
 
 
 
1b08da5
 
52ea110
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
test_cases = [
    {
        "references": [
            "1111",
            "1111",
            "1111",
            "1111",
            "1111",
            "1111",
            "1111",
            "1111",
            "1111",
            "1111",
        ],
        "predictions": [
            "1111",
            "1112",
            "1120",
            "1211",
            "1311",
            "2111",
            "111",
            "11",
            "1",
            "9999",
        ],
        "result": {
            "accuracy": 0.1111111111111111,
            "hierarchical_precision": 0.26666666666666666,
            "hierarchical_recall": 1.0,
            "hierarchical_fmeasure": 0.4210526315789474,
        },
    },
    {
        "references": ["1111"],
        "predictions": ["1111"],
        "result": {
            "accuracy": 1.0,
            "hierarchical_precision": 1.0,
            "hierarchical_recall": 1.0,
            "hierarchical_fmeasure": 1.0,
        },
    },
    {
        "references": ["1111"],
        "predictions": ["1112"],
        "result": {
            "accuracy": 0.0,
            "hierarchical_precision": 0.75,
            "hierarchical_recall": 0.75,
            "hierarchical_fmeasure": 0.75,
        },
    },
    {
        "references": ["1111"],
        "predictions": ["1120"],
        "result": {
            "accuracy": 0.0,
            "hierarchical_precision": 0.5,
            "hierarchical_recall": 0.5,
            "hierarchical_fmeasure": 0.5,
        },
    },
    {
        "references": ["1111"],
        "predictions": ["1211"],
        "result": {
            "accuracy": 0.0,
            "hierarchical_precision": 0.25,
            "hierarchical_recall": 0.25,
            "hierarchical_fmeasure": 0.25,
        },
    },
    {
        "references": ["1111"],
        "predictions": ["1311"],
        "result": {
            "accuracy": 0.0,
            "hierarchical_precision": 0.25,
            "hierarchical_recall": 0.25,
            "hierarchical_fmeasure": 0.25,
        },
    },
    {
        "references": ["1111"],
        "predictions": ["2111"],
        "result": {
            "accuracy": 0.0,
            "hierarchical_precision": 0.0,
            "hierarchical_recall": 0.0,
            "hierarchical_fmeasure": 0,
        },
    },
    {
        "references": ["1111"],
        "predictions": ["111"],
        "result": {
            "accuracy": 0.0,
            "hierarchical_precision": 1.0,
            "hierarchical_recall": 0.25,
            "hierarchical_fmeasure": 0.4,
        },
    },
    {
        "references": ["1111"],
        "predictions": ["11"],
        "result": {
            "accuracy": 0.0,
            "hierarchical_precision": 1.0,
            "hierarchical_recall": 0.25,
            "hierarchical_fmeasure": 0.4,
        },
    },
    {
        "references": ["1111"],
        "predictions": ["1"],
        "result": {
            "accuracy": 0.0,
            "hierarchical_precision": 1.0,
            "hierarchical_recall": 0.25,
            "hierarchical_fmeasure": 0.4,
        },
    },
    {
        "references": ["1111"],
        "predictions": ["9999"],
        "result": {
            "accuracy": 0.0,
            "hierarchical_precision": 0.0,
            "hierarchical_recall": 0.0,
            "hierarchical_fmeasure": 0,
        },
    },
]