Unable to use a value of type SeriesNetwork as an index

조회 수: 5 (최근 30일)
Jorge Bennasar Vazquez
Jorge Bennasar Vazquez 2020년 2월 7일
댓글: Yunyu Hu 2021년 8월 19일
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
Imola Fodor
Imola Fodor 2020년 11월 4일
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).

댓글을 달려면 로그인하십시오.

답변 (1개)

Madhav Thakker
Madhav Thakker 2021년 4월 12일
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.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by