Coder Social home page Coder Social logo

s-matke / eco-forecast Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.52 MB

Machine learning model used for predicting European country with most green surplus energy generated

Shell 0.11% Python 2.71% Jupyter Notebook 97.18%
data-science green-energy machine-learning scikit-learn supervised-learning

eco-forecast's Introduction

Schneider Electric Europe Data Challenge

Overview

With the increasing digitalization and the growing reliance on data servers, Schneider Electric presents an innovative challenge to predict the European country with the highest surplus of green energy in the next hour. This prediction is crucial for optimizing computing tasks, utilizing green energy effectively, and reducing CO2 emissions.

Objective

Create a model to predict the European country with the highest surplus of green energy in the next hour. Consider energy generation from renewable sources and energy consumption. The solution should align with Schneider Electric's ethos and present an unprecedented approach.

Dataset

Utilize time-series data from the ENTSO-E Transparency portal API, including electricity consumption, wind energy generation, solar energy generation, and other green energy generation. Homogenize the data to 1-hour intervals, and create 'train.csv' and 'test.csv' datasets from 01-01-2022 to 01-01-2023.

API Token: 1d9cd4bd-f8aa-476c-8cc1-3442dc91506d (or alternative tokens provided)

Repository Structure

|__README.md
|__requirements.txt
|
|__data
|  |__train.csv
|  |__test.csv
|
|__src
|  |__data_ingestion.py
|  |__data_processing.py
|  |__model_training.py
|  |__model_prediction.py
|  |__utils.py
|
|__models
|  |__model.pkl
|
|__scripts
|  |__run_pipeline.sh
|
|__predictions
   |__predictions.json

Installation and Usage

  1. Clone the Repository:
   git clone https://github.com/s-matke/eco-forecast.git
   cd eco-forecast
  1. Install Dependencies:
   pip install -r requirements.txt
  1. Run Pipeline:
  ./run_pipeline.sh <start_date> <end_date> <raw_data_file> <processed_data_file> <model_file> <test_data_file><predictions_file>

For example:

  ./run_pipeline.sh 2022-01-01 2023-01-01 data/raw_data.csv data/processed_data.csv models/model.pkl data/test_data.csv predictions/predictions.json

Data Processing

  • Missing values are imputed as the mean between preceding and following values.
  • Data with resolution finer than 1 hour is resampled to an hourly level.
  • Non-green energy sources are discarded.
  • The resulting CSV includes columns per country representing generated green energy per energy type and load.
  • Calculated surplus as the difference between generated green energy and load in order to create label feature
  • Downsampled labels that are dominating, however, it's set as an optional parameter

Model

Used Multi-layer Perceptron (MLP) classifier as our model from scikit-learn module to predict the country with the highest surplus green energy. The model is saved inside models directory while it's predictions on test dataset have been saved in predictions directory.

eco-forecast's People

Contributors

s-matke avatar

Watchers

 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.