Spaces:
Runtime error
Runtime error
Commit
·
6572d05
1
Parent(s):
b1e1d9b
update dtype
Browse files- cosine_similarity.py +2 -2
cosine_similarity.py
CHANGED
@@ -71,8 +71,8 @@ class cosine_similarity(evaluate.Metric):
|
|
71 |
inputs_description=_KWARGS_DESCRIPTION,
|
72 |
# This defines the format of each prediction and reference
|
73 |
features=datasets.Features({
|
74 |
-
'predictions':
|
75 |
-
'references':
|
76 |
}),
|
77 |
# Homepage of the module for documentation
|
78 |
homepage="http://module.homepage",
|
|
|
71 |
inputs_description=_KWARGS_DESCRIPTION,
|
72 |
# This defines the format of each prediction and reference
|
73 |
features=datasets.Features({
|
74 |
+
'predictions': Array1D(shape=(1, ), dtype='float'),
|
75 |
+
'references': Array1D(shape=(1, ), dtype='float'),
|
76 |
}),
|
77 |
# Homepage of the module for documentation
|
78 |
homepage="http://module.homepage",
|