Timeseries Input To An Lstm
I have dataset containing water samples collected from different locations. For example, ABC1 water sample is taken from a river in Arizona and ABC2 is a water sample taken from a
Solution 1:
Looking at the docs,tf.keras.preprocessing.sequence.TimeseriesGenerator cannot take a dictionary as the first argument. The 'slice' error is just a manifestation of that fact, as the function tries to use slices of the first argument (dict) and fails. again from the docs:
Arguments: data: Indexable generator (such as list or Numpy array) containing consecutive data points (timesteps).
so perhaps you want to pass input_dict['ABC1']
or possibly input_dict['ABC1'].values
Post a Comment for "Timeseries Input To An Lstm"