ruby-fann 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/ext/ruby_fann/Makefile +3 -3
- data/ext/ruby_fann/extconf.rb +6 -3
- data/lib/ruby_fann/version.rb +1 -1
- data/test/test_ruby_fann_functional.rb +1 -1
- data/website/index.html +1 -1
- data/xor_cascade.net +4 -4
- data/xor_float.net +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/ext/ruby_fann/Makefile
CHANGED
@@ -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
|
data/ext/ruby_fann/extconf.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
require 'mkmf'
|
2
|
-
dir_config(
|
3
|
-
|
4
|
-
|
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")
|
data/lib/ruby_fann/version.rb
CHANGED
@@ -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"
|
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.
|
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=
|
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
|
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,
|
34
|
-
connections (connected_to_neuron, weight)=(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, 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,
|
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