Coder Social home page Coder Social logo

biggproject / a3-epc-baseline-identification Goto Github PK

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

Baseline identification for Energy Performance Contracts

License: MIT License

Jupyter Notebook 100.00%
baseline-model energy-efficiency european-project python time-series

a3-epc-baseline-identification's Introduction

BC4_pipeline

Context:

The goal of this business case is to track savings realised by the Energy Conservation Measures (ECMs) undertaken by the ESCO on a daily/weekly/monthly basis (M&V). The process to estimate savings involves the identification of a baseline model for the electricity consumption of the building before the retrofit period, e.g. before new equipment is installed. This model will be used to predict the electricity consumption after the renovation, i.e. post-retrofit, to know what the consumption would have been without retrofit. The real consumption post-retrofit and the predicted one are then compared to estimate savings.

Input

  • Timeseries:

    • Electricity consumption
    • Outdoor temperature
    • Global horizontal irradiation
  • Additional information:

    • Aggregation functions (time grid alignment)
    • Retrofit period from and to (model identification)
    • Country where the building is located (holidays)

Output

  • Model identification/training phase:

    • Model reference (e.g. MLflow URI)
    • Model scores (R^2, MBE, NMBE, RMSE, CVRMSE)
  • Prediction phase:

    • Predicted Electricity consumption timeseries

How to run it:

Jupyter notebooks:

There are two jupyter notebooks that you can run as demo for this application:

  • BC4_pipeline_training_github.ipynb: workflow to train a baseline model for electricity consumption data starting from harmonised data.
  • BC4_pipeline_prediction_github.ipynb: workflow to make predictions using the locally stored model that was trained using the previous notebook. We assume that also the new data used to predict are harmonised.

Install requirements:

You must have Python installed on your system and a tool capable of running jupyter notebooks. For the official one you can follow the procedure here: https://docs.jupyter.org/en/latest/install.html This procedure was tested with Python 3.8 even though it should work also with other versions. There are several dependencies to install before running the two notebooks.

1. Install AI TOOLBOX:

Currently, the AI TOOLBOX is not on PyPI, so please follow the installation instructions here: https://github.com/biggproject/biggpy/blob/main/ai_toolbox/README.md

2. Install other dependencies:

There are other libraries used for visualizations and to handle rdf files. If you installed already a virtual env for the AI TOOLBOX, you can activate it, cd to this project location and then install the missing dependencies with: dependencies with:

pip install -r requirements.txt

3. Install Intel extension for sklearn (optional):

This extension will speed up the calculations when using sklearn but requires your PC to have an Intel CPU. If you meet this requirement, please follow the instructions here: https://intel.github.io/scikit-learn-intelex/installation.html

The easiest way would be to install it using pip using:

pip install scikit-learn-intelex

If you decide not to install it, please remove these two initial lines from all the notebooks:

from sklearnex import patch_sklearn 

patch_sklearn()

a3-epc-baseline-identification's People

Contributors

biggproject avatar rdevivo74 avatar

Stargazers

 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.