osl_dynamics.models.base.initialization#
Initialization of model parameters before the full training.
Every initialization method trains a few candidates for a short time and
keeps the one with the lowest loss (InitializationMixin._run_multistart).
A candidate is a name, the dataset to train on and a function that sets its
initial parameters (None to start from the parameters given by
reset()). The methods are:
random_subset: starts fromreset(), trained on a random subset of the data.random_state_time_course: each state’s parameters are set from the data assigned to it by a sampled state time course.nfindr: the mode covariances are set withnfindr_covariances().single_subject: starts fromreset(), trained on one subject.
initialization runs the method named by config.init_method.
The random state time course initialization uses the hooks
_estimate_parameters and _set_estimated_parameters, which
models with a supported observation model implement.