Skip to content

Commit

Permalink
Improve fbeta_score documentation (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
0urobor0s authored Oct 18, 2023
1 parent dd87b99 commit 4c76bf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/scholar/metrics/classification.ex
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,10 @@ defmodule Scholar.Metrics.Classification do
If all examples are true negatives, then the result is 0 to
avoid zero division.
#{~S'''
$$F_\beta = (1 + \beta^2) \cdot \frac{\mathrm{precision} \cdot \mathrm{recall}}{(\beta^2 \cdot \mathrm{precision}) + \mathrm{recall}}$$
'''}
## Options
#{NimbleOptions.docs(@fbeta_score_schema)}
Expand Down

0 comments on commit 4c76bf3

Please sign in to comment.