Borrar filtros
Borrar filtros

How to optimize Hidden Nodes in each hidden layer ?

2 visualizaciones (últimos 30 días)
RAJEEV
RAJEEV el 10 de Mayo de 2023
Comentada: RAJEEV el 15 de Mayo de 2023
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.

Respuesta aceptada

Muskan
Muskan el 15 de Mayo de 2023
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

Más respuestas (0)

Categorías

Más información sobre Problem-Based Optimization Setup en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by