Products & Services Industries Academia Support User Community Company


initwb

Purpose

By weight and bias layer initialization function

Syntax

Description

initwb is a layer initialization function that initializes a layer's weights and biases according to their own initialization functions.

initwb(net,i) takes two arguments,

net
Neural network
i
Index of a layer

and returns the network with layer i's weights and biases updated.

Network Use

You can create a standard network that uses initwb by calling newp or newlin.

To prepare a custom network to be initialized with initwb,

  1. Set net.initFcn to 'initlay'. This sets net.initParam to the empty matrix [], because initlay has no initialization parameters.
  2. Set net.layers{i}.initFcn to 'initwb'.
  3. Set each net.inputWeights{i,j}.initFcn to a weight initialization function. Set each net.layerWeights{i,j}.initFcn to a weight initialization function. Set each net.biases{i}.initFcn to a bias initialization function. (Examples of such functions are rands and midpoint.)

To initialize the network, call init.

See newp and newlin for training examples.

Algorithm

Each weight (bias) in layer i is set to new values calculated according to its weight (bias) initialization function.

See Also

initnw, initlay, init


 Provide feedback about this page 

Previous page initsompc initzero Next page

Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS