Spaces:
Build error
Build error
Update variable names in ISCO_Hierarchical_Accuracy metric class
Browse files- metric_template_1.py +4 -4
metric_template_1.py
CHANGED
@@ -94,13 +94,13 @@ class ISCO_Hierarchical_Accuracy(evaluate.Metric):
|
|
94 |
# ),
|
95 |
features=datasets.Features(
|
96 |
{
|
97 |
-
"
|
98 |
-
"
|
99 |
}
|
100 |
if self.config_name == "multilabel"
|
101 |
else {
|
102 |
-
"
|
103 |
-
"
|
104 |
}
|
105 |
),
|
106 |
# TODO: Homepage of the module for documentation
|
|
|
94 |
# ),
|
95 |
features=datasets.Features(
|
96 |
{
|
97 |
+
"references": datasets.Sequence(datasets.Value("string")),
|
98 |
+
"predictions": datasets.Sequence(datasets.Value("string")),
|
99 |
}
|
100 |
if self.config_name == "multilabel"
|
101 |
else {
|
102 |
+
"references": datasets.Value("string"),
|
103 |
+
"predictions": datasets.Value("string"),
|
104 |
}
|
105 |
),
|
106 |
# TODO: Homepage of the module for documentation
|