Skip to content

scdef.pl.loss

loss(model: scDEF, figsize: Tuple[float, float] = (4, 4), fontsize: int = 12, ax: Optional[Axes] = None, show: bool = True) -> Optional[Axes]

Plot training loss over epochs.

Parameters:

Name Type Description Default
model scDEF

scDEF model instance

required
figsize Tuple[float, float]

figure size

(4, 4)
fontsize int

font size for labels

12
ax Optional[Axes]

matplotlib axes to plot on

None
show bool

whether to show the plot

True

Returns:

Type Description
Optional[Axes]

Axes object if show is False, None otherwise