This project is an application for forecasting household power consumption. The model uses a dataset containing the household power consumption, then forecasts future consumption using either a univariate or a multivariate model.
- Python 3.7+
- Python libraries: pandas, numpy, tensorflow, tkinter, matplotlib, sklearn
- Load the household power consumption dataset.
- Fill in missing values using mean imputation.
- Resample the dataset per hour.
- Split the data into training and test sets.
- Create and train either a univariate or multivariate model.
- Forecast power consumption using the model.
- Compute and display the Mean Absolute Error (MAE) of the forecast.
- Display the forecast and actual values in a plot.
- Run the script using Python. A graphical user interface will appear.
- Follow the prompts to select the model type (univariate or multivariate), the number of hours to forecast, and other options.
- The program will display the MAE of the forecast and a plot comparing the forecast and actual values.
- This program uses pre-trained weights (files
MultiWeightsandUniWeights). Make sure these files are available in the specified locations. - Make sure all dependencies and the necessary data files are correctly set up in your environment before running the program.
- The file paths in the program should be correctly set according to your directory structure.
Improvements and additional features will be added to the project in the future.