ruby-fann 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -12,3 +12,8 @@
12
12
 
13
13
  * 1 minor enhancement
14
14
  * Directives to build native extensions
15
+
16
+ == 0.7.4 2007-12-19
17
+
18
+ * 1 minor enhancement
19
+ * Nicer message if FANN not installed
@@ -43,7 +43,7 @@ LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
43
43
  RUBY_EXTCONF_H =
44
44
  CFLAGS = -fno-common -g -O2 -fno-common -pipe -fno-common
45
45
  INCFLAGS = -I. -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.11.1 -I.
46
- CPPFLAGS =
46
+ CPPFLAGS = -I/usr/funk/include
47
47
  CXXFLAGS = $(CFLAGS)
48
48
  DLDFLAGS = -L.
49
49
  LDSHARED = cc -dynamic -bundle -undefined suppress -flat_namespace
@@ -68,8 +68,8 @@ COPY = cp
68
68
 
69
69
  preload =
70
70
 
71
- libpath = . $(libdir)
72
- LIBPATH = -L"." -L"$(libdir)"
71
+ libpath = . $(libdir) /usr/funk/lib
72
+ LIBPATH = -L"." -L"$(libdir)" -L"/usr/funk/lib"
73
73
  DEFFILE =
74
74
 
75
75
  CLEANFILES = mkmf.log
@@ -1,5 +1,8 @@
1
1
  require 'mkmf'
2
- dir_config("ruby_fann")
3
- find_library("doublefann", "fann_create_standard", "/usr/local/lib")
4
- #create_makefile("ruby-fann")
2
+ lib = dir_config('fann', '/usr/local')
3
+ if !have_library("doublefann", "fann_create_standard")
4
+ puts "FANN must be installed and available in /usr/local or passed in with --with-fann-dir "
5
+ exit 1
6
+ end
7
+ #find_library("doublefann", "fann_create_standard", "/usr/local/lib")
5
8
  create_makefile("neural_network")
@@ -2,7 +2,7 @@ module RubyFann #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 7
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -73,7 +73,7 @@ class RubyFannFunctionalTest < Test::Unit::TestCase
73
73
  private
74
74
  def verify_training_data(nn, training, input_data, output_data, expected_error=0.002)
75
75
  mse = nn.test_data(training)
76
- puts("Tested network. %f\n", mse)
76
+ puts("Tested network. %f\n" % mse)
77
77
 
78
78
  calc_out = []
79
79
  0.upto(input_data.length-1) do |i|
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>ruby-fann</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/ruby-fann"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/ruby-fann" class="numbers">0.7.2</a>
36
+ <a href="http://rubyforge.org/projects/ruby-fann" class="numbers">0.7.3</a>
37
37
  </div>
38
38
  <p><em>Bindings to use <a href="http://leenissen.dk/fann/"><span class="caps">FANN</span></a> (Fast Artificial Neural Network) from within ruby/rails environment.</em></p>
39
39
 
data/xor_cascade.net CHANGED
@@ -1,5 +1,5 @@
1
1
  FANN_FLO_2.1
2
- num_layers=4
2
+ num_layers=3
3
3
  learning_rate=0.700000
4
4
  connection_rate=1.000000
5
5
  network_type=1
@@ -28,7 +28,7 @@ cascade_activation_functions_count=10
28
28
  cascade_activation_functions=3 5 7 8 10 11 14 15 16 17
29
29
  cascade_activation_steepnesses_count=4
30
30
  cascade_activation_steepnesses=2.50000000000000000000e-01 5.00000000000000000000e-01 7.50000000000000000000e-01 1.00000000000000000000e+00
31
- layer_sizes=3 1 1 1
31
+ layer_sizes=3 1 1
32
32
  scale_included=0
33
- neurons (num_inputs, activation_function, activation_steepness)=(0, 0, 0.00000000000000000000e+00) (0, 0, 0.00000000000000000000e+00) (0, 0, 0.00000000000000000000e+00) (3, 14, 7.50000000000000000000e-01) (4, 7, 1.00000000000000000000e+00) (5, 5, 5.00000000000000000000e-01)
34
- connections (connected_to_neuron, weight)=(0, 1.69368225817805306832e+00) (1, 2.08920519418653682919e+00) (2, 2.08209278669541841822e+00) (0, 3.34013988327298427805e+00) (1, 2.93217698586362640611e+00) (2, 3.22640486156344952207e+00) (3, 3.11359130974472542164e+00) (0, 3.15916855833715426449e-01) (1, 2.36476269687895951366e-01) (2, -2.40909157788608524475e-01) (3, 4.02651493128943016586e+01) (4, -2.06887458728570478028e-01)
33
+ neurons (num_inputs, activation_function, activation_steepness)=(0, 0, 0.00000000000000000000e+00) (0, 0, 0.00000000000000000000e+00) (0, 0, 0.00000000000000000000e+00) (3, 15, 7.50000000000000000000e-01) (4, 5, 5.00000000000000000000e-01)
34
+ connections (connected_to_neuron, weight)=(0, 2.11189032829451006634e+00) (1, 1.38897825390983808980e+00) (2, 1.15236450682683587432e-02) (0, 2.72835175674095875564e-01) (1, 1.20351296053197442948e-01) (2, 3.97426992279901469818e-01) (3, 5.69930004183144021113e+01)
data/xor_float.net CHANGED
@@ -31,4 +31,4 @@ cascade_activation_steepnesses=2.50000000000000000000e-01 5.00000000000000000000
31
31
  layer_sizes=3 4 2
32
32
  scale_included=0
33
33
  neurons (num_inputs, activation_function, activation_steepness)=(0, 0, 0.00000000000000000000e+00) (0, 0, 0.00000000000000000000e+00) (0, 0, 0.00000000000000000000e+00) (3, 5, 1.00000000000000000000e+00) (3, 5, 1.00000000000000000000e+00) (3, 5, 1.00000000000000000000e+00) (0, 5, 1.00000000000000000000e+00) (4, 5, 1.00000000000000000000e+00) (0, 5, 1.00000000000000000000e+00)
34
- connections (connected_to_neuron, weight)=(0, 1.77563726355814255342e+00) (1, 1.70865512093591309650e+00) (2, -1.35620772409434886541e+00) (0, 2.54763445407383049002e+00) (1, 2.38503950578006485017e+00) (2, 1.82714622361575518283e+00) (0, 2.23745614983482665750e+00) (1, 2.06383714945245611005e+00) (2, -2.08187721657654112306e+00) (3, -2.44900226502112489113e-01) (4, 4.89073018141245707824e+00) (5, -4.73615236757579260995e+00) (6, -4.61604992747759812488e+00)
34
+ connections (connected_to_neuron, weight)=(0, -3.16705915187245290454e+00) (1, -4.14808474757160297486e+02) (2, -1.49899501759802666889e+00) (0, -1.37559342196213130194e+00) (1, 9.92224239227251642026e-02) (2, -1.38055639686059938853e+00) (0, 1.78027947081140469621e+00) (1, 9.49321928628780314918e-02) (2, 1.77664309963691202654e+00) (3, 3.99985246158351248624e+00) (4, 3.92276033365987188972e+01) (5, 3.86637639535680861513e+01) (6, 3.20449395370871137345e-01)
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: ruby-fann
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.7.3
6
+ version: 0.7.4
7
7
  date: 2007-12-19 00:00:00 -06:00
8
8
  summary: Bindings to use FANN from within ruby/rails environment.
9
9
  require_paths: