Unable to find helperExtractLabeledData

7 次查看(过去 30 天)
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 ?

请先登录,再进行评论。

采纳的回答

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