Train hidden networks example

조회 수: 4 (최근 30일)
xavier
xavier 2017년 10월 23일
답변: Tejas 2024년 10월 28일
Hello,
I try to understand the AutoencoderDigitsexample on Matlab 2016a. There is 2 hidden layers , ones composed of 100 neurons and the second composed of 50 layer and the outpout composed of 10 neurons with softmax function.
I don't understand, as it is written it seems there are no output functions in the hidden layer:
autoenc1 = trainAutoencoder(xTrainImages,hiddenSize1, ...
'MaxEpochs',400, ...
'L2WeightRegularization',0.004, ...
'SparsityRegularization',4, ...
'SparsityProportion',0.15, ...
'ScaleData', false);
My first question is : are there output functions on the hidden layers?
My second question is about the trainAutoencoder function. What are the goals of that function? What tries to train that function?

답변 (1개)

Tejas
Tejas 2024년 10월 28일
Hello Xavier,
I am assuming the example mentioned in the question, is the one provided in this documentation:
web(fullfile(docroot, "deeplearning/ug/train-stacked-autoencoders-for-image-classification.html"));
Hidden layers have associated output functions known as activation functions. Commonly used activation functions include:
  • Sigmoid:
web(fullfile(docroot, "deeplearning/ref/dlarray.sigmoid.html"));
  • ReLU:
web(fullfile(docroot, "deeplearning/ref/dlarray.relu.html"));
The 'trainAutoencoder' function is responsible for training the model on input data. In the example above, this function trains the model to identify patterns in input images, ultimately classifying them into digits from 0 to 9. This function is not trained by any other function, instead when called, it is the one that trains the model.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by