Signal Labeller App / Machine Learning data format

2 visualizzazioni (ultimi 30 giorni)
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)

Risposte (1)

Pratyush Roy
Pratyush Roy il 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!
  2 Commenti
Thomas Wellsbury
Thomas Wellsbury il 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.
Frantz Bouchereau
Frantz Bouchereau il 20 Lug 2021
Thomas, you can use the signalMask object to convert region or interest labels to cateorical sequences with one label per sample.

Accedi per commentare.

Categorie

Scopri di più su AI for Signals in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by