Spaces:
Sleeping
Sleeping
Update fbeta_score.py
Browse files- fbeta_score.py +3 -3
fbeta_score.py
CHANGED
@@ -68,8 +68,7 @@ Examples:
|
|
68 |
>>> print(results)
|
69 |
{'f_beta_score': 1.0}
|
70 |
|
71 |
-
For further examples, refer to https://scikit-learn.org/stable/modules/generated/sklearn.metrics.fbeta_score.html#sklearn.metrics.fbeta_score
|
72 |
-
|
73 |
"""
|
74 |
|
75 |
|
@@ -86,9 +85,10 @@ class F_Beta(evaluate.Metric):
|
|
86 |
features=datasets.Features({
|
87 |
'predictions': datasets.Value('int32'),
|
88 |
'references': datasets.Value('int32'),
|
|
|
89 |
}),
|
90 |
# Homepage of the module for documentation
|
91 |
-
homepage="https://huggingface.co/spaces/leslyarun/
|
92 |
# Additional links to the codebase or references
|
93 |
codebase_urls=["https://github.com/scikit-learn/scikit-learn/blob/f3f51f9b6/sklearn/metrics/_classification.py#L1148"],
|
94 |
reference_urls=["https://scikit-learn.org/stable/modules/generated/sklearn.metrics.fbeta_score.html#sklearn.metrics.fbeta_score"]
|
|
|
68 |
>>> print(results)
|
69 |
{'f_beta_score': 1.0}
|
70 |
|
71 |
+
For further examples, refer to https://scikit-learn.org/stable/modules/generated/sklearn.metrics.fbeta_score.html#sklearn.metrics.fbeta_score
|
|
|
72 |
"""
|
73 |
|
74 |
|
|
|
85 |
features=datasets.Features({
|
86 |
'predictions': datasets.Value('int32'),
|
87 |
'references': datasets.Value('int32'),
|
88 |
+
'beta': datasets.Value('float32')
|
89 |
}),
|
90 |
# Homepage of the module for documentation
|
91 |
+
homepage="https://huggingface.co/spaces/leslyarun/fbeta_score",
|
92 |
# Additional links to the codebase or references
|
93 |
codebase_urls=["https://github.com/scikit-learn/scikit-learn/blob/f3f51f9b6/sklearn/metrics/_classification.py#L1148"],
|
94 |
reference_urls=["https://scikit-learn.org/stable/modules/generated/sklearn.metrics.fbeta_score.html#sklearn.metrics.fbeta_score"]
|