MarkovChain.sample¶
- MarkovChain.sample(num_sequences, sequence_length)[source]¶
Samples state sequences from the fitted Markov chain.
- Parameters:
- Return type:
- Returns:
The sampled sequences as a tensor of shape
[num_sequences, sequence_length]
.
Note
This method does not parallelize across multiple processes, i.e. performs no synchronization.