bayespy.nodes.SwitchingGaussianMarkovChain.initialize_from_random

SwitchingGaussianMarkovChain.initialize_from_random()

Set the variable to a random sample from the current distribution.