Mlp, Time Series Forecasting, Data Science, Machine Learning, TensorFlow.
train['date'].max().date()) '''Output Min date from train set: 2013-01-01 Max date from train set: 2017-12-31 ''' Kemudian kita cari jarak waktu terakhir dari training set dengan waktu terakhir dari test set. lag_size = (test['date'].max().date() - train['date'].max().date()).days print('Max date