eugene.plot.confusion_mtx¶
- eugene.plot.confusion_mtx(sdata, target_var, prediction_var, kind='binary', threshold=0.5, rc_context={'axes.labelsize': 14, 'axes.titlesize': 16, 'legend.fontsize': 12, 'pdf.fonttype': 42, 'ps.fonttype': 42, 'xtick.labelsize': 12, 'ytick.labelsize': 12}, return_axes=False, **kwargs)¶
Plot a confusion matrix for given targets and predictions within SeqData
Creates a confusion matrix from the given target and prediction keys held in the seqs_annot of the passed in SeqData. The
- Parameters:
sdata (SeqData) – SeqData object.
target_var (str) – Key to use as target.
prediction_var (str) – Key to use as prediction.
kind (str) – Kind of confusion matrix to plot. Currently only allow for binary
threshold (float) – Threshold to use to generate a binary confusion matrix.
rc_context (Mapping[str, str]) – Matplotlib rc context. Defaults to eugene.settings.rc_context.
**kwargs – Additional keyword arguments to pass to seaborn.
- Return type:
None
- Returns:
None