scglue.plot.roc

scglue.plot.roc(true, pred, max_points=500, ax=None, **kwargs)[source]

Plot an ROC curve

Parameters
  • true (ndarray) – True labels

  • pred (ndarray) – Prediction values

  • max_points (int) – Maximal number of points on the ROC curve, beyond which the points are equidistantly subsampled.

  • ax (Optional[Axes]) – Existing axes to plot on

  • **kwargs – Additional keyword arguments passed to seaborn.lineplot()

Return type

Axes

Returns

ax – Plot axes