Sha256: 4a40612edf36adb910dff90f82078515c2eeb669fa85dcd8ed08d3346bfafa15
Contents?: true
Size: 469 Bytes
Versions: 3
Compression:
Stored size: 469 Bytes
Contents
module Brainz module Algorithms module Backpropagation def update(input) initialize_network unless @network @network.update(input) self end def fix_weights(targets) @network.fix_weights(targets) end def initialize_network @network ||= ::Brainz::Network.new( num_input, num_hidden, num_output, momentum: momentum, learning_rate: learning_rate ) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
brainz-0.2.0 | lib/brainz/algorithms/backpropagation.rb |
brainz-0.1.3 | lib/brainz/algorithms/backpropagation.rb |
brainz-0.1.2 | lib/brainz/backpropagation.rb |