gedi2py.plotting.loss

gedi2py.plotting.loss(adata, *, key='gedi', title='Training Loss', figsize=(6, 4), show=None, save=None, ax=None, return_fig=False)[source]

Plot GEDI training loss (negative log-likelihood).

Parameters:
  • adata (AnnData) – Annotated data matrix with GEDI results.

  • key (str, default: 'gedi') – Key in adata.uns where GEDI results are stored.

  • title (str, default: 'Training Loss') – Plot title.

  • figsize (tuple[float, float], default: (6, 4)) – Figure size.

  • show (bool | None, default: None) – If True, show the figure.

  • save (str | None, default: None) – Path to save the figure.

  • ax (Axes | None, default: None) – Pre-existing axes.

  • return_fig (bool, default: False) – If True, return the figure.

Returns:

Depending on ``return_fig``

Return type:

Figure, Axes, or None.