rubyneat 0.3.5.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.directory +4 -0
- data/.gitignore.orig +20 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/dictionaries/trader.xml +3 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/misc.xml +5 -0
- data/.idea/modules.xml +9 -0
- data/.idea/rubyneat.iml +197 -0
- data/.idea/runConfigurations/invpend_neat.xml +26 -0
- data/.idea/runConfigurations/sigdebug_neat.xml +24 -0
- data/.idea/runConfigurations/xor_neat.xml +26 -0
- data/.idea/runConfigurations/xordebug_neat.xml +24 -0
- data/.idea/runConfigurations/xorsin_neat.xml +24 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +7 -0
- data/.idea/workspace.xml +1124 -0
- data/.semver +5 -0
- data/.yardoc/checksums +11 -0
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/Gemfile +32 -0
- data/Gemfile.lock +135 -0
- data/Gemfile.lock.orig +147 -0
- data/Guardfile +8 -0
- data/Rakefile +61 -0
- data/bin/neat +83 -0
- data/config/application.rb +5 -0
- data/doc/ControllerPoint.html +125 -0
- data/doc/CuteA.html +286 -0
- data/doc/CuteB.html +297 -0
- data/doc/DSL.html +883 -0
- data/doc/NEAT/BasicNeuronTypes/BiasNeuron.html +518 -0
- data/doc/NEAT/BasicNeuronTypes/CosineNeuron.html +274 -0
- data/doc/NEAT/BasicNeuronTypes/InputNeuron.html +366 -0
- data/doc/NEAT/BasicNeuronTypes/SigmoidNeuron.html +275 -0
- data/doc/NEAT/BasicNeuronTypes/SineNeuron.html +274 -0
- data/doc/NEAT/BasicNeuronTypes/TanhNeuron.html +274 -0
- data/doc/NEAT/BasicNeuronTypes.html +136 -0
- data/doc/NEAT/Controller/NeatSettings.html +3985 -0
- data/doc/NEAT/Controller.html +2490 -0
- data/doc/NEAT/Critter/Genotype/Gene.html +979 -0
- data/doc/NEAT/Critter/Genotype.html +1601 -0
- data/doc/NEAT/Critter/Phenotype.html +603 -0
- data/doc/NEAT/Critter.html +1037 -0
- data/doc/NEAT/DSL.html +1255 -0
- data/doc/NEAT/Evaluator.html +420 -0
- data/doc/NEAT/Evolver/CritterOp.html +551 -0
- data/doc/NEAT/Evolver.html +602 -0
- data/doc/NEAT/Expressor.html +327 -0
- data/doc/NEAT/Graph/DependencyResolver.html +478 -0
- data/doc/NEAT/Graph/GraphException.html +123 -0
- data/doc/NEAT/Graph.html +402 -0
- data/doc/NEAT/NeatException.html +123 -0
- data/doc/NEAT/NeatOb.html +567 -0
- data/doc/NEAT/Neuron.html +1067 -0
- data/doc/NEAT/Operator.html +162 -0
- data/doc/NEAT/Population.html +1961 -0
- data/doc/NEAT/Trait.html +169 -0
- data/doc/NEAT.html +588 -0
- data/doc/_index.html +373 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file_list.html +53 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +373 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +1415 -0
- data/doc/top-level-namespace.html +164 -0
- data/foo/foo_aquarium_example.rb +38 -0
- data/foo/foo_gosu.rb +99 -0
- data/foo/foo_rubygoo.rb +104 -0
- data/foo/foo_sdl.rb +34 -0
- data/foo/icon.png +0 -0
- data/lib/rubyneat/critter.rb +374 -0
- data/lib/rubyneat/default_neat.rb +10 -0
- data/lib/rubyneat/dsl.rb +130 -0
- data/lib/rubyneat/evaluator.rb +51 -0
- data/lib/rubyneat/evolver.rb +315 -0
- data/lib/rubyneat/expressor.rb +110 -0
- data/lib/rubyneat/graph.rb +95 -0
- data/lib/rubyneat/neuron.rb +152 -0
- data/lib/rubyneat/population.rb +227 -0
- data/lib/rubyneat/rubyneat.rb +429 -0
- data/lib/rubyneat.rb +8 -0
- data/neater/invpend_neat.rb +150 -0
- data/neater/rnlib/inverted_pendulum.rb +380 -0
- data/neater/rnlib/xor.rb +10 -0
- data/neater/sigdebug_neat.rb +136 -0
- data/neater/xor_neat.rb +137 -0
- data/neater/xoranalog_neat.rb +138 -0
- data/neater/xorsin_neat.rb +143 -0
- data/projectFilesBackup/.idea/rubyneat.iml +180 -0
- data/public/.directory +4 -0
- data/public/background.png +0 -0
- data/public/background.xcf +0 -0
- data/public/cart.png +0 -0
- data/public/cart.xcf +0 -0
- data/public/metalpoles_molton_ball_l.jpg +0 -0
- data/public/old_background.png +0 -0
- data/public/pointer.png +0 -0
- data/public/pointer.xcf +0 -0
- data/public/pole.kra +0 -0
- data/public/pole.png +0 -0
- data/public/pole.xcf +0 -0
- data/public/wheel-of-year-stone-DD-131-WOYS.jpg +0 -0
- data/public/wheel.png +0 -0
- data/public/wheel.xcf +0 -0
- data/public/wood-planks-texture.jpg +0 -0
- data/rdoc/ControllerPoint.html +116 -0
- data/rdoc/CuteA.html +177 -0
- data/rdoc/CuteB.html +178 -0
- data/rdoc/DSLSetup.html +177 -0
- data/rdoc/GameTestWindow.html +242 -0
- data/rdoc/GameWindow.html +292 -0
- data/rdoc/Gemfile.html +215 -0
- data/rdoc/Gemfile_lock.html +327 -0
- data/rdoc/GraphTest.html +210 -0
- data/rdoc/Guardfile.html +198 -0
- data/rdoc/InvertedPendulum/Cart.html +668 -0
- data/rdoc/InvertedPendulum/DSL.html +259 -0
- data/rdoc/InvertedPendulum/InvPendWindow.html +402 -0
- data/rdoc/InvertedPendulum.html +198 -0
- data/rdoc/Logger.html +98 -0
- data/rdoc/NEAT/BasicNeuronTypes/BiasNeuron.html +265 -0
- data/rdoc/NEAT/BasicNeuronTypes/CosineNeuron.html +162 -0
- data/rdoc/NEAT/BasicNeuronTypes/InputNeuron.html +206 -0
- data/rdoc/NEAT/BasicNeuronTypes/SigmoidNeuron.html +162 -0
- data/rdoc/NEAT/BasicNeuronTypes/SineNeuron.html +162 -0
- data/rdoc/NEAT/BasicNeuronTypes/TanhNeuron.html +161 -0
- data/rdoc/NEAT/BasicNeuronTypes.html +107 -0
- data/rdoc/NEAT/Controller/NeatSettings.html +880 -0
- data/rdoc/NEAT/Controller.html +729 -0
- data/rdoc/NEAT/Critter/Genotype/Gene.html +457 -0
- data/rdoc/NEAT/Critter/Genotype.html +735 -0
- data/rdoc/NEAT/Critter/Phenotype.html +330 -0
- data/rdoc/NEAT/Critter.html +489 -0
- data/rdoc/NEAT/DSL.html +729 -0
- data/rdoc/NEAT/Evaluator.html +256 -0
- data/rdoc/NEAT/Evolver/CritterOp.html +349 -0
- data/rdoc/NEAT/Evolver.html +891 -0
- data/rdoc/NEAT/Expressor.html +402 -0
- data/rdoc/NEAT/Graph/DependencyResolver.html +291 -0
- data/rdoc/NEAT/Graph/GraphException.html +105 -0
- data/rdoc/NEAT/Graph.html +263 -0
- data/rdoc/NEAT/NeatException.html +105 -0
- data/rdoc/NEAT/NeatOb.html +325 -0
- data/rdoc/NEAT/Neuron.html +481 -0
- data/rdoc/NEAT/Operator.html +109 -0
- data/rdoc/NEAT/Population.html +935 -0
- data/rdoc/NEAT/Trait.html +117 -0
- data/rdoc/NEAT.html +422 -0
- data/rdoc/Object.html +384 -0
- data/rdoc/Phi.html +98 -0
- data/rdoc/Player.html +383 -0
- data/rdoc/Rakefile.html +254 -0
- data/rdoc/RubyNEAT/Application.html +105 -0
- data/rdoc/RubyNEAT.html +98 -0
- data/rdoc/SDL/Event2.html +98 -0
- data/rdoc/SDL.html +98 -0
- data/rdoc/Vector.html +195 -0
- data/rdoc/created.rid +125 -0
- data/rdoc/doc/ControllerPoint_html.html +299 -0
- data/rdoc/doc/CuteA_html.html +438 -0
- data/rdoc/doc/CuteB_html.html +436 -0
- data/rdoc/doc/DSL_html.html +992 -0
- data/rdoc/doc/NEAT/BasicNeuronTypes/BiasNeuron_html.html +617 -0
- data/rdoc/doc/NEAT/BasicNeuronTypes/CosineNeuron_html.html +413 -0
- data/rdoc/doc/NEAT/BasicNeuronTypes/InputNeuron_html.html +498 -0
- data/rdoc/doc/NEAT/BasicNeuronTypes/SigmoidNeuron_html.html +413 -0
- data/rdoc/doc/NEAT/BasicNeuronTypes/SineNeuron_html.html +413 -0
- data/rdoc/doc/NEAT/BasicNeuronTypes/TanhNeuron_html.html +412 -0
- data/rdoc/doc/NEAT/BasicNeuronTypes_html.html +310 -0
- data/rdoc/doc/NEAT/Controller/NeatSettings_html.html +3324 -0
- data/rdoc/doc/NEAT/Controller_html.html +2212 -0
- data/rdoc/doc/NEAT/Critter/Genotype/Gene_html.html +997 -0
- data/rdoc/doc/NEAT/Critter/Genotype_html.html +1556 -0
- data/rdoc/doc/NEAT/Critter/Phenotype_html.html +687 -0
- data/rdoc/doc/NEAT/Critter_html.html +1037 -0
- data/rdoc/doc/NEAT/DSL_html.html +1349 -0
- data/rdoc/doc/NEAT/Evaluator_html.html +556 -0
- data/rdoc/doc/NEAT/Evolver/CritterOp_html.html +690 -0
- data/rdoc/doc/NEAT/Evolver_html.html +677 -0
- data/rdoc/doc/NEAT/Expressor_html.html +468 -0
- data/rdoc/doc/NEAT/Graph/DependencyResolver_html.html +598 -0
- data/rdoc/doc/NEAT/Graph/GraphException_html.html +299 -0
- data/rdoc/doc/NEAT/Graph_html.html +527 -0
- data/rdoc/doc/NEAT/NeatException_html.html +299 -0
- data/rdoc/doc/NEAT/NeatOb_html.html +671 -0
- data/rdoc/doc/NEAT/Neuron_html.html +1095 -0
- data/rdoc/doc/NEAT/Operator_html.html +337 -0
- data/rdoc/doc/NEAT/Population_html.html +1795 -0
- data/rdoc/doc/NEAT/Trait_html.html +344 -0
- data/rdoc/doc/NEAT_html.html +736 -0
- data/rdoc/doc/_index_html.html +559 -0
- data/rdoc/doc/class_list_html.html +369 -0
- data/rdoc/doc/css/common_css.html +188 -0
- data/rdoc/doc/css/full_list_css.html +243 -0
- data/rdoc/doc/css/style_css.html +530 -0
- data/rdoc/doc/file_list_html.html +240 -0
- data/rdoc/doc/frames_html.html +217 -0
- data/rdoc/doc/index_html.html +559 -0
- data/rdoc/doc/js/app_js.html +423 -0
- data/rdoc/doc/js/full_list_js.html +372 -0
- data/rdoc/doc/js/jquery_js.html +1536 -0
- data/rdoc/doc/method_list_html.html +1375 -0
- data/rdoc/doc/top-level-namespace_html.html +317 -0
- data/rdoc/fonts/Lato-Light.ttf +0 -0
- data/rdoc/fonts/Lato-LightItalic.ttf +0 -0
- data/rdoc/fonts/Lato-Regular.ttf +0 -0
- data/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/rdoc/fonts.css +167 -0
- data/rdoc/images/add.png +0 -0
- data/rdoc/images/arrow_up.png +0 -0
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/delete.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_blue.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/transparent.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +282 -0
- data/rdoc/js/darkfish.js +140 -0
- data/rdoc/js/jquery.js +18 -0
- data/rdoc/js/navigation.js +142 -0
- data/rdoc/js/search.js +109 -0
- data/rdoc/js/search_index.js +1 -0
- data/rdoc/js/searcher.js +228 -0
- data/rdoc/rdoc.css +580 -0
- data/rdoc/rubyneat_gemspec.html +387 -0
- data/rdoc/table_of_contents.html +2502 -0
- data/rdoc/xordebug_log.html +170598 -0
- data/rdoc/xorsin_log.html +22569 -0
- data/rubyneat.gemspec +347 -0
- data/rubyneat.gemspec.orig +375 -0
- data/spec/lib/rubyneat/rubyneat_spec.rb +132 -0
- metadata +555 -0
data/.semver
ADDED
data/.yardoc/checksums
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
lib/rubyneat.rb 1da1fbcf4887eff825e525710f40a9c4a13814a4
|
2
|
+
lib/rubyneat/dsl.rb 537a8cb3bfed4911e3b2a25040131d0acbd6eb13
|
3
|
+
lib/rubyneat/graph.rb b1b6605698590438ade2bed11f76fbb46f1758a0
|
4
|
+
lib/rubyneat/neuron.rb bed0637d2b668d328bdbe5c65a8400e0b73bb65b
|
5
|
+
lib/rubyneat/critter.rb 6caffc41daa1c6f78e0abf46246a2f6e9eb04d39
|
6
|
+
lib/rubyneat/evolver.rb fc45db30b5915c03becf11dbd9a10fe64888f866
|
7
|
+
lib/rubyneat/rubyneat.rb e21b5035d4e8acdec8c1833c0ec57a1a01745830
|
8
|
+
lib/rubyneat/expressor.rb 3b729ffb27f7fd8c92cd897ec3c4ed882cedc3eb
|
9
|
+
lib/rubyneat/evaluator.rb f77384c83d266062790bffa6966ceb0e9e3da208
|
10
|
+
lib/rubyneat/population.rb b1fcede0e71da3192ae1584952413d3eb54ca4d2
|
11
|
+
lib/rubyneat/default_neat.rb df2d106cdf3bf6f6b707b4f2997bb326f23e5cd5
|
Binary file
|
Binary file
|
data/.yardoc/proxy_types
ADDED
Binary file
|
data/Gemfile
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
#gemspec
|
4
|
+
|
5
|
+
ruby '2.1.1'
|
6
|
+
|
7
|
+
gem 'mongo'
|
8
|
+
gem 'bson_ext'
|
9
|
+
gem 'distribution'
|
10
|
+
#gem 'gsl'
|
11
|
+
gem 'statistics2'
|
12
|
+
gem 'debase'
|
13
|
+
gem 'aquarium'
|
14
|
+
gem 'slop'
|
15
|
+
gem 'awesome_print'
|
16
|
+
gem 'deep_dive'
|
17
|
+
|
18
|
+
group :development do
|
19
|
+
gem 'rspec'
|
20
|
+
gem 'yard'
|
21
|
+
gem 'guard'
|
22
|
+
gem 'guard-rspec'
|
23
|
+
gem 'semver'
|
24
|
+
gem "jeweler", "~> 1.8.7"
|
25
|
+
gem "simplecov"
|
26
|
+
#gem 'debugger'
|
27
|
+
gem 'ruby-debug-ide'
|
28
|
+
end
|
29
|
+
|
30
|
+
# For demo purposes, we include the gosu library, but
|
31
|
+
# don't want this to be part of the mainstream.
|
32
|
+
gem 'gosu', require: false
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.6)
|
5
|
+
aquarium (0.5.1)
|
6
|
+
awesome_print (1.2.0)
|
7
|
+
bson (1.10.0)
|
8
|
+
bson_ext (1.10.0)
|
9
|
+
bson (~> 1.10.0)
|
10
|
+
builder (3.2.2)
|
11
|
+
celluloid (0.15.2)
|
12
|
+
timers (~> 1.1.0)
|
13
|
+
celluloid-io (0.15.0)
|
14
|
+
celluloid (>= 0.15.0)
|
15
|
+
nio4r (>= 0.5.0)
|
16
|
+
coderay (1.1.0)
|
17
|
+
debase (0.0.9)
|
18
|
+
debugger-ruby_core_source
|
19
|
+
debugger-ruby_core_source (1.3.2)
|
20
|
+
deep_dive (0.1.0)
|
21
|
+
debase
|
22
|
+
diff-lcs (1.2.5)
|
23
|
+
distribution (0.7.0)
|
24
|
+
docile (1.1.3)
|
25
|
+
faraday (0.8.9)
|
26
|
+
multipart-post (~> 1.2.0)
|
27
|
+
ffi (1.9.3)
|
28
|
+
formatador (0.2.4)
|
29
|
+
git (1.2.6)
|
30
|
+
github_api (0.10.1)
|
31
|
+
addressable
|
32
|
+
faraday (~> 0.8.1)
|
33
|
+
hashie (>= 1.2)
|
34
|
+
multi_json (~> 1.4)
|
35
|
+
nokogiri (~> 1.5.2)
|
36
|
+
oauth2
|
37
|
+
gosu (0.7.50)
|
38
|
+
guard (2.6.0)
|
39
|
+
formatador (>= 0.2.4)
|
40
|
+
listen (~> 2.7)
|
41
|
+
lumberjack (~> 1.0)
|
42
|
+
pry (>= 0.9.12)
|
43
|
+
thor (>= 0.18.1)
|
44
|
+
guard-rspec (4.2.8)
|
45
|
+
guard (~> 2.1)
|
46
|
+
rspec (>= 2.14, < 4.0)
|
47
|
+
hashie (2.1.1)
|
48
|
+
highline (1.6.21)
|
49
|
+
jeweler (1.8.8)
|
50
|
+
builder
|
51
|
+
bundler (~> 1.0)
|
52
|
+
git (>= 1.2.5)
|
53
|
+
github_api (= 0.10.1)
|
54
|
+
highline (>= 1.6.15)
|
55
|
+
nokogiri (= 1.5.10)
|
56
|
+
rake
|
57
|
+
rdoc
|
58
|
+
json (1.8.1)
|
59
|
+
jwt (0.1.11)
|
60
|
+
multi_json (>= 1.5)
|
61
|
+
listen (2.7.1)
|
62
|
+
celluloid (>= 0.15.2)
|
63
|
+
celluloid-io (>= 0.15.0)
|
64
|
+
rb-fsevent (>= 0.9.3)
|
65
|
+
rb-inotify (>= 0.9)
|
66
|
+
lumberjack (1.0.5)
|
67
|
+
method_source (0.8.2)
|
68
|
+
mongo (1.10.0)
|
69
|
+
bson (~> 1.10.0)
|
70
|
+
multi_json (1.9.2)
|
71
|
+
multi_xml (0.5.5)
|
72
|
+
multipart-post (1.2.0)
|
73
|
+
nio4r (1.0.0)
|
74
|
+
nokogiri (1.5.10)
|
75
|
+
oauth2 (0.9.3)
|
76
|
+
faraday (>= 0.8, < 0.10)
|
77
|
+
jwt (~> 0.1.8)
|
78
|
+
multi_json (~> 1.3)
|
79
|
+
multi_xml (~> 0.5)
|
80
|
+
rack (~> 1.2)
|
81
|
+
pry (0.9.12.6)
|
82
|
+
coderay (~> 1.0)
|
83
|
+
method_source (~> 0.8)
|
84
|
+
slop (~> 3.4)
|
85
|
+
rack (1.5.2)
|
86
|
+
rake (10.2.2)
|
87
|
+
rb-fsevent (0.9.4)
|
88
|
+
rb-inotify (0.9.3)
|
89
|
+
ffi (>= 0.5.0)
|
90
|
+
rdoc (4.1.1)
|
91
|
+
json (~> 1.4)
|
92
|
+
rspec (2.14.1)
|
93
|
+
rspec-core (~> 2.14.0)
|
94
|
+
rspec-expectations (~> 2.14.0)
|
95
|
+
rspec-mocks (~> 2.14.0)
|
96
|
+
rspec-core (2.14.8)
|
97
|
+
rspec-expectations (2.14.5)
|
98
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
99
|
+
rspec-mocks (2.14.6)
|
100
|
+
ruby-debug-ide (0.4.22)
|
101
|
+
rake (>= 0.8.1)
|
102
|
+
semver (1.0.1)
|
103
|
+
simplecov (0.8.2)
|
104
|
+
docile (~> 1.1.0)
|
105
|
+
multi_json
|
106
|
+
simplecov-html (~> 0.8.0)
|
107
|
+
simplecov-html (0.8.0)
|
108
|
+
slop (3.5.0)
|
109
|
+
statistics2 (0.54)
|
110
|
+
thor (0.19.1)
|
111
|
+
timers (1.1.0)
|
112
|
+
yard (0.8.7.4)
|
113
|
+
|
114
|
+
PLATFORMS
|
115
|
+
ruby
|
116
|
+
|
117
|
+
DEPENDENCIES
|
118
|
+
aquarium
|
119
|
+
awesome_print
|
120
|
+
bson_ext
|
121
|
+
debase
|
122
|
+
deep_dive
|
123
|
+
distribution
|
124
|
+
gosu
|
125
|
+
guard
|
126
|
+
guard-rspec
|
127
|
+
jeweler (~> 1.8.7)
|
128
|
+
mongo
|
129
|
+
rspec
|
130
|
+
ruby-debug-ide
|
131
|
+
semver
|
132
|
+
simplecov
|
133
|
+
slop
|
134
|
+
statistics2
|
135
|
+
yard
|
data/Gemfile.lock.orig
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.6)
|
5
|
+
aquarium (0.5.1)
|
6
|
+
awesome_print (1.2.0)
|
7
|
+
bson (1.10.0)
|
8
|
+
bson_ext (1.10.0)
|
9
|
+
bson (~> 1.10.0)
|
10
|
+
builder (3.2.2)
|
11
|
+
celluloid (0.15.2)
|
12
|
+
timers (~> 1.1.0)
|
13
|
+
celluloid-io (0.15.0)
|
14
|
+
celluloid (>= 0.15.0)
|
15
|
+
nio4r (>= 0.5.0)
|
16
|
+
coderay (1.1.0)
|
17
|
+
debase (0.0.9)
|
18
|
+
debugger-ruby_core_source
|
19
|
+
debugger-ruby_core_source (1.3.2)
|
20
|
+
deep_dive (0.1.0)
|
21
|
+
debase
|
22
|
+
diff-lcs (1.2.5)
|
23
|
+
distribution (0.7.0)
|
24
|
+
docile (1.1.3)
|
25
|
+
faraday (0.8.9)
|
26
|
+
multipart-post (~> 1.2.0)
|
27
|
+
ffi (1.9.3)
|
28
|
+
formatador (0.2.4)
|
29
|
+
git (1.2.6)
|
30
|
+
github_api (0.10.1)
|
31
|
+
addressable
|
32
|
+
faraday (~> 0.8.1)
|
33
|
+
hashie (>= 1.2)
|
34
|
+
multi_json (~> 1.4)
|
35
|
+
nokogiri (~> 1.5.2)
|
36
|
+
oauth2
|
37
|
+
gosu (0.7.50)
|
38
|
+
<<<<<<< HEAD
|
39
|
+
guard (2.4.0)
|
40
|
+
=======
|
41
|
+
guard (2.6.0)
|
42
|
+
>>>>>>> utility
|
43
|
+
formatador (>= 0.2.4)
|
44
|
+
listen (~> 2.7)
|
45
|
+
lumberjack (~> 1.0)
|
46
|
+
pry (>= 0.9.12)
|
47
|
+
thor (>= 0.18.1)
|
48
|
+
<<<<<<< HEAD
|
49
|
+
guard-rspec (4.2.6)
|
50
|
+
=======
|
51
|
+
guard-rspec (4.2.8)
|
52
|
+
>>>>>>> utility
|
53
|
+
guard (~> 2.1)
|
54
|
+
rspec (>= 2.14, < 4.0)
|
55
|
+
hashie (2.1.1)
|
56
|
+
highline (1.6.21)
|
57
|
+
jeweler (1.8.8)
|
58
|
+
builder
|
59
|
+
bundler (~> 1.0)
|
60
|
+
git (>= 1.2.5)
|
61
|
+
github_api (= 0.10.1)
|
62
|
+
highline (>= 1.6.15)
|
63
|
+
nokogiri (= 1.5.10)
|
64
|
+
rake
|
65
|
+
rdoc
|
66
|
+
json (1.8.1)
|
67
|
+
jwt (0.1.11)
|
68
|
+
multi_json (>= 1.5)
|
69
|
+
<<<<<<< HEAD
|
70
|
+
listen (2.5.0)
|
71
|
+
=======
|
72
|
+
listen (2.7.1)
|
73
|
+
>>>>>>> utility
|
74
|
+
celluloid (>= 0.15.2)
|
75
|
+
celluloid-io (>= 0.15.0)
|
76
|
+
rb-fsevent (>= 0.9.3)
|
77
|
+
rb-inotify (>= 0.9)
|
78
|
+
lumberjack (1.0.5)
|
79
|
+
method_source (0.8.2)
|
80
|
+
mongo (1.10.0)
|
81
|
+
bson (~> 1.10.0)
|
82
|
+
multi_json (1.9.2)
|
83
|
+
multi_xml (0.5.5)
|
84
|
+
multipart-post (1.2.0)
|
85
|
+
nio4r (1.0.0)
|
86
|
+
nokogiri (1.5.10)
|
87
|
+
oauth2 (0.9.3)
|
88
|
+
faraday (>= 0.8, < 0.10)
|
89
|
+
jwt (~> 0.1.8)
|
90
|
+
multi_json (~> 1.3)
|
91
|
+
multi_xml (~> 0.5)
|
92
|
+
rack (~> 1.2)
|
93
|
+
pry (0.9.12.6)
|
94
|
+
coderay (~> 1.0)
|
95
|
+
method_source (~> 0.8)
|
96
|
+
slop (~> 3.4)
|
97
|
+
rack (1.5.2)
|
98
|
+
rake (10.2.2)
|
99
|
+
rb-fsevent (0.9.4)
|
100
|
+
rb-inotify (0.9.3)
|
101
|
+
ffi (>= 0.5.0)
|
102
|
+
rdoc (4.1.1)
|
103
|
+
json (~> 1.4)
|
104
|
+
rspec (2.14.1)
|
105
|
+
rspec-core (~> 2.14.0)
|
106
|
+
rspec-expectations (~> 2.14.0)
|
107
|
+
rspec-mocks (~> 2.14.0)
|
108
|
+
rspec-core (2.14.8)
|
109
|
+
rspec-expectations (2.14.5)
|
110
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
111
|
+
rspec-mocks (2.14.6)
|
112
|
+
ruby-debug-ide (0.4.22)
|
113
|
+
rake (>= 0.8.1)
|
114
|
+
semver (1.0.1)
|
115
|
+
simplecov (0.8.2)
|
116
|
+
docile (~> 1.1.0)
|
117
|
+
multi_json
|
118
|
+
simplecov-html (~> 0.8.0)
|
119
|
+
simplecov-html (0.8.0)
|
120
|
+
slop (3.5.0)
|
121
|
+
statistics2 (0.54)
|
122
|
+
thor (0.19.1)
|
123
|
+
timers (1.1.0)
|
124
|
+
yard (0.8.7.4)
|
125
|
+
|
126
|
+
PLATFORMS
|
127
|
+
ruby
|
128
|
+
|
129
|
+
DEPENDENCIES
|
130
|
+
aquarium
|
131
|
+
awesome_print
|
132
|
+
bson_ext
|
133
|
+
debase
|
134
|
+
deep_dive
|
135
|
+
distribution
|
136
|
+
gosu
|
137
|
+
guard
|
138
|
+
guard-rspec
|
139
|
+
jeweler (~> 1.8.7)
|
140
|
+
mongo
|
141
|
+
rspec
|
142
|
+
ruby-debug-ide
|
143
|
+
semver
|
144
|
+
simplecov
|
145
|
+
slop
|
146
|
+
statistics2
|
147
|
+
yard
|
data/Guardfile
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
require 'semver'
|
6
|
+
|
7
|
+
def s_version
|
8
|
+
SemVer.find.format "%M.%m.%p%s"
|
9
|
+
end
|
10
|
+
|
11
|
+
begin
|
12
|
+
Bundler.setup(:default, :development)
|
13
|
+
rescue Bundler::BundlerError => e
|
14
|
+
$stderr.puts e.message
|
15
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
16
|
+
exit e.status_code
|
17
|
+
end
|
18
|
+
require 'rake'
|
19
|
+
|
20
|
+
require 'jeweler'
|
21
|
+
Jeweler::Tasks.new do |gem|
|
22
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
23
|
+
gem.name = "rubyneat"
|
24
|
+
gem.homepage = "http://rubyneat.com"
|
25
|
+
gem.license = "MIT"
|
26
|
+
gem.summary = %Q{RubyNEAT NeuralEvolution of Augmenting Topologies}
|
27
|
+
gem.version = s_version
|
28
|
+
gem.description = %Q{
|
29
|
+
NEAT Algorithm for Ruby.
|
30
|
+
}
|
31
|
+
gem.email = "fred@lrcsoft.com"
|
32
|
+
gem.authors = ["Fred Mitchell"]
|
33
|
+
# dependencies defined in Gemfile
|
34
|
+
|
35
|
+
# Exclude the Neural Docs directory
|
36
|
+
gem.files.exclude 'Neural_Docs/*'
|
37
|
+
end
|
38
|
+
Jeweler::RubygemsDotOrgTasks.new
|
39
|
+
|
40
|
+
require 'rspec/core'
|
41
|
+
require 'rspec/core/rake_task'
|
42
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
43
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
44
|
+
end
|
45
|
+
|
46
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
47
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
48
|
+
spec.rcov = true
|
49
|
+
end
|
50
|
+
|
51
|
+
task :default => :spec
|
52
|
+
|
53
|
+
require 'rdoc/task'
|
54
|
+
Rake::RDocTask.new do |rdoc|
|
55
|
+
version = s_version
|
56
|
+
|
57
|
+
rdoc.rdoc_dir = 'rdoc'
|
58
|
+
rdoc.title = "rubyneat #{version}"
|
59
|
+
rdoc.rdoc_files.include('README*')
|
60
|
+
rdoc.rdoc_files.include('rnlib/**/*.rb')
|
61
|
+
end
|
data/bin/neat
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
=begin rdoc
|
3
|
+
=RubyNEAT Launcher
|
4
|
+
|
5
|
+
=end
|
6
|
+
require 'semver'
|
7
|
+
|
8
|
+
# Be sure rnlib is added to the library path
|
9
|
+
%w{ lib neater neater/rnlib }.each do |dir|
|
10
|
+
$:.unshift File.join([Dir.pwd, dir])
|
11
|
+
end
|
12
|
+
|
13
|
+
NEATER = File.join [Dir.pwd, "neater"]
|
14
|
+
NEATGLOB = NEATER + '/*_neat.rb'
|
15
|
+
|
16
|
+
require 'slop'
|
17
|
+
require 'rubyneat'
|
18
|
+
|
19
|
+
def list_neaters
|
20
|
+
Dir.glob(NEATGLOB).sort.each do |ne|
|
21
|
+
puts 'neat run ' + File.basename(ne).gsub(%r{_neat\.rb}, '')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def list_neurons
|
26
|
+
puts NEAT::Neuron.neuron_types.map{|n| n.name }.sort.join "\n"
|
27
|
+
end
|
28
|
+
|
29
|
+
opts = Slop.parse(strict: true, help: true) do
|
30
|
+
banner 'Usage: neat [commands] [options] ...'
|
31
|
+
|
32
|
+
on :version, 'Version information' do
|
33
|
+
run do |opts, args|
|
34
|
+
puts SemVer.find.format "%M.%m.%p%s"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
command :console do
|
39
|
+
banner 'Usage: neat console [options]'
|
40
|
+
run do
|
41
|
+
# TODO Implement an interactive console
|
42
|
+
puts "Interactive Console NIY"
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
command :list do
|
47
|
+
banner 'Usage: neat list options'
|
48
|
+
on :n, :neaters, 'list available neaters (default)'
|
49
|
+
on :u, :neurons, 'list available Neuron types'
|
50
|
+
run do |opts, args|
|
51
|
+
opts.to_hash.map { |k, v| k }.reject{ |o| opts[o].nil? }.each do |o|
|
52
|
+
case o
|
53
|
+
when :neurons
|
54
|
+
list_neurons
|
55
|
+
when :neaters
|
56
|
+
list_neaters
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
command :run do
|
64
|
+
banner "Usage: neat run [options] neater_module ...\nFor a list of neater modules: neat list"
|
65
|
+
on :log=, 'Debugging level [info|warn|error|debug]'
|
66
|
+
on :v, :verbose=, 'Verbose mode', as: Integer
|
67
|
+
|
68
|
+
run do |opts, args|
|
69
|
+
NEAT::controller.verbosity = opts[:v].to_i unless opts[:v].nil?
|
70
|
+
eval %{$log.level = Logger::#{opts[:log].upcase}} unless opts[:log].nil?
|
71
|
+
|
72
|
+
args.map do |proj|
|
73
|
+
"#{proj}_neat.rb"
|
74
|
+
end.each do |file|
|
75
|
+
load file
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
run do |opts, args|
|
81
|
+
puts opts
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: ControllerPoint
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index (C)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">ControllerPoint</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: ControllerPoint
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">ControllerPoint</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<dt class="r2">Includes:</dt>
|
94
|
+
<dd class="r2">Aquarium::DSL</dd>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dt class="r1 last">Defined in:</dt>
|
101
|
+
<dd class="r1 last">lib/rubyneat/foo.rb</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
<div class="clear"></div>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
</div>
|
117
|
+
|
118
|
+
<div id="footer">
|
119
|
+
Generated on Mon Jan 6 11:16:36 2014 by
|
120
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
|
+
0.8.7.3 (ruby-2.0.0).
|
122
|
+
</div>
|
123
|
+
|
124
|
+
</body>
|
125
|
+
</html>
|