deep learning convnet with matlab

조회 수: 12 (최근 30일)
Salma Hassan
Salma Hassan 2017년 12월 19일
편집: Cedric 2017년 12월 31일
i want to divide the dataset into 3 parts ( training , validation , test ) with matlab
is this line true
[trainingimages,valDigitData,testimage]=splitEachLabel(allimages,0.7,0.2,0.1 ,'randomize');
and then into the training option i add the
trainingOptions('sgdm',....,'ValidationData',valDigitData,'ValidationFrequency',50)
is this ture

답변 (1개)

Salma Hassan
Salma Hassan 2017년 12월 31일
ok i found the answer
Create three new datastores from the files in imds. The first datastore imds60 contains the first 60% of files with the demos label and the first 60% of files with the imagesci label. The second datastore imds10 contains the next 10% of files from each label. The third datastore imds30 contains the remaining 30% of files from each label. If the percentage applied to a label does not result in a whole number of files, splitEachLabel rounds down to the nearest whole number.
[imds60, imds10, imds30] = splitEachLabel(imds,0.6,0.1)

카테고리

Help CenterFile Exchange에서 Preprocess Data for Deep Neural Networks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by