Package dimer :: Package nnet :: Module nccn :: Class HiddenLayer
[hide private]
[frames] | no frames]

Class HiddenLayer

source code

object --+        
         |        
     Layer --+    
             |    
    SpeedLayer --+
                 |
                HiddenLayer

Hidden layer of a feed-forward net

Nested Classes [hide private]

Inherited from Layer: __metaclass__

Instance Methods [hide private]
 
__init__(self, X, n_in, n_out, rng, dtype)
initialize by the given weight properties, all params are lists of the same length
source code
 
activation(self)
softmax activation.
source code
 
__str__(self)
str(x)
source code

Inherited from SpeedLayer: get_params, get_speeds, set_params, set_speeds, speed_update, weight_update

Inherited from Layer: get_flat_weights, get_weights, load_flat_weights, set_weights, weight_norm

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from SpeedLayer (private): _speed_update_f, _weight_update_f

Class Variables [hide private]
  __abstractmethods__ = frozenset([])
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, X, n_in, n_out, rng, dtype)
(Constructor)

source code 

initialize by the given weight properties, all params are lists of the same length

Parameters:
  • wshape_lst - shapes of weights
  • wnames - names of weights
  • fanin_lst - fan in of weights
  • rng - a random number generator or init value (see alloc_shared_weights_)
  • wdtype - data type of weights.
Overrides: object.__init__
(inherited documentation)

activation(self)

source code 

softmax activation. XW + b (X is a row)

Overrides: Layer.activation

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)