Tutorial For Recurrent Neural Network (RNN)
Image by author
A recurrent neural network (RNN) is the type of artificial neural network (ANN) that is used in Apple’s Siri and Google’s voice search. RNN remembers past inputs due to an internal memory which is useful for predicting stock prices, generating sentences, transcriptions, and machine translation.
Date column to DateTime format and adding it to index. Dropping irrelevant columns to make the final dataset cleaner.
No missing values, the dataset is clean.
MasterCard card stock prices have been on the high rise since 2016. It had a dip in the first quarter of 2020 but it gained a stable position in the latter half of the year.
Simple train test split function
Normalizing the data using MinMaxScaler
Spliting a univariate sequence into samples
Reshaping X_train for efficient modelling