Signal Labeller App / Machine Learning data format

조회 수: 8 (최근 30일)
Thomas Wellsbury
Thomas Wellsbury 2021년 4월 24일
댓글: Frantz Bouchereau 2021년 7월 20일
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에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by