Skip to content

Tag: conv-neural-network

Input Shape for 1D CNN (Keras)

I’m building a CNN using Keras, with the following Conv1D as my first layer: I’m training with the function: In which train_df is a pandas dataframe of two columns where, for each row, label is an int (0 or 1) and payload is a ndarray of floats padded with zeros/truncated to a length of 1000. The …