How does it works the input_shape variable in Conv1d in Keras?
问题 Ciao, I'm working with CNN 1d on Keras but I have tons of troubles with the input shape variable. I have a time series of 100 timesteps and 5 features with boolean labels. I want to train a CNN 1d that works with a sliding window of length 10. This is a very simple code I wrote: from keras.models import Sequential from keras.layers import Dense, Conv1D import numpy as np N_FEATURES=5 N_TIMESTEPS=10 X = np.random.rand((100, N_FEATURES)) Y = np.random.randint(0,2, size=100) # CNN model