Method: Neuronet::ScaledNetwork#set
- Defined in:
- lib/neuronet/scaled_network.rb
#set(input) ⇒ Object
ScaledNetwork set works just like FeedForwardNetwork’s set method, but calls @distribution.set(values) first if @reset is true. Sometimes you’ll want to set the distribution with the entire data set, and then there will be times you’ll want to reset the distribution with each input.
24 25 26 27 |
# File 'lib/neuronet/scaled_network.rb', line 24 def set(input) @distribution.reset(input) if @reset super(@distribution.mapped_input(input)) end |