How to find the optimum number of neurons and hidden layers for ANN?

조회 수: 6 (최근 30일)
Sunita
Sunita 2023년 12월 13일
답변: Ganesh 2023년 12월 13일
How to find the optimum number of neurons and hidden layers for ANN?

답변 (2개)

Matt J
Matt J 2023년 12월 13일
편집: Matt J 2023년 12월 13일
By trial and error, though you can automate some of that using the Experiment Manager.

Ganesh
Ganesh 2023년 12월 13일
I understand you are trying to train your ANN and would like to know the ideal number of neurons and hidden layers you need to use.
In Deep Learning, there is no "ideal" number for either of those parameters. The number of neurons on the input layers is equal to the number of Features in your dataset and the number of neurons on the output layer should be the number of Labels in your dataset. The other layers and neurons depends on the compelixity of your dataset.
If your dataset is small enough, you can try to automate the training by implementing different number of neurons and hidden layers. In some cases, the number of neurons follow the following number:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Neural Simulation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by