gfa.tracking#
Fit tracking and serialization for GFA models.
Classes
Quantities tracked during a GFA model fit. |
|
Status flags from a GFA model fit. |
|
Context passed to callbacks during GFA fitting. |
- class GFAFitFlags(
- converged: bool = False,
- decreasing_lb: bool = False,
- private_var_floor: bool = False,
- x_dims_removed: int = 0,
Status flags from a GFA model fit.
- Parameters:
- convergedbool, default
False True if the lower bound converged before reaching max_iter.
- decreasing_lbbool, default
False True if lower bound decreased during fitting.
- private_var_floorbool, default
False True if the private variance floor was used on any values of phi.
- x_dims_removed
int, default 0 Number of latent dimensions removed due to low variance.
- convergedbool, default
- class GFAFitContext(
- config: GFAFitConfig,
- obs_hyperprior: ObsParamsHyperPrior,
- obs_posterior: ObsParamsPosterior,
- latents_posterior: LatentsPosteriorStatic,
- tracker: GFAFitTracker,
- flags: GFAFitFlags,
Context passed to callbacks during GFA fitting.
Provides read-only access to fitting state and a save() method for checkpointing. Checkpoints can be loaded via
GFAModel.load().- Parameters:
- config
GFAFitConfig Fitting configuration.
- obs_hyperprior
ObsParamsHyperPrior Prior hyperparameters.
- obs_posterior
ObsParamsPosterior Observation model posterior.
- latents_posterior
LatentsPosteriorStatic Latent variable posterior.
- tracker
GFAFitTracker Fitting progress tracker.
- flags
GFAFitFlags Fitting status flags.
- config