Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- layers = [imageInputLayer([32 32 3])
- fullyConnectedLayer(50)
- reluLayer
- fullyConnectedLayer(50)
- reluLayer
- fullyConnectedLayer(10)
- softmaxLayer
- classificationLayer];
- options = trainingOptions('sgdm',...
- 'MiniBatchSize', 8192,...
- 'ValidationData', {xValid, tValid},...
- 'ValidationFrequency', 30,...
- 'MaxEpochs',400,...
- 'Plots', 'Training-Progress',...
- 'L2Regularization', 0, ...
- 'Momentum', 0.9, ...
- 'ValidationPatience', 3, ...
- 'Shuffle', 'every-epoch', ...
- 'InitialLearnRate', 0.001);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement