left_diag.m

From Spinach Documentation Wiki
Revision as of 14:47, 13 September 2020 by Kuprov (talk | contribs) (Created page with "{{DISPLAYTITLE:left_diag.m}} __NOTOC__ Generates a weight matrix descrambler for a particular layer in a neural network using maximum diagonality criterion described in (https...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Generates a weight matrix descrambler for a particular layer in a neural network using maximum diagonality criterion described in (https://arxiv.org/abs/1912.01498).

Syntax

    P=left_diag(W,method,n_iter,guess)

Arguments

   W       - layer weight matrix, must be square

   method  - 'max_diag_sum' finds a transformation that creates
             P*W with maximum diagonal sum; 'max_diag_normsq'
             finds a transformation that creates P*W with maxi-
             mum diagonal norm square.

   n_iter  - maximum number of Newton-Raphson interations, 400
             is generally sufficient

   guess   - [optional] the initial guess for the descrambling
             transform generator (lower triangle is used), a
             reasonable choice is a zero matrix (default)

Outputs

   P       - the matrix accomplishing the transformation when
             it is multiplied into W from the left.

See also

Neural_network_module


Version 2.5, authors: Ilya Kuprov