I was wondering how to handle the recorded time series data to feed it into a RNN.
I want to take the data of 16 time steps and the labels of 15 to make the RNN classify the 16th time step(if that makes any sense). By using every third entry for the batch I can cover about 3 Seconds of data with a reasonable amount of entries per second.
Here is a smaller .csv of the recorded data. The Columns "Time" and "Mayday" are just for reference to make sure that everything is labeled correctly and can therefore be dropped.
This is what my data looks like after dropping the unrelated columns
Here is what I have tried so far in google colab unfortunately this approach doesnt work and I get an "AttributeError: 'tuple' object has no attribute 'shape'" when calling model.fit.
Alternatively I have also tried this:
data = pd.read_csv("slim.csv", sep=",")
data.drop(['Time', 'Mayday'], axis=1)
dataset = tf.data.Dataset.from_tensor_slices(data)
But from there on out I am not sure how to handle the data to get the desired result as calling tf.keras.preprocessing.timeseries_dataset_from_array() on dataset terminates with the error message
'TensorSliceDataset' object is not subscriptable