eugene.plot.performance_scatter

eugene.plot.performance_scatter(sdata, target_vars, prediction_vars, seq_idx=None, 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 scatter plot of the performance of the model on a subset of the sequences.

Classic predicted vs observed scatterplot that will be annotated with r2, mse and spearman correlation. If a groupby key is passed, the scatterplot will be colored according to group.

Parameters:
  • sdata (SeqData) – SeqData object.

  • target_var (str) – Name of the target_var variable.

  • prediction_var (str) – Name of the prediction_var variable.

  • seq_idx (list of int) – List of indices of sequences to plot.

  • **kwargs

Return type:

None