Energy_Consumption_Forecasting

Energy Consumption XGBoost Model

Project Overview

This project aims to predict energy consumption using XGBoost, a popular machine learning algorithm for regression and classification problems. The dataset contains historical energy consumption data, which is used to train the model and make predictions. The main focus is on improving the model’s performance by incorporating various features and tuning hyperparameters.

Technologies

Project Description

Performance Metrics -

The following performance metrics were used to assess the model’s performance:

Models

Four different models were built and evaluated, each incorporating different features to examine their impact on the model’s performance:

Results

Screen Shot 2023-04-24 at 7 03 02 AM

Insights

Conclusion

Incorporating lag features and hyperparameter tuning with random search proved to be beneficial for the model’s performance. The lag features helped capture temporal dependencies in the data, leading to better predictions by identifying trends and seasonality. Hyperparameter tuning using random search allowed the model to find the best combination of hyperparameters, resulting in improved generalization and performance on the holdout set. However, the holiday data did not have a noticeable impact on the model’s performance, suggesting that it may not be an important feature for this particular dataset or problem.

Data sourced: https://www.kaggle.com/datasets/robikscube/hourly-energy-consumption

Author: Lacey Morgan