I cloned Github notebooks(https://github.com/Azure/DeepLearningForTimeSeriesForecasting) provided by Microsoft and was trying to run 4_ES_RNN.ipynb.
However, I am getting the following error for train model fit. Below is the code and error that I received.
Code:
model.fit(train_inputs['X'],
train_inputs['target'],
batch_size=BATCH_SIZE,
shuffle=False,
epochs=EPOCHS,
#validation_data=(valid_inputs['X'], valid_inputs['target']),
validation_split=0.1,
callbacks=[earlystop],
verbose=1)
Error:
InvalidArgumentError: Expected size[0] in [0, 21], but got 29
[[{<!-- -->{node es_1/Slice_13}} = Slice[Index=DT_INT32, T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_input_1_0_0, es_1/Slice_13/begin, es_1/Slice_13/size)]]
Any recommendation would be greatly appreciated, thanks!