Skip to content

classification

Accuracy

Bases: OfflineMetric

Accuracy classification score.

As defined by scikit-learn.

ClassificationReport

Bases: OfflineMetric

Build a text report showing the main classification metrics.

As defined by scikit-learn.

FBetaScore(beta=1.0)

Bases: OfflineMetric

F-beta score.

As defined by scikit-learn.

Initialize the metric.

Parameters:

Name Type Description Default
beta float

The beta parameter.

1.0
Source code in src/flowcean/metrics/classification.py
37
38
39
40
41
42
43
def __init__(self, beta: float = 1.0) -> None:
    """Initialize the metric.

    Args:
        beta: The beta parameter.
    """
    self.beta = beta

PrecisionScore

Bases: OfflineMetric

Precision classification score.

As defined by scikit-learn.

Recall

Bases: OfflineMetric

Recall classification score.

As defined by scikit-learn.