function swissroll_model¶
- deeptime.data.swissroll_model(n_samples, seed=None)¶
Sample a hidden state and an swissroll-transformed emission trajectory, so that the states are not linearly separable.
(Source code, png, hires.png, pdf)
- Parameters:
n_samples (int) – Number of samples to produce.
seed (int, optional, default=None) – Random seed to use. Defaults to None, which means that the random device will be default-initialized.
- Returns:
sequence ((n_samples, ) ndarray) – The discrete states.
trajectory ((n_samples, ) ndarray) – The observable.
Notes
First, the hidden discrete-state trajectory is simulated. Its transition matrix is given by
The observations are generated via the means are , , , and , respectively, as well as the covariance matrix
Afterwards, the trajectory is transformed via