Can I initialize feedforward net with 'midpoint'?

1 view (last 30 days)
Hello! I am testing different topologies of the multilayer perceptron in order to get the best one and I would like to avoid randomness in intial conditions in this case: therefore I would like to have all the networks the similar if not the same initial conditions.
However, as I have learnt feedforwardnet has built in Nguyen-Widrow initialization algorithm which delivers each time different result. I also found out that it is possible to set manually the initialization algorithm I want (for example 'midpoint'), however, I am having difficulties to do it for the network, where I change the topology and consequently number of links, weights and biases.
Maybe there is a way to change existing initialization algorithm to another one for the whole network at once?
Thank you in advance! with best regards, Alexandra

Accepted Answer

Greg Heath
Greg Heath on 7 Oct 2015
Edited: Greg Heath on 7 Oct 2015
1. It doesn't matter how MATLAB initializes your net. You can always override the initialization using
help setwb
doc setwb
type setwb
2. Initializations are not random. They are pseudo-random. That means if you save the state of the rng, the initialization can be duplicated.
3. What different topologies are you considering? You do know that a single hidden layer MLP is a universal approximator? The only reason to use two or more hidden layers is to reduce the total number of unknown weights and thresholds. For a given training set size, the design is more stable and better able to generalize to nontraining data the fewer the number of unknown weights.
Hope this helps.
Thank you for formally accepting my answer
Greg
PS: Are you familiar with my double loop designs over number of hidden nodes (outer loop : Search h= Hmin:dH:Hmax) and pseudo-random weight initializations (inner loop: Search i = 1:Ntrials )?

More Answers (0)

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!