フィルターのクリア

How to assign labels to a dataset using 'signalDatastore' object?

20 ビュー (過去 30 日間)
BIPIN SAMUEL
BIPIN SAMUEL 2024 年 6 月 24 日 13:49
コメント済み: BIPIN SAMUEL 2024 年 6 月 25 日 10:40
I have a dataset in a folder for classification purpose using crossentropy as loss function in deep learning. I need to add labels to my dataset. How can I do this? Whether signalDatastore object helps to assign labels like imageDatastore object?

回答 (1 件)

dpb
dpb 2024 年 6 月 24 日 15:49
Not at all sure about what you mean by "object helps to assign labels like imageDatastore object".
signalDatastore <example> illustrates picking two variables out of a set of files; it does require you know what the desired variable names from the files are, but that seems like something would have to know, anyway.
But, there's also an example of programmatically return variable names from a .mat or text file under the SignalVariableNames parameter for files.
  1 件のコメント
BIPIN SAMUEL
BIPIN SAMUEL 2024 年 6 月 25 日 10:40
Thank You @dpb for the response.
ds = imageDatastore(filefolder,...
'IncludeSubfolders',true,...
'LabelSource','foldernames');
Here the labels are assinged using the 'foldernames'. So, we are not needed to provide the target data (labels) separately. Is it possible to use "signalDatastore" or "arrayDatastore" like this? So, that we can use the network for classification using crossentropy as loss function. Moreover, I have one more query. Whether it is possible to use the function trainNetwork() to train a network with two inputs i.e, one with sequential data and other with its features. Like an example shown here. But here trainnet() is used for training. Since I am using Matlab 2023a version this function is not available.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by