This is the official documentation for Energy_Analytics - a data analytics tool for building energy meter data.
- Anaconda (Python 3)
- Python 3.6
For the full list of requirements, check environment.yml
- Install the requirements.
- Clone the repository.
- Run
conda env create -f environment.yml
This creates a new python environment called "mortar". - Run
conda activate mortar` (windows) or
source activate mortar` (macOS/Linux) to start the environment shell.
The primary purpose of the library is to create baselines of building energy meter data and calculate the cost & energy savings post retrofit. Energy_Analytics/Energy_Analytics/ contains 9 files,
- Import_Data.py
- This script contains two classes, Import_Data & Import_MDAL to extract data from csv files and MDAL respectively. Note - In order to extract data from MDAL, you need to run the mortar environment.
- Clean_Data.py
- This script contains functions for cleaning the data, such as outlier detection, removing out-of-bounds data, resampling, interpolation...
- Preprocess_Data.py
- This script contains functions for processing the cleaned data, such as adding time features (year, month, day, time-of-day, day-of-week), standardizing & normalizing data...
- Model_Data.py
- This script contains functions for modeling the processed data with different Machine Learning algorithms like linear, lasso, ridge regression, random forest... and selecting the one with the best fit.
- Plot_Data.py
- This script contains functions for creating plots.
- Wrapper.py
- This script is a wrapper around the above scripts. User should use this to conduct data analysis. ADD EXPLANATION & USE CASES.
- Main.ipynb
- This is a jupyter notebook that demonstrates how to use the library.
- input.json
- This is a sample json file that the user can use to modify the parameters.
- sample.json
- This is a sample output of the library.
You can find the complete documentation at - https://phgupta.github.io/Energy_Analytics/