Products & Services Industries Academia Support User Community Company


initlay

Purpose

Layer-by-layer network initialization function

Syntax

Description

initlay is a network initialization function that initializes each layer i according to its own initialization function net.layers{i}.initFcn.

initlay(net) takes

net
Neural network

and returns the network with each layer updated. initlay(code) returns useful information for each code string:

'pnames'
Names of initialization parameters
'pdefaults'
Default initialization parameters

initlay does not have any initialization parameters.

Network Use

You can create a standard network that uses initlay by calling newp, newlin, newff, newcf, and many other new network functions.

To prepare a custom network to be initialized with initlay,

  1. Set net.initFcn to 'initlay'. This sets net.initParam to the empty matrix [], because initlay has no initialization parameters.
  2. Set each net.layers{i}.initFcn to a layer initialization function. (Examples of such functions are initwb and initnw.)

To initialize the network, call init. See newp and newlin for initialization examples.

Algorithm

The weights and biases of each layer i are initialized according to net.layers{i}.initFcn.

See Also

initwb, initnw, init


 Provide feedback about this page 

Previous page initcon initnw 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