MATLAB Answers

0

deep learning convnet with matlab

Asked by As Has on 19 Dec 2017
Latest activity Edited by Cedric Wannaz
on 31 Dec 2017
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

  0 Comments

Sign in to comment.

1 Answer

Answer by As Has on 31 Dec 2017

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)

  0 Comments

Sign in to comment.