Unable to find helperExtractLabeledData
Ältere Kommentare anzeigen
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
https://ssd.mathworks.com/supportfiles/predmaint/anomalyDetection3axisVibration/v1/vibrationData.zip
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 Kommentare
Abderrahim. B
am 25 Aug. 2022
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
am 25 Aug. 2022
Akzeptierte Antwort
Weitere Antworten (1)
Abderrahim. B
am 25 Aug. 2022
2 Stimmen
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.
Kategorien
Mehr zu Big Data Processing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!