Create a hybrid2 layers of LSTM to predict next hour’s price instead of next day’s price…
- User
Create a hybrid2 layers of LSTM to predict next hour’s price instead of next day’s price which may have better application in real world.
First you will implemented data normalization like min-max normalization and normalization
with window [5] where the data is normalized based on the window’s initial value and the percentage of change.
Multiple Layer Perceptron (MLP), Long-Short-
Term-Memory (LSTM) and Gated recurrent units (GRU) models are compared
on the test dataset with cross-validation.
- Dataset Exploration
Data used in this research is collected from Kaggle [6]. Bitcoin data from Jan
2016 to July 2022 is collected. It has a timestamp, the value at Open, High, Low,
Close, the volume traded in Bitcoin and USD, the weighted price and the date.
This prompt focuses on predicting Bitcoin price in the future hour by using the price of past 24 hours, so only the timestamp and the
- Assistant
weighted price are considered relevant for our purpose. The dataset is pre-processed to remove irrelevant columns and then split into training (80%) and testing (20%) sets.
- Model Architecture
The hybrid 2-layer LSTM model is designed as follows:
- Input Layer: Takes the weighted price of the past 24 hours as input (shape: 24, 1).