Signal Labeller App / Machine Learning data format

2 ビュー (過去 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 Center および File ExchangeAI for Signals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by