Signal Labeller App / Machine Learning data format

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

回答(1 个)

Pratyush Roy
Pratyush Roy 2021-4-29
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 个评论
Thomas Wellsbury
Thomas Wellsbury 2021-4-29
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 2021-7-20
Thomas, you can use the signalMask object to convert region or interest labels to cateorical sequences with one label per sample.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 AI for Signals 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by