scSemiProfiler.utils.loss_curve¶
-
scSemiProfiler.utils.loss_curve(name, reprepid=None, tgtpid=None, stage=1, save=None)[source]¶ Visualize the training loss curves
- Parameters
name (
str) – Project namereprepid (
typing.Optional[int]) – Representative sanmple IDtgtpid (
typing.Optional[int]) – target sample IDsstage (
int) – The training stage to visualize, 1: pretrain1; 2: pretrain2; 3: inferencesave – Path within the ‘figures’ folder to save the plot
- Return type
- Returns
None
Example
>>> name = 'project name' >>> loss_curve(name, reprepid='BGCV09_CV0279',tgtpid=None,stage=1) # or loss_curve(name, sids, reprepid=6,tgtpid=None,stage=1)