create_confusion_matrix_figure#
- create_confusion_matrix_figure(confusion_matrix: ndarray, x: ndarray, y: ndarray, normalized: bool)[source]#
Create a confusion matrix figure.
- Parameters
- confusion_matrix: np.ndarray
2D array containing the confusion matrix.
- x: np.ndarray
array containing x axis data.
- y: np.ndarray
array containing y axis data.
- normalized: bool
if True will also show normalized values by the true values.
- Returns
- plotly Figure object
confusion matrix figure