Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. layers = [imageInputLayer([32 32 3])
  2. fullyConnectedLayer(50)
  3. reluLayer
  4. fullyConnectedLayer(50)
  5. reluLayer
  6. fullyConnectedLayer(10)
  7. softmaxLayer
  8. classificationLayer];
  9. options = trainingOptions('sgdm',...
  10. 'MiniBatchSize', 8192,...
  11. 'ValidationData', {xValid, tValid},...
  12. 'ValidationFrequency', 30,...
  13. 'MaxEpochs',400,...
  14. 'Plots', 'Training-Progress',...
  15. 'L2Regularization', 0, ...
  16. 'Momentum', 0.9, ...
  17. 'ValidationPatience', 3, ...
  18. 'Shuffle', 'every-epoch', ...
  19. 'InitialLearnRate', 0.001);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement