structboost.plot_training_diagnostics¶
- structboost.plot_training_diagnostics(report, *, figsize=(13.0, 9.0), log_scale=True)[source]¶
Plot a
TrainingReportas a six-panel diagnostic figure.- Parameters:
report – A
TrainingReport, a fittedBAE(itstraining_reportis used), or anAnnDatacarryinguns["bae"]["training_report"].log_scale (bool) – Use a log y-axis for the convergence and gradient panels, whose values span orders of magnitude.
- Returns:
matplotlib.figure.Figure – The figure. Panels are: reconstruction loss, per-iteration contribution of the encoder and decoder halves, encoder convergence, selected genes, gradient norms, and boosting fit quality.
- Raises:
ValueError – If no training report is available (
diagnostics=Truewas not set).