Class: Sabina::Layer::AEHiddenLayer
- Defined in:
- lib/sabina/layer/ae_hidden_layer.rb
Instance Attribute Summary
Attributes inherited from BaseLayer
Instance Method Summary collapse
-
#initialize(size) ⇒ AEHiddenLayer
constructor
A new instance of AEHiddenLayer.
Methods inherited from BaseLayer
#activate, #activate_, #init_weight
Constructor Details
#initialize(size) ⇒ AEHiddenLayer
Returns a new instance of AEHiddenLayer.
4 5 6 7 8 |
# File 'lib/sabina/layer/ae_hidden_layer.rb', line 4 def initialize(size) super @f = ->(x){ x } @f_ = ->(_){ 1.0 } end |