How to optimize Hidden Nodes in each hidden layer ?

1 回表示 (過去 30 日間)
RAJEEV
RAJEEV 2023 年 5 月 10 日
コメント済み: RAJEEV 2023 年 5 月 15 日
I am trying to design a 5 layer MLP model .
Description: Input Layer : 1; 2 number of inputs
Output Layer: 1; 1 number of output
Hidden Layer: 2
I want to learn how I can select the number of neurons in each hidden layer and how to justify such selection.

採用された回答

Muskan
Muskan 2023 年 5 月 15 日
Hi Rajeev,
As per my understanding of the question, the number of hidden nodes should be chosen based on the number of features in the input layer and the number of output nodes. There is a rule of thumb that says the number of hidden nodes should be somewhere between the number of input features and the number of output nodes. This is just a starting point, and you should experiment with different numbers to see what works best for your specific problem.
Moreover, the number of neurons and number layers required for the hidden layer also depends upon training cases, amount of outliers, the complexity of, data that is to be learned, and the type of activation functions used.
I hope the above information helps resolve your query.
Thanks
  1 件のコメント
RAJEEV
RAJEEV 2023 年 5 月 15 日
Thank You for your response.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by