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