fails on macos
djsmentya opened this issue · comments
Eugene Smentyna commented
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:
Kevin Watt commented
both input and outputs need to be normalized to between -1 and 1
Eugene Smentyna commented
@inspire22 thanks