log_loss
Module: strata.metrics • Kind: function
Source: strata/metrics/classification.mojo
def log_loss[ true_dtype: DType = DType.float64, pred_dtype: DType = DType.float64,]( y_true: List[Scalar[true_dtype]], y_pred: Matrix[pred_dtype], normalize: Bool = True,) -> Float64from strata.metrics import log_lossCompute log loss (cross-entropy loss), the negative log-likelihood of true labels.
Returns: Float64 — Float64: The mean (or total) cross-entropy between y_true and y_pred.