a) All necessary libraries are imported for data manipulation, model creation and visualization.
b) CSV data is loaded and "Year" column is dropped and dataset is split into training and testing sets.
c) Normalization of dataset is done to scale data between 0 and 1 using MinMaxScalar.
d) Input and target sequences for LSTM model is created.
a) LSTM based neural network, that takes input size (number of features), hidden size of LSTM units, number of output features.
b) Model contains a LSTM layer and Linear Fully connected layer.
c) Forward function process the input and produce the output.
a) Train the model using train_test.py script
b) The train_model() prints the loss at every 10th epoch.
c) Model uses the Mean Squared error as the loss function and also uses Adam optimizer
a) LSTM model is tested on the given test input and predicts the outputs
a) Plot of actual and predicted values for Rainfall focusing on the last month of the sequence.
Use the below command to run the scripts
python train_test.py