superstats.transition.stochastic.random_walk#
Random-walk transition model.
Classes
|
Random walk transition with Gaussian noise and optional drift. |
- class superstats.transition.stochastic.random_walk.RandomWalk(bounds=None, initial_prior=None, sigma=None, delta=None)[source]#
Bases:
StochasticTransitionRandom walk transition with Gaussian noise and optional drift.
- Parameters:
- bounds
tupleorNone,optional, default:None Lower and upper bounds for the latent state.
- initial_prior
PriororNone,optional, default:None Prior for the initial latent state.
- sigma
floatorPriororNone,optional, default:None Standard deviation of the Gaussian increments.
- delta
floatorPrior,optional, default: 0.0 Additive drift term.
- bounds
- Parameters:
Notes
The sample method returns a dict with keys local_params, hyper_params and fixed_params. Use sample_one_step to advance a single time-step given numeric params.