Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giotto-ai/time_series_energy_demand
https://github.com/giotto-ai/time_series_energy_demand
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/giotto-ai/time_series_energy_demand
- Owner: giotto-ai
- Created: 2020-01-13T08:43:43.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T00:59:01.000Z (over 2 years ago)
- Last Synced: 2023-03-05T01:48:48.416Z (almost 2 years ago)
- Language: Jupyter Notebook
- Size: 13.7 MB
- Stars: 8
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![logo](https://raw.githubusercontent.com/giotto-ai/giotto-tda/master/doc/images/tda_logo.svg)
# Energy Demand Prediction in Switzerland with giotto-time
## What is it?
This repository contains the code for the [blog post](https://towardsdatascience.com/getting-started-with-giotto-time-d9b2088d60ca) 'Energy Demand Prediction in Switzerland with giotto-time' where we use the Python time series library [giotto-time](https://github.com/giotto-ai/giotto-time) to predict the mean daily energy demand (in megawatts) in Switzerland 21 days ahead using generalized autoregression models and linear regression with custom loss functions, both of which are provided by giotto-time.The 'energy_demand_time_series.ipynb' showcases the most important functionalities of giotto-time and how to use them to:
* remove trends and deal with seasonalities,
* make a causality test and thereby find the ideal shift between one time series and another to make predictions,
* easily create a range of different features,
* use generalized autoregression models and linear regression with custom loss functions to make predictions using the 'fit/predict' methods.## Getting started
You want to start right away? The easiest way to get started is to create a conda environment as follows:
```
conda create python=3.7 --name time -y
conda activate time
pip install -r requirements.txt
```
Then the notebook 'energy_demand_time_series.ipynb' will walk you through the analysis and the prediction steps.## Data
The data used for this project was collected by swissgrid, a Swiss transmission grid operator, and can be found here: https://www.swissgrid.ch/en/home/operation/grid-data/generation.html. Hourly data for the years 2016 up to 2019 was used and collected in a file located in the data/raw directory.## Results
In this section we present the results. The figure below shows the reference values as well as the predictions for one of the models shown in the notebook.![alt text](data/figures/comparison.png)
An important point for this tutorial is to show different models giotto-time has to offer. In the table below we list the results for different models and with different metrics. The best results per column are marked in yellow.
![alt text](data/figures/comparison_table.png)