MODULE REFERENCE
loaders
anomx.data.loadersSynthetic datasets for examples and tests.
functionView source ↗
make_sine_anomaly_dataset
make_sine_anomaly_dataset(*, periods: int = 240, freq: str = 'h', anomaly_indices: tuple[int, ...] = (80, 160, 200), anomaly_magnitude: float = 5.0, noise: float = 0.2, seed: int = 7) -> TimeSeriesDatasetCreate a synthetic univariate dataset with injected point anomalies.
| Parameter | Type | Default |
|---|---|---|
periodskeyword only | int | 240 |
freqkeyword only | str | 'h' |
anomaly_indiceskeyword only | tuple[int, ...] | (80, 160, 200) |
anomaly_magnitudekeyword only | float | 5.0 |
noisekeyword only | float | 0.2 |
seedkeyword only | int | 7 |
Returns TimeSeriesDataset