osl_dynamics.models.base#
Base classes and settings shared by the models.
Modules#
configs: settings shared by all models (ConfigBase) and groups of settings shared by several models.model:KerasModelBase(training step) andModelBase(fit,train,freeze,save/load, etc.).markov: models with a hidden Markov chain (HMM, HMM-Poisson, HMM-Dirichlet, HIVE). The posterior of the states is calculated with the Baum-Welch algorithm and the transition probability matrix is updated with an exponential moving average.variational: models trained with amortized variational inference (DyNeMo, SC-DyNeMo, DyNeStE, M-DyNeMo, DIVE).initialization: initialization methods of every model (multi-start: candidate initializations are trained briefly and the best is kept) and the N-FINDR estimate of mode covariances.observation: getters, setters and regularizers shared by models with the same observation model.legacy: loading models saved with osl-dynamics 3.0 to 3.9.
All classes can be imported from osl_dynamics.models.base.
Classes#
Settings shared by all models. |
|
Settings for a hidden Markov chain. |
|
Settings for KL annealing. |
|
Settings for amortized variational inference. |
|
Settings for the softmax temperature of |
|
Settings for a multivariate normal observation model. |
|
Settings for the inference and model networks. |
|
Settings for session-specific observation model parameters. |
|
Initialization methods of |
|
Keras model with the training step shared by all models. |
|
Base class for all models. |
|
Keras model with a hidden Markov chain. |
|
Base class for models with a hidden Markov chain. |
|
Keras model trained with amortized variational inference. |
|
Base class for models trained with amortized variational inference. |
|
Methods for models whose Keras model has an |
|
Methods for models whose Keras model has a |
Functions#
|
Class decorator that adds the parameters of the base classes to the |
|
Estimate mode covariances for a soft mixture with N-FINDR. |