Coder Social home page Coder Social logo

building-electricity-prediction's Introduction

Predicting building electricity consumption using KNN

This was originally a project made possible thanks to a Coursera Guided Project. The goal is to use K-Nearest Neighbors to predict the electricity consumption of buildings based on past use. I decided to transform it into a Streamlit dashboard where you can filter by timezone and industry.

The project also only used K=1 for simplicity but my dashboard lets you choose up to K=6, plots the actual vs predicted scatter plot, and also gives the R-square value.

I have one main struggle that I want to work on. For the test, train split, rather than randomly splitting the data 70-30, the split is done truncating data up to a certain date and then predict the values for the other years. My struggle is trying to use a streamlit widget that I can use to change the dates more dynamically. It probably won't add a lot to the project, but I want to get familiar with working with datetime structures in Streamlit.

Future ideas:

  • Use different algorithms to make the prediction and compare them.
  • Allow the user to choose the algorithm and have the dashboard display the results.

This dataset does have one major limitation: not every combination of timezone and industry has enough data to complete all parts of the analysis, if any at all.

building-electricity-prediction's People

Contributors

ldruizsan 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.