필터 지우기
필터 지우기

How to add more than one hidden layer?

조회 수: 17 (최근 30일)
Pratibha
Pratibha 2015년 4월 1일
댓글: Marco Pizzoli 2021년 6월 8일
I need to use feedforwardnet to classify the images and also have train the NN in 3 levels.
Is it possible to add 3 hidden layers to feedforwardnet?

채택된 답변

Vinod Sudheesh
Vinod Sudheesh 2015년 4월 1일
Yes, it is possible to create a "feedforward neural network" with three hidden layers using the "feedforwardnet" function. This can be achieved by passing a vector of hidden layer sizes as the argument to the "feedforwardnet" function.
>> net=feedforwardnet([10 11 12]);
>> view(net);
  댓글 수: 6
Greg Heath
Greg Heath 2019년 2월 17일
A linear function does not need a hidden layer.
A nonlinear function needs no more than one.
However some nonlinear functions are more conveniently represented by two or more hidden layers.
There is an inherent degree of approximation for bounded piecewise continuous functions. Trying to force a closer fit by adding higher order terms (e.g., adding additional hidden nodes )often leads to instability.
You can test the stability of different designs with a different no. of hidden nodes. by comparing their performance as increasing levels of noise are added to the input.
Hope this helps.
Thank you for formally accepting my answer
Greg
Marco Pizzoli
Marco Pizzoli 2021년 6월 8일
Hi Greg,
I am very curious about your observation on the minimum number of necessary hidden nodes. In this regard I have a question: what do you mean by target vs input plot? Because, I can imagine finding the local maxima of the time series of the target or input (taken separately), but not on the graph that considers them together. I apologize in advance for my stupid question.
Best regards,
Marco

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by