oskarfernlund / ldc-demand-forecasting

Forecasting gas demand distributed via local gas networks in the UK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LDC Demand Forecasting 📈

Forecasting gas demand distributed via local gas networks in the UK.

All analysis and results are contained in the notebook main.ipynb. The source directory src/ contains some helper code, including the Bayesian linear regression model, linear basis mapping and some evaluation metrics. The provided datasets can be found in the data/ directory.

A good reference on BLR can be found in chapter 9 of Maths for Machine Learning.

Apologies for the lack of docstrings and proper commenting / documentation, I was quite pressed for time!

Installation 💻

To install the environment, you will need to have python 3.10 installed as well as poetry installation. The tensorflow dependencies are for MacOS -- simply replace tensorflow-macos with tensorflow in the pyproject.toml file for installation on Linux or Windows. From the top-level directory, run the following commands:

poetry env use <path to python 3.10 executable>
poetry install

Launching the Jupyter Notebook 🚀

With the environment activated, run:

jupyter notebook

About

Forecasting gas demand distributed via local gas networks in the UK.

License:Apache License 2.0


Languages

Language:Jupyter Notebook 99.8%Language:Python 0.2%