How to split test and train data manually?

I have 3 folders, I want the 2 folders for my training and 1 folder for my testing. But my code seems only to recognize the traindata set.
train = audioDatastore("C:\Users\aleo1\Desktop\Dataset",...
'IncludeSubfolders', true,...
'FileExtensions', '.wav',...
'LabelSource','foldernames')
test = audioDatastore("C:\Users\aleo1\Desktop\Dataset2",...
'IncludeSubfolders', true,...
'FileExtensions', '.wav',...
'LabelSource','foldernames')
[trainDatastore] =(train);
[testDatastore] = (test);
trainDatastore
trainDatastoreCount = countEachLabel(trainDatastore)
testDatastore
testDatastoreCount = countEachLabel(testDatastore)

Antworten (0)

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018b

Tags

Gefragt:

am 21 Dez. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by