class Mirlo::HiddenLayer
Attributes
errors[RW]
next_layer[RW]
Public Instance Methods
calculate_errors()
click to toggle source
# File lib/mirlo/ann/hidden_layer.rb, line 4 def calculate_errors error_signal = next_layer.errors * next_layer.weights.transpose @errors = @activations.apply_elementwise error_signal do |activation, delta| activation * (1.0 - activation) * delta end end