ruby-fann icon indicating copy to clipboard operation
ruby-fann copied to clipboard

fails on macos

Open djsmentya opened this issue 10 years ago • 2 comments

i want to train network to sum two numbers but i have an error with this code

data = [] 
100.times { data << [rand.round(2), rand.round(2)]}
train = RubyFann::TrainData.new(:inputs=> data, :desired_outputs=> data.map{|e| e.inject(:+)})

error output:

https://gist.github.com/anonymous/c8ca1b846ed68269bdf2

djsmentya avatar May 16 '15 18:05 djsmentya

both input and outputs need to be normalized to between -1 and 1

inspire22 avatar Jun 28 '15 07:06 inspire22

@inspire22 thanks

djsmentya avatar Jun 29 '15 14:06 djsmentya