Skip to content

Instantly share code, notes, and snippets.

View olavolav's full-sized avatar

Olav Stetter olavolav

View GitHub Profile
@olavolav
olavolav / ruby-fann error
Created May 7, 2014 11:37
Ruby-FANN (via IRB) crashes using Rubinius 2.2.6
rbx-2.2.6 :001 > require 'ruby-fann'
=> true
rbx-2.2.6 :002 > train = RubyFann::TrainData.new(:inputs=>[[0.3, 0.4, 0.5], [0.1, 0.2, 0.3]], :desired_outputs=>[[0.7], [0.8]])
Invalid handle usage detected!
handle: 0x7f86ca9ef220
checksum: 0x0
references: ffffffff
type: ffffffff
object: 0xc000000000000000