Closed AmberSJones closed 3 years ago
Welcome to Talos community! Thanks so much for creating your first issue :)
Have you tried if your model works when you just run it stand-alone?
Yes, the model runs fine on its own.
Have a look at this issue. I think it will resolve your case.
TL;DR for LSTM you have to explicitly declare validation data in Scan()
Closing here. Feel free to reopen if anything.
I have a working LSTM model to which I am trying to apply Talos to tune and determine hyperparameters. The data are a time series of a single variable. My code, including model definition, parameter list, and scan call are below - I have tried diligently to follow the talos examples and documentation. When I run this, I get an error. Any help or insight is appreciated.
File "", line 8, in create_model_talos model.add(LSTM(params['cells'], input_shape=(time_steps, num_features))) # one LSTM layer IndexError: only integers, slices (
:
), ellipsis (...
), numpy.newaxis (None
) and integer or boolean arrays are valid indices