MATLAB Answers

Itachi
0

Hyperparameter tuning of neural network

Asked by Itachi
on 20 Jul 2019
Latest activity Commented on by Itachi
on 21 Jul 2019
Hi guys,
I need a code to find the optimum configuration of a neural network. I mean the number of hidden layers and their corresponding neurons. I found the following topic but there's nothing on the number of hidden layers.
Please, can anyone help me? Thanks in advance.

  0 Comments

Sign in to comment.

1 Answer

Answer by Greg Heath
on 21 Jul 2019

One hidden layer is always sufficient. However, sometimes
1. Knowledge of the physical or mathematical process may lead to a better understanding using multiple hidden layers
2. Multiple hidden layers can be used to minimze the total number of hidden layer weights that have to be estimated.
Hope this helps.
Thank you for formally accepting my answer
Greg

  1 Comment

Thanks Greg, but is there any toolbox or code avalible for this kind of hyperparameter tuning?

Sign in to comment.