This project provides a solution for forecasting renewable energy demand using time series models, particularly Long Short-Term Memory (LSTM) networks.
- Task: Time Series Forecasting of renewable energy demand.
- Model: LSTM (Long Short-Term Memory) Neural Network.
- Data: Historical energy demand data.
- Libraries: TensorFlow, Keras, Pandas, Matplotlib, scikit-learn.
data.csv: CSV file containing historical energy demand data.prepare_data(): Function to prepare the time series dataset.build_lstm_model(): Function defining the LSTM model.train_test_split(): Split data into training and testing sets.train_model(): Function to train the model.forecast(): Function to make future predictions.
- Prepare a dataset (
data.csv) with timestamps and demand values. - Load and preprocess the dataset.
- Train the LSTM model.
- Evaluate and forecast future energy demand.
- Python 3.8+
- TensorFlow 2.x
- Pandas
- Matplotlib
- scikit-learn
Install dependencies:
pip install tensorflow pandas matplotlib scikit-learn- Trained LSTM model for demand forecasting.
- Forecasted energy demand plot.
Okes Imoni
Feel free to fork and contribute to the project!