Skip to content

accuracy_score

Module: strata.metrics • Kind: function
Source: strata/metrics/classification.mojo

def accuracy_score[
true_dtype: DType = DType.float64,
pred_dtype: DType = DType.float64,
](
y_true: List[Scalar[true_dtype]],
y_pred: List[Scalar[pred_dtype]],
normalize: Bool = True,
) -> Float64
from strata.metrics import accuracy_score

Fraction (or count, if normalize is False) of correctly classified samples.