How to find the optimum number of neurons and hidden layers for ANN?
2 ビュー (過去 30 日間)
古いコメントを表示
How to find the optimum number of neurons and hidden layers for ANN?
0 件のコメント
回答 (2 件)
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1567954/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1567959/image.png)
Hope this helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Neural Simulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!