result (pandas.DataFrame) – data frame containing predictions per sample (in row). It must have a column of
true class named “Y_TRUE”. It must have a column of predicted class named “Y_PRED”.
It typically takes the output of classify().
cor (Callable or None) – a correlation function that takes predicted y and observed y as inputs and returns
correlation coefficient and p-value. If None, don’t compute and label correlation
on the plot.
cv (boolean) – Whether to color the plot by different folds of cross validation. You need to have
‘CV’ column in the input result data frame.
ax (matplotlib.axes.Axes or None (default), optional) – The axes where the confusion matrix is plotted. None (default) to create a new figure and
axes to plot the confusion matrix