From 4c76bf3e70c410c8dc232b3ade4557242e44352f Mon Sep 17 00:00:00 2001 From: Daniel Tinoco <0urobor0s@users.noreply.github.com> Date: Wed, 18 Oct 2023 20:37:25 +0100 Subject: [PATCH] Improve fbeta_score documentation (#194) --- lib/scholar/metrics/classification.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/scholar/metrics/classification.ex b/lib/scholar/metrics/classification.ex index 373c1b45..797d1cd6 100644 --- a/lib/scholar/metrics/classification.ex +++ b/lib/scholar/metrics/classification.ex @@ -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)}