MarkovChainModel.sample

MarkovChainModel.sample(num_sequences, sequence_length)[source]

Samples random sequences from the Markov chain.

Parameters:
  • num_sequences (int) -- The number of sequences to sample.

  • sequence_length (int) -- The length of all sequences to sample.

Return type:

Tensor

Returns:

Tensor of shape [num_sequences, sequence_length] with dtype long, providing the sampled states.