know what's wrong?

7 views
Skip to first unread message

www...@gmail.com

unread,
Mar 10, 2008, 11:15:17 AM3/10/08
to ruby_fann
I installed FANN without any special settings in ./configure,
installed ruby-fann, tried to enter IRB to try your test code... I get
what I think is ruby error @ end... Any help you can provide in
troubleshooting?

<pre>
~/Desktop | irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'ruby_fann/neural_network'
Initialized Ruby Bindings for FANN.
=> true
irb(main):003:0> training_data = RubyFann::TrainData.new(
irb(main):004:1* :inputs=>[[0.3, 0.4, 0.5], [0.1, 0.2, 0.3]],
irb(main):005:1* :desired_outputs=>[[0.7], [0.8]])
=> #<RubyFann::TrainData:0x15e2eb8>
irb(main):006:0> fann = RubyFann::Standard.new(
irb(main):007:1* :num_inputs=>3,
irb(main):008:1* :hidden_neurons=>[2, 8, 4, 3, 4],
irb(main):009:1* :num_outputs=>1)
Setting layer [1] to [2]
Setting layer [2] to [8]
Setting layer [3] to [4]
Setting layer [4] to [3]
Setting layer [5] to [4]
Created RubyFann::Standard [18068208].
=> #<RubyFann::Standard:0x15dac04>
irb(main):010:0> fann.train_on_data(training_data, 1000, 1, 0.1)
Max epochs 1000. Desired error: 0.1000000015.
Epochs 1. Current error: 0.0584624931. Bit fail 0.
/usr/local/lib/ruby/1.8/irb.rb:298: [BUG] Bus Error
ruby 1.8.6 (2007-03-13) [i686-darwin8.10.1]
Abort trap
</pre>

www...@gmail.com

unread,
Mar 10, 2008, 11:20:22 AM3/10/08
to ruby_fann
Looks like it's an IRB-specific error, as I got sample code to run if
i just pasted everything into a .rb file

steven...@gmail.com

unread,
Mar 10, 2008, 12:46:49 PM3/10/08
to ruby_fann
Yes, I got the same results. I will look into the IRB problem and
post findings here.

-Steven
Reply all
Reply to author
Forward
0 new messages