eugene.plot.auprc

eugene.plot.auprc(sdata, target_vars, prediction_vars, labels='', xlab='Recall', ylab='Precision', figsize=(8, 8), save=None, ax=None, **kwargs)

Plot the area under the precision recall curve for one or more predictions against a one or more targets.

You must pass in the same number of target keys as prediction keys. If you want to compare the same target against multiple predictions, pass in the same target key for each predictions key.

Parameters:
  • sdata (SeqData) – SeqData object.

  • target_vars (Union[Sequence[str], str]) – Target keys to use for plotting.

  • prediction_vars (Union[Sequence[str], str]) – Prediction keys to use for plotting.

  • labels (Union[Sequence[str], str]) – Labels to use for each prediction. If not passed in, the labels_{i} will be used.

  • xlab (str) – Label for the x-axis.

  • ylab (str) – Label for the y-axis.

  • figsize (tuple) – Size of the figure.

  • save (str) – Path to save the figure. If none, figure will not be saved.

  • **kwargs – Additional keyword arguments to pass to matplotlib plot function

Return type:

None