Difference between revisions of "Descramble.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Update function See also links and function index membership)
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
     P=descramble(S,n_iter,guess)
 
     P=descramble(S,n_iter,guess)
  
−
==Arguments==
+
==Parameters==
  
 
     S      - a matrix containing, in its columns, the outputs
 
     S      - a matrix containing, in its columns, the outputs
Line 27: Line 27:
 
   
 
   
 
               matrix P descrambles the output dimension of the
 
               matrix P descrambles the output dimension of the
−
               left-most W. In the case when the network is wire
+
               left-most W. In the case when the network is wire-
 
               tapped after the activation function, i.e.
 
               tapped after the activation function, i.e.
 
   
 
   
Line 36: Line 36:
  
 
==See also==
 
==See also==
−
[[Neural network module]]
+
[[left_diag.m]], [[Neural network module]], [[Built-in_experiments]]
−
 
 
−
[[Built-in_experiments#DEER.2FPELDOR_experiments|DEER/PELDOR experiments]]
 
−
 
 
  
 
''Version 2.8, authors: [[Jake Amey]], [[Ilya Kuprov]], [[Tajwar Choudhury]]''
 
''Version 2.8, authors: [[Jake Amey]], [[Ilya Kuprov]], [[Tajwar Choudhury]]''

Latest revision as of 18:35, 6 June 2026

Generates a weight matrix descrambler for a particular layer in a neural network using Tikhonov smoothness criterion. The particulars are described in https://www.pnas.org/doi/10.1073/pnas.2016917118

Syntax

    P=descramble(S,n_iter,guess)

Parameters

   S       - a matrix containing, in its columns, the outputs
             of the preceding layers of the neural network for
             a (preferably large) number of reasonable inputs

   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       - descrambling matrix. In the case when the network 
             is wiretapped before the activation function, i.e.

                            S = Wf(W...f(Wf(WX)))

             matrix P descrambles the output dimension of the
             left-most W. In the case when the network is wire-
             tapped after the activation function, i.e.

                           S = f(Wf(W...f(Wf(WX))))

             matrix inv(P) descrambles the input dimension of
             the weight matrix of the subsequent layer.

See also

left_diag.m, Neural network module, Built-in_experiments

Version 2.8, authors: Jake Amey, Ilya Kuprov, Tajwar Choudhury