osl_dynamics.models.base.MarkovConfig#
- class osl_dynamics.models.base.MarkovConfig#
Settings for a hidden Markov chain.
- Parameters:
- initial_trans_probnp.ndarray or str, optional
Initialization for the transition probability matrix. A str is a path to a
.npyfile.- learn_trans_probbool, optional
Should we update the transition probability matrix?
- trans_prob_priornp.ndarray or str, optional
Dirichlet prior for the transition probability matrix. Each row is the alpha parameters of the Dirichlet distribution. A str is a path to a
.npyfile.- trans_prob_update_delayfloat, optional
The transition probability matrix is updated with
trans_prob = (1 - rho) * trans_prob + rho * estimate, whererho = (100 * epoch / n_epochs + 1 + trans_prob_update_delay) ** -trans_prob_update_forget. This is the delay parameter.- trans_prob_update_forgetfloat, optional
Forget parameter for the update of the transition probability matrix.
- initial_state_probsnp.ndarray or str, optional
State probabilities at
time=0. A str is a path to a.npyfile.- learn_initial_state_probsbool, optional
Should we update the initial state probabilities?
- baum_welch_implementationstr, optional
Implementation of the Baum-Welch algorithm. Either
'log'or'rescale'.