fetch_tourism_monthly¶
yohou.datasets._fetchers.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¶
[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.4656096
Examples¶
>>> from yohou.datasets import fetch_tourism_monthly
>>> bunch = fetch_tourism_monthly()
>>> bunch.frame.columns[:2]
['time', 'T1__tourists']
Source Code¶
Show/Hide source
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 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 | |
Tutorials¶
The following example notebooks use this component:
-
How to Forecast with CatBoost
Forecasting-Models
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.
-
Panel Data Forecasting
Getting-Started
Forecast multiple related time series simultaneously using the __ naming convention, LocalPanelForecaster, and per-group scoring.