pub fn confusion_matrix(
py: Python<'_>,
y_true: PyReadonlyArray1<'_, i32>,
y_pred: PyReadonlyArray1<'_, i32>,
labels: Option<PyReadonlyArray1<'_, i32>>,
sample_weight: Option<PyReadonlyArray1<'_, f64>>,
normalize: Option<&str>,
) -> PyResult<Py<PyArray2<i64>>>Expand description
Calculate confusion matrix