FBetaMixin

class dtaianomaly.evaluation.FBetaMixin(beta: float | int = 1)[source]

Base class for F-Beta metrics.

Base class for all F-Beta based metrics. Takes a beta value, checks if it is correct, and offers a method to compute the F-score for a given precision and recall.

Parameters:
betaint, float, default=1

Desired beta parameter.