Unable to find helperExtractLabeledData

조회 수: 7 (최근 30일)
Andrew
Andrew 2022년 8월 25일
답변: Abderrahim. B 2022년 8월 25일
I am currently working on the demo:
and I am on the Detect Anomalies with LSTM Autoencoder Network page.
I copy and pasted the url
correctly and loaded the data and helper methods that I need to get. However, I can not find the helperExtractLabeledData function. There is helperPlotVibrationData.m function in the file. However, there is not helperExtractLabeledData function.
Where can I find it?
Plus, if I can not find it, what kind of format does
net = trainNetwork(featuresAfter, featuresAfter, layers, options);
featuresAfter variable requires? Since there is no helperExtractLabeledData, I tried removing the label part of the featureNormal table and made it as featuresAfter and as a result, it is throwing me this error.
net = trainNetwork(featuresAfter, featuresAfter, layers, options);
Error using trainNetwork
Too many input arguments.
Caused by:
Error using
nnet.internal.cnn.trainNetwork.DLTInputParser>iParseInputArguments
Too many input arguments.
So, I decided to input featuresAfter as a matrix instead of table by doing featuresAfter = featuresAfter{:,:}. Then it throwed me this error.
net = trainNetwork(featuresAfter2, featuresAfter2, layers, options);
Error using trainNetwork
The training sequences are of feature
dimension 10282 but the input layer
expects sequences of feature dimension
1.
How does featuresAfter have to look like? Is the variable has to be in table, matrix, or anything else?
I will be thankful if somebody help me.
  댓글 수: 2
Abderrahim. B
Abderrahim. B 2022년 8월 25일
The supporting function helperExtractLabeledData is a local function that is located in the bottom of the live script AnomalyDetectionUsing3axisVibrationDataExample.
Which MATLAB version are you opening this example in ?
Andrew
Andrew 2022년 8월 25일
Thanks a lot!

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

채택된 답변

Walter Roberson
Walter Roberson 2022년 8월 25일
However, there is not helperExtractLabeledData function. Where can I find it?
That example is new as of R2020b, the release after you have. The helper function does not exist in your release.
I do not have access to that toolbox, so I cannot tell you the exact location you would find the file if it were present in your system.

추가 답변 (1개)

Abderrahim. B
Abderrahim. B 2022년 8월 25일
Hi!
@Walter Roberson explained why you don't have the helper function mentioned in your question. Here I am sharing a repository that has the code for the same helper function.
Tell us if this solved the issue.

카테고리

Help CenterFile Exchange에서 Big Data Processing에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by