-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Reza-Rezvan/LSTM_HHO
- Loading branch information
Showing
1 changed file
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 1,44 @@ | ||
# LSTM_HHO | ||
LSTM with Harris Hawks optimization (HHO) | ||
# LSTM Model with Harris Hawks Optimization for Time Series Forecasting | ||
|
||
This repository provides a framework for using an LSTM (Long Short-Term Memory) neural network, optimized with the Harris Hawks Optimization (HHO) algorithm, to forecast time series data. This setup is flexible and allows users to input their own CSV datasets for forecasting a target variable of their choice. | ||
|
||
## Table of Contents | ||
|
||
- [Project Description](#project-description) | ||
- [Dataset](#dataset) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [Results](#results) | ||
- [Contributing](#contributing) | ||
- [License](#license) | ||
|
||
## Project Description | ||
|
||
The project aims to forecast a specified target variable in time series data using an LSTM neural network, a powerful tool for capturing temporal dependencies. To enhance the model's performance, the Harris Hawks Optimization (HHO) algorithm is used to fine-tune hyperparameters such as the number of LSTM units and batch size. | ||
|
||
## Dataset | ||
|
||
Users can utilize their own dataset in CSV format. The dataset should include: | ||
|
||
- A `datetime` column to be used as the index. | ||
- One or more feature columns that provide data related to the target variable. | ||
- A target variable column that you wish to predict. The name of this column can be customized in the code. | ||
|
||
Ensure that your dataset is properly preprocessed, including handling any missing values and scaling numerical features if necessary. | ||
|
||
## Installation | ||
|
||
To set up the environment for this project, follow these steps: | ||
|
||
1. **Clone the repository**: | ||
```bash | ||
git clone https://github.com/your-username/your-repo-name.git | ||
cd your-repo-name | ||
|
||
2. **Create a virtual environment (optional but recommended):** | ||
```bash | ||
python -m venv env | ||
source env/bin/activate # On Windows use `env\Scripts\activate` | ||
4. **install the required packages:** | ||
```bash | ||
pip install -r requirements.txt |