MATLAB Answers

Signal Labeller App / Machine Learning data format

3 views (last 30 days)
Thomas Wellsbury
Thomas Wellsbury on 24 Apr 2021
Commented: Thomas Wellsbury on 29 Apr 2021
I have labelled a signal in the signal labeller app which provides me with ls (labeledSignalSet) but the classifier learner app will not accepet this format of data, only table or matrix. However it appears you cannot change a labelledSignalSet into a table or matrix) What is the best way to create a format with the signal in one column and the label in the other?
load('labeled23.mat')
load('lblDefs.mat')
[sd,ld] = createDatastores(ls,["Cycle"]);
lss = labeledSignalSet(sd,lblDefs)

Answers (1)

Pratyush Roy
Pratyush Roy on 29 Apr 2021
Hi,
The getLabeledSignal function can convert a labelled signal set to a table. You can go through the documentation page for more details.
Hope this helps!
  1 Comment
Thomas Wellsbury
Thomas Wellsbury on 29 Apr 2021
Hello,
I have looked into the getLabeledSignal function, however, as far as i can see the function only produces a table for ROL labels in the format of time from, time too and label. The probelm is the classifier learner app requires a label value for each signal time stamp which the output does not provide?
e.g. if i have a signal that lasts for 10 minutes at 100Hz with two labels for each 5 min. The output would provide a table such as;
ROI Limits Value
0 5min Label 1
5min 10min Label 2
However, what is required for the classifier learner app is:
0.001s Label 1
0.002s Label 1
0.003s Label 1
0.004s Label 1
0.005s Label 1
etc etc.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!