Unable to use a value of type SeriesNetwork as an index

3 visualizaciones (últimos 30 días)
Jorge Bennasar Vazquez
Jorge Bennasar Vazquez el 7 de Feb. de 2020
Comentada: Yunyu Hu el 19 de Ag. de 2021
Hi everyone,
I was working with my LSTM network (working perfectly) and suddenly I encountered this error (after working 100 times approx...):
running: Y_pred = predict(net,X_test{(idx)});
error: Unable to use a value of type SeriesNetwork as an index.
net is a SeriesNetwork (as it should be) and X_test has the correct shape.
I am extremely confused,
Thanks
  1 comentario
Imola Fodor
Imola Fodor el 4 de Nov. de 2020
I have practically the same problem. I am passing net (alexnet) as an argument for the activations() function, and I get the error right away (not after working).

Iniciar sesión para comentar.

Respuestas (1)

Madhav Thakker
Madhav Thakker el 12 de Abr. de 2021
Hi Jorge,
I am guessing you had a variable named SeriesNetwork in memory when trying to do the predict. Can you try clear out excess variables from memory using clear and try it again?
Hope this helps.

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by