Spaces:
Sleeping
Sleeping
Fahad Ebrahim
commited on
Commit
·
b371989
1
Parent(s):
1142929
Add 1.5 instead of 0.5 in Readme
Browse files
README.md
CHANGED
@@ -19,14 +19,14 @@ pinned: false
|
|
19 |
The F-beta score is the weighted harmonic mean of precision and recall, reaching its optimal value at 1 and its worst value at 0.
|
20 |
The beta parameter determines the weight of recall in the combined score. beta < 1 lends more weight to precision, while beta > 1 favors recall (beta -> 0 considers only precision, beta -> +inf only recall).*
|
21 |
|
22 |
-
Note: The default value of Beta is set as
|
23 |
|
24 |
## How to Use
|
25 |
``` python
|
26 |
import evaluate
|
27 |
|
28 |
fbeta_score = evaluate.load("leslyarun/fbeta_score")
|
29 |
-
results = fbeta_score.compute(references=[0, 1], predictions=[0, 1], beta=
|
30 |
print(results)
|
31 |
{'f_beta_score': 1.0}
|
32 |
```
|
@@ -44,4 +44,4 @@ print(results)
|
|
44 |
year={2011}
|
45 |
|
46 |
## Further References
|
47 |
-
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.fbeta_score.html#sklearn.metrics.fbeta_score
|
|
|
19 |
The F-beta score is the weighted harmonic mean of precision and recall, reaching its optimal value at 1 and its worst value at 0.
|
20 |
The beta parameter determines the weight of recall in the combined score. beta < 1 lends more weight to precision, while beta > 1 favors recall (beta -> 0 considers only precision, beta -> +inf only recall).*
|
21 |
|
22 |
+
Note: The default value of Beta is set as 1.5 to calculate the frequently used FBeta 1.5. Please set a different Beta value according to your needs.
|
23 |
|
24 |
## How to Use
|
25 |
``` python
|
26 |
import evaluate
|
27 |
|
28 |
fbeta_score = evaluate.load("leslyarun/fbeta_score")
|
29 |
+
results = fbeta_score.compute(references=[0, 1], predictions=[0, 1], beta=1.5)
|
30 |
print(results)
|
31 |
{'f_beta_score': 1.0}
|
32 |
```
|
|
|
44 |
year={2011}
|
45 |
|
46 |
## Further References
|
47 |
+
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.fbeta_score.html#sklearn.metrics.fbeta_score
|