dividing groundtruth into training, testing and validation

조회 수: 8 (최근 30일)
Raza Ali
Raza Ali 2021년 2월 5일
댓글: yanqi liu 2021년 2월 5일
Hi, I have 800 images and labels in data set and I wanted to divide it into test, train and validation set.
I am using following code:
load gTruth % load gTruth file of training data
[imds,pxds] = pixelLabelTrainingData(gTruth);
imdsTrain=imds(81:720);
pxdsTrain=pxds(81:720);
imdsTest=imds(1:80);
pxdsTest=pxds(1:80);
imdsVal=imds(721:800);
pxdsVal=pxds(721:800);
its not working, any possible solution....?

답변 (1개)

yanqi liu
yanqi liu 2021년 2월 5일
[imds60, imds10, imds30] = splitEachLabel(imds,0.6,0.1)
  댓글 수: 2
Raza Ali
Raza Ali 2021년 2월 5일
While using this command, I am getting following error:
Error using matlab.io.datastore.ImageDatastore/splitEachLabel (line 211)
splitEachLabel requires non-empty Labels property.
yanqi liu
yanqi liu 2021년 2월 5일
can you upload the demo data, and we can make some test case.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 AI for Signals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by