|
Algorithm 2 LSTM Training Methods |
Require: ILI, Respiratory, and AQI Dataset integration
Ensure: Sum up the number of disease cases per week and order them
-
1:
Call the first 100 observation data
-
2:
Normalize dataset with MinMaxScaler
-
3:
-
4:
-
5:
Training and validation data partition
-
6:
Number of previous parameter
-
7:
-
8:
-
9:
Create LSTM model
-
10:
Add LSTM layers with 4 hidden layers
-
11:
Add Dense Layer
-
12:
loss=’mean_squared_error’, optimizer=’adam’Compile the model using Adam optimizer
-
13:
X_train, Y_train, epochs=150, batch_size=1, verbose=2Train the model in 150 epochs
-
14:
Calculate the RMSE
|