tangledpath / ruby-fann

Ruby library for interfacing with FANN (Fast Artificial Neural Network)
https://github.com/tangledpath/ruby-fann
MIT License
496 stars 42 forks source link

init_weights #31

Closed dpblnt closed 1 year ago

dpblnt commented 1 year ago

Without initializing the weights the net produces results. After initializing it like this:

@net.init_weights( RubyFann::TrainData.new(
        inputs: [Array.new( @input_size){0.1}],
        desired_outputs: [Array.new( @input_size){0.1}]
    ))

the result fom @net.run is [NaN, NaN, NaN] Tried different values for initialization. Any ideas?

dpblnt commented 1 year ago

if i call init_weights with my first set of real data then it's fine