function random_guess

deeptime.markov.hmm.init.discrete.random_guess(n_observation_states: int, n_hidden_states: int, seed: Optional[int] = None)

Initializes a HMM with a set number of hidden and observable states by setting the transition matrix uniform and drawing a random row-stochastic matrix as output probabilities.

Parameters:
  • n_observation_states (int) – The number of states in observable space.

  • n_hidden_states (int) – The number of hidden states.

  • seed (int, optional, default=None) – The random seed.

Returns:

init_hmm – A randomly initialized hidden markov state model.

Return type:

HiddenMarkovModel