Class: Sabina::Layer::AEHiddenLayer

Inherits:
BaseLayer
  • Object
show all
Defined in:
lib/sabina/layer/ae_hidden_layer.rb

Instance Attribute Summary

Attributes inherited from BaseLayer

#I, #J, #W, #b, #size

Instance Method Summary collapse

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