evalml.pipelines.confusion_matrix¶
-
evalml.pipelines.
confusion_matrix
(y_true, y_predicted)[source]¶ Confusion matrix for binary and multiclass classification.
- Parameters
y_true (pd.Series or np.array) – true binary labels.
y_predicted (pd.Series or np.array) – predictions from a binary classifier, before thresholding has been applied.
- Returns
confusion matrix
- Return type
np.array