fetch_electricity_demand¶
yohou.datasets._fetchers.fetch_electricity_demand(*, data_home=None, download_if_missing=True, n_retries=3, delay=1.0)
¶
Fetch the Australian Electricity Demand dataset from Monash/Zenodo.
5 half-hourly time series of electricity demand from five Australian states: New South Wales, Queensland, South Australia, Tasmania, and Victoria (232 272 time steps).
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_pedestrian_counts: Hourly pedestrian sensor series.fetch_kdd_cup: Hourly air quality 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.4659727
Examples¶
>>> from yohou.datasets import fetch_electricity_demand
>>> bunch = fetch_electricity_demand()
>>> bunch.frame.columns[:2]
['time', 'nsw__demand']
Source Code¶
Show/Hide source
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 | |
Tutorials¶
The following example notebooks use this component:
-
How to Tune Fourier Seasonality Terms
Data-Features
Explore how Fourier harmonic count affects seasonal fit quality, compare Fourier vs Pattern seasonality, and tune harmonics jointly with GridSearchCV.