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,) -> Float64from strata.metrics import accuracy_scoreFraction (or count, if normalize is False) of correctly classified samples.