Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails on macos #13

Closed
djsmentya opened this issue May 16, 2015 · 2 comments
Closed

fails on macos #13

djsmentya opened this issue May 16, 2015 · 2 comments

Comments

@djsmentya
Copy link

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

@inspire22
Copy link

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

@djsmentya
Copy link
Author

@inspire22 thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants