Giter Site home page Giter Site logo

time_series_energy_demand's Introduction

logo

Energy Demand Prediction in Switzerland with giotto-time

What is it?

This repository contains the code for the blog post 'Energy Demand Prediction in Switzerland with giotto-time' where we use the Python time series library 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

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

time_series_energy_demand's People

Contributors

alexbacce avatar ckae95 avatar giotto-learn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.