Closed ASnow closed 7 months ago
I get this segmentation fault too - but when I run the example in this one I don't, so not sure what could be causing it. https://github.com/bigohstudios/tictactoe
Did you ever get it working? Or with another project?
Aah, all your inputs and outputs need to be normalized to 0..1 FYI, which may be part of your problem. I'm doing that though and still getting a segfault...
I think solutions for this kind of bugs is put results in array
results = raw_input[1..-1].map{ |r| r[1] } # error
results = raw_input[1..-1].map{ |r| [r[1]] } # no error
I dont test this for logic proof but segfault dont apeared.
Right, thanks. However I still don't get any meaningful results, have you had any luck with that? It always returns the same result to fann.run([1,2,3,4]) no matter the input.
This code cause [BUG] Segmentation fault
ruby-2.0.0-p481