How to split test and train data manually?
조회 수: 4 (최근 30일)
이전 댓글 표시
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)
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!