Spaces:
Runtime error
Runtime error
Update multiclass_precision_macro.py
Browse files
multiclass_precision_macro.py
CHANGED
@@ -91,5 +91,5 @@ class multiclass_precision_macro(evaluate.Metric):
|
|
91 |
# TODO: Compute the different scores of the module
|
92 |
from sklearn.metrics import precision_score
|
93 |
return {
|
94 |
-
"
|
95 |
}
|
|
|
91 |
# TODO: Compute the different scores of the module
|
92 |
from sklearn.metrics import precision_score
|
93 |
return {
|
94 |
+
"macro_precision": precision_score(references, predictions, average="macro"),
|
95 |
}
|