osl_dynamics.simulation.obs_mod.ObservationModel#
- class osl_dynamics.simulation.obs_mod.ObservationModel#
Base class for observation models.
Subclasses set
self._n(the number of states or modes) when it can be inferred from the parameters, and implement_create_parameters(generate any random parameters) andsimulate_data. A model with session-specific parameters also setsself.n_sessionsand implementssimulate_session_data.rescaleupdates the ground truth parameters after the data are standardized.- initialize(n=None)#
Set the number of states or modes and generate random parameters.
- Parameters:
- nint, optional
Number of states or modes. Must match the parameter arrays if they were passed.
- abstractmethod simulate_data(time_course)#
- rescale(mu, sigma)#
Update the parameters after the data are standardized.
- Parameters:
- munp.ndarray
Mean subtracted from each channel.
- sigmanp.ndarray
Standard deviation each channel was divided by.