fetch_sunspot¶
yohou.datasets._fetchers.fetch_sunspot(*, data_home=None, download_if_missing=True, n_retries=3, delay=1.0)
¶
Fetch the Sunspot dataset (without missing values) from Monash/Zenodo.
Single daily time series of sunspot numbers from 1818-01-08 to 2020-05-31 (73 924 observations).
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
data_home
|
str, PathLike, or None
|
Specify another download and cache folder for the datasets.
By default all yohou data is stored in |
None
|
download_if_missing
|
bool
|
If |
True
|
n_retries
|
int
|
Number of retries when HTTP errors are encountered. |
3
|
delay
|
float
|
Number of seconds between retries. |
1.0
|
Returns¶
| Type | Description |
|---|---|
Bunch
|
Dictionary-like object with the following attributes: frame : pl.DataFrame
DataFrame with |
See Also¶
fetch_tourism_monthly: Monthly tourism series.fetch_electricity_demand: Half-hourly electricity demand series.get_data_home: Return the path of the data directory.
References¶
[1] Godahewa, R., Bergmeir, C., Webb, G. I., Hyndman, R. J., & Montero-Manso, P. (2021). "Monash Time Series Forecasting Archive." Neural Information Processing Systems Track on Datasets and Benchmarks. https://doi.org/10.5281/zenodo.4654722
Examples¶
>>> from yohou.datasets import fetch_sunspot
>>> bunch = fetch_sunspot()
>>> bunch.frame.columns
['time', 'sunspot_number']
Source Code¶
Show/Hide source
Tutorials¶
The following example notebooks use this component:
-
How to Choose a Decomposition Strategy
Forecasting-Models
Build 2- and 3-component DecompositionPipeline forecasters chaining trend, seasonality, and residual models with target pre-transformation.