fetch_tourism_monthly¶
yohou.datasets.fetch_tourism_monthly(*, n_series=None, data_home=None, download_if_missing=True, n_retries=3, delay=1.0)
¶
Fetch the Tourism Monthly dataset from Monash/Zenodo.
366 monthly tourism time series from the tourism forecasting competition.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
n_series
|
int or None
|
Maximum number of series to include. |
None
|
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_quarterly: Quarterly tourism series from the same competition.fetch_hospital: Monthly hospital patient count series.get_data_home: Return the path of the data directory.
References ¶
- 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.4656096
Examples ¶
>>> from yohou.datasets import fetch_tourism_monthly
>>> bunch = fetch_tourism_monthly()
>>> bunch.frame.columns[:2]
['time', 'T1__tourists']
Source Code ¶
Source code in src/yohou/datasets/_fetchers.py
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 | |
Tutorials¶
The following example notebooks use this component:
-
How to Forecast with CatBoost
Plug CatBoostRegressor into PointReductionForecaster as a drop-in sklearn estimator, compare gradient-boosted versus Ridge linear baseline, and demonstrate the direct reduction strategy with tree-based models.
-
How to Score with Time-Weighted Metrics
Apply exponential decay, linear decay, and seasonal emphasis weighting to forecast evaluation, prioritising recent or periodic time steps.
-
How to Search with Multiple Metrics
Evaluate hyperparameter configurations against multiple metrics simultaneously with dict-of-scorers, refit strategies, and Pareto-optimal selection.
-
Panel Data Forecasting
Forecast multiple related time series simultaneously using the __ naming convention, LocalPanelForecaster, and per-group scoring.