import pandas as pd
path = "./ "
train_ori = pd.read_csv(path + "train.csv ")
test_ori = pd.read_csv(path + "test.csv ")
sample = pd.read_csv(path + "sample_submission.csv ")
test.head()
Since the given data is time series data, we prefer using a recurrent neural network for the purpose,
LSTM network to be more specific
Reason being, RNNs have a ability to remmeber data rather than to train and predict upon data once and for all
Many to one
RS = RobustScaler()
train = RS.fit_transform(train)
test = RS.transform(test)
Bidirectional ( LSTM ( 450 units) )
Bidirectional ( LSTM ( 350 units) )
Bidirectional ( LSTM ( 250 units) )
Bidirectional ( LSTM ( 150 units) )
Bidirectional ( LSTM ( 100 units) )
Input layer
Bidirectional ( LSTM ( 450 units) )
Bidirectional ( LSTM ( 350 units) )
Bidirectional ( LSTM ( 250 units) )
Bidirectional ( LSTM ( 150 units) )
Bidirectional ( LSTM ( 100 units) )
Input layer
Bidirectional ( LSTM ( 450 units) )
Bidirectional ( LSTM ( 350 units) )
Bidirectional ( LSTM ( 250 units) )
Bidirectional ( LSTM ( 150 units) )
Bidirectional ( LSTM ( 100 units) )
Dense( 50 )
Dense( 1 )
Mean Absolute Error = 0.158
Runtime = 31315.8 seconds (8.7 hours)
Accelerator = TPU v3.8