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
@@ -0,0 +1,375 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
<<<<<<< HEAD
|
6
|
+
# stub: rubyneat 0.3.5.alpha ruby lib
|
7
|
+
|
8
|
+
Gem::Specification.new do |s|
|
9
|
+
s.name = "rubyneat"
|
10
|
+
s.version = "0.3.5.alpha"
|
11
|
+
=======
|
12
|
+
# stub: rubyneat 0.3.5 ruby lib
|
13
|
+
|
14
|
+
Gem::Specification.new do |s|
|
15
|
+
s.name = "rubyneat"
|
16
|
+
s.version = "0.3.5"
|
17
|
+
>>>>>>> utility
|
18
|
+
|
19
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
s.authors = ["Fred Mitchell"]
|
22
|
+
<<<<<<< HEAD
|
23
|
+
s.date = "2014-04-13"
|
24
|
+
=======
|
25
|
+
s.date = "2014-03-30"
|
26
|
+
>>>>>>> utility
|
27
|
+
s.description = "\n NEAT Algorithm for Ruby.\n "
|
28
|
+
s.email = "fred@lrcsoft.com"
|
29
|
+
s.executables = ["neat"]
|
30
|
+
s.files = [
|
31
|
+
".directory",
|
32
|
+
".gitignore.orig",
|
33
|
+
".idea/.name",
|
34
|
+
".idea/.rakeTasks",
|
35
|
+
".idea/dictionaries/trader.xml",
|
36
|
+
".idea/encodings.xml",
|
37
|
+
".idea/misc.xml",
|
38
|
+
".idea/modules.xml",
|
39
|
+
".idea/rubyneat.iml",
|
40
|
+
".idea/runConfigurations/invpend_neat.xml",
|
41
|
+
".idea/runConfigurations/sigdebug_neat.xml",
|
42
|
+
".idea/runConfigurations/xor_neat.xml",
|
43
|
+
".idea/runConfigurations/xordebug_neat.xml",
|
44
|
+
".idea/runConfigurations/xorsin_neat.xml",
|
45
|
+
".idea/scopes/scope_settings.xml",
|
46
|
+
".idea/vcs.xml",
|
47
|
+
".idea/workspace.xml",
|
48
|
+
".semver",
|
49
|
+
".yardoc/checksums",
|
50
|
+
".yardoc/object_types",
|
51
|
+
".yardoc/objects/root.dat",
|
52
|
+
".yardoc/proxy_types",
|
53
|
+
"Gemfile",
|
54
|
+
"Gemfile.lock",
|
55
|
+
"Guardfile",
|
56
|
+
"Rakefile",
|
57
|
+
"bin/neat",
|
58
|
+
"config/application.rb",
|
59
|
+
"doc/ControllerPoint.html",
|
60
|
+
"doc/CuteA.html",
|
61
|
+
"doc/CuteB.html",
|
62
|
+
"doc/DSL.html",
|
63
|
+
"doc/NEAT.html",
|
64
|
+
"doc/NEAT/BasicNeuronTypes.html",
|
65
|
+
"doc/NEAT/BasicNeuronTypes/BiasNeuron.html",
|
66
|
+
"doc/NEAT/BasicNeuronTypes/CosineNeuron.html",
|
67
|
+
"doc/NEAT/BasicNeuronTypes/InputNeuron.html",
|
68
|
+
"doc/NEAT/BasicNeuronTypes/SigmoidNeuron.html",
|
69
|
+
"doc/NEAT/BasicNeuronTypes/SineNeuron.html",
|
70
|
+
"doc/NEAT/BasicNeuronTypes/TanhNeuron.html",
|
71
|
+
"doc/NEAT/Controller.html",
|
72
|
+
"doc/NEAT/Controller/NeatSettings.html",
|
73
|
+
"doc/NEAT/Critter.html",
|
74
|
+
"doc/NEAT/Critter/Genotype.html",
|
75
|
+
"doc/NEAT/Critter/Genotype/Gene.html",
|
76
|
+
"doc/NEAT/Critter/Phenotype.html",
|
77
|
+
"doc/NEAT/DSL.html",
|
78
|
+
"doc/NEAT/Evaluator.html",
|
79
|
+
"doc/NEAT/Evolver.html",
|
80
|
+
"doc/NEAT/Evolver/CritterOp.html",
|
81
|
+
"doc/NEAT/Expressor.html",
|
82
|
+
"doc/NEAT/Graph.html",
|
83
|
+
"doc/NEAT/Graph/DependencyResolver.html",
|
84
|
+
"doc/NEAT/Graph/GraphException.html",
|
85
|
+
"doc/NEAT/NeatException.html",
|
86
|
+
"doc/NEAT/NeatOb.html",
|
87
|
+
"doc/NEAT/Neuron.html",
|
88
|
+
"doc/NEAT/Operator.html",
|
89
|
+
"doc/NEAT/Population.html",
|
90
|
+
"doc/NEAT/Trait.html",
|
91
|
+
"doc/_index.html",
|
92
|
+
"doc/class_list.html",
|
93
|
+
"doc/css/common.css",
|
94
|
+
"doc/css/full_list.css",
|
95
|
+
"doc/css/style.css",
|
96
|
+
"doc/file_list.html",
|
97
|
+
"doc/frames.html",
|
98
|
+
"doc/index.html",
|
99
|
+
"doc/js/app.js",
|
100
|
+
"doc/js/full_list.js",
|
101
|
+
"doc/js/jquery.js",
|
102
|
+
"doc/method_list.html",
|
103
|
+
"doc/top-level-namespace.html",
|
104
|
+
"foo/foo_aquarium_example.rb",
|
105
|
+
"foo/foo_gosu.rb",
|
106
|
+
"foo/foo_rubygoo.rb",
|
107
|
+
"foo/foo_sdl.rb",
|
108
|
+
"foo/icon.png",
|
109
|
+
"lib/rubyneat.rb",
|
110
|
+
"lib/rubyneat/critter.rb",
|
111
|
+
"lib/rubyneat/default_neat.rb",
|
112
|
+
"lib/rubyneat/dsl.rb",
|
113
|
+
"lib/rubyneat/evaluator.rb",
|
114
|
+
"lib/rubyneat/evolver.rb",
|
115
|
+
"lib/rubyneat/expressor.rb",
|
116
|
+
"lib/rubyneat/graph.rb",
|
117
|
+
"lib/rubyneat/neuron.rb",
|
118
|
+
"lib/rubyneat/population.rb",
|
119
|
+
"lib/rubyneat/rubyneat.rb",
|
120
|
+
"neater/invpend_neat.rb",
|
121
|
+
"neater/rnlib/inverted_pendulum.rb",
|
122
|
+
"neater/rnlib/xor.rb",
|
123
|
+
"neater/sigdebug_neat.rb",
|
124
|
+
"neater/xor_neat.rb",
|
125
|
+
"neater/xoranalog_neat.rb",
|
126
|
+
"neater/xorsin_neat.rb",
|
127
|
+
<<<<<<< HEAD
|
128
|
+
=======
|
129
|
+
"pkg/rubyneat-0.0.7.gem",
|
130
|
+
"pkg/rubyneat-0.1.4.gem",
|
131
|
+
"pkg/rubyneat-0.1.7.gem",
|
132
|
+
"pkg/rubyneat-0.1.8.gem",
|
133
|
+
"pkg/rubyneat-0.2.1.gem",
|
134
|
+
"pkg/rubyneat-0.3.1.gem",
|
135
|
+
"pkg/rubyneat-0.3.3.gem",
|
136
|
+
"pkg/rubyneat-0.3.4.gem",
|
137
|
+
>>>>>>> utility
|
138
|
+
"projectFilesBackup/.idea/rubyneat.iml",
|
139
|
+
"public/.directory",
|
140
|
+
"public/background.png",
|
141
|
+
"public/background.xcf",
|
142
|
+
"public/cart.png",
|
143
|
+
"public/cart.xcf",
|
144
|
+
"public/metalpoles_molton_ball_l.jpg",
|
145
|
+
<<<<<<< HEAD
|
146
|
+
=======
|
147
|
+
"public/old_background.png",
|
148
|
+
>>>>>>> utility
|
149
|
+
"public/pointer.png",
|
150
|
+
"public/pointer.xcf",
|
151
|
+
"public/pole.kra",
|
152
|
+
"public/pole.png",
|
153
|
+
"public/pole.xcf",
|
154
|
+
"public/wheel-of-year-stone-DD-131-WOYS.jpg",
|
155
|
+
"public/wheel.png",
|
156
|
+
"public/wheel.xcf",
|
157
|
+
"public/wood-planks-texture.jpg",
|
158
|
+
"rdoc/ControllerPoint.html",
|
159
|
+
"rdoc/CuteA.html",
|
160
|
+
"rdoc/CuteB.html",
|
161
|
+
"rdoc/DSLSetup.html",
|
162
|
+
"rdoc/GameTestWindow.html",
|
163
|
+
"rdoc/GameWindow.html",
|
164
|
+
"rdoc/Gemfile.html",
|
165
|
+
"rdoc/Gemfile_lock.html",
|
166
|
+
"rdoc/GraphTest.html",
|
167
|
+
"rdoc/Guardfile.html",
|
168
|
+
"rdoc/InvertedPendulum.html",
|
169
|
+
"rdoc/InvertedPendulum/Cart.html",
|
170
|
+
"rdoc/InvertedPendulum/DSL.html",
|
171
|
+
"rdoc/InvertedPendulum/InvPendWindow.html",
|
172
|
+
"rdoc/Logger.html",
|
173
|
+
"rdoc/NEAT.html",
|
174
|
+
"rdoc/NEAT/BasicNeuronTypes.html",
|
175
|
+
"rdoc/NEAT/BasicNeuronTypes/BiasNeuron.html",
|
176
|
+
"rdoc/NEAT/BasicNeuronTypes/CosineNeuron.html",
|
177
|
+
"rdoc/NEAT/BasicNeuronTypes/InputNeuron.html",
|
178
|
+
"rdoc/NEAT/BasicNeuronTypes/SigmoidNeuron.html",
|
179
|
+
"rdoc/NEAT/BasicNeuronTypes/SineNeuron.html",
|
180
|
+
"rdoc/NEAT/BasicNeuronTypes/TanhNeuron.html",
|
181
|
+
"rdoc/NEAT/Controller.html",
|
182
|
+
"rdoc/NEAT/Controller/NeatSettings.html",
|
183
|
+
"rdoc/NEAT/Critter.html",
|
184
|
+
"rdoc/NEAT/Critter/Genotype.html",
|
185
|
+
"rdoc/NEAT/Critter/Genotype/Gene.html",
|
186
|
+
"rdoc/NEAT/Critter/Phenotype.html",
|
187
|
+
"rdoc/NEAT/DSL.html",
|
188
|
+
"rdoc/NEAT/Evaluator.html",
|
189
|
+
"rdoc/NEAT/Evolver.html",
|
190
|
+
"rdoc/NEAT/Evolver/CritterOp.html",
|
191
|
+
"rdoc/NEAT/Expressor.html",
|
192
|
+
"rdoc/NEAT/Graph.html",
|
193
|
+
"rdoc/NEAT/Graph/DependencyResolver.html",
|
194
|
+
"rdoc/NEAT/Graph/GraphException.html",
|
195
|
+
"rdoc/NEAT/NeatException.html",
|
196
|
+
"rdoc/NEAT/NeatOb.html",
|
197
|
+
"rdoc/NEAT/Neuron.html",
|
198
|
+
"rdoc/NEAT/Operator.html",
|
199
|
+
"rdoc/NEAT/Population.html",
|
200
|
+
"rdoc/NEAT/Trait.html",
|
201
|
+
"rdoc/Object.html",
|
202
|
+
"rdoc/Phi.html",
|
203
|
+
"rdoc/Player.html",
|
204
|
+
"rdoc/Rakefile.html",
|
205
|
+
"rdoc/RubyNEAT.html",
|
206
|
+
"rdoc/RubyNEAT/Application.html",
|
207
|
+
"rdoc/SDL.html",
|
208
|
+
"rdoc/SDL/Event2.html",
|
209
|
+
"rdoc/Vector.html",
|
210
|
+
"rdoc/created.rid",
|
211
|
+
"rdoc/doc/ControllerPoint_html.html",
|
212
|
+
"rdoc/doc/CuteA_html.html",
|
213
|
+
"rdoc/doc/CuteB_html.html",
|
214
|
+
"rdoc/doc/DSL_html.html",
|
215
|
+
"rdoc/doc/NEAT/BasicNeuronTypes/BiasNeuron_html.html",
|
216
|
+
"rdoc/doc/NEAT/BasicNeuronTypes/CosineNeuron_html.html",
|
217
|
+
"rdoc/doc/NEAT/BasicNeuronTypes/InputNeuron_html.html",
|
218
|
+
"rdoc/doc/NEAT/BasicNeuronTypes/SigmoidNeuron_html.html",
|
219
|
+
"rdoc/doc/NEAT/BasicNeuronTypes/SineNeuron_html.html",
|
220
|
+
"rdoc/doc/NEAT/BasicNeuronTypes/TanhNeuron_html.html",
|
221
|
+
"rdoc/doc/NEAT/BasicNeuronTypes_html.html",
|
222
|
+
"rdoc/doc/NEAT/Controller/NeatSettings_html.html",
|
223
|
+
"rdoc/doc/NEAT/Controller_html.html",
|
224
|
+
"rdoc/doc/NEAT/Critter/Genotype/Gene_html.html",
|
225
|
+
"rdoc/doc/NEAT/Critter/Genotype_html.html",
|
226
|
+
"rdoc/doc/NEAT/Critter/Phenotype_html.html",
|
227
|
+
"rdoc/doc/NEAT/Critter_html.html",
|
228
|
+
"rdoc/doc/NEAT/DSL_html.html",
|
229
|
+
"rdoc/doc/NEAT/Evaluator_html.html",
|
230
|
+
"rdoc/doc/NEAT/Evolver/CritterOp_html.html",
|
231
|
+
"rdoc/doc/NEAT/Evolver_html.html",
|
232
|
+
"rdoc/doc/NEAT/Expressor_html.html",
|
233
|
+
"rdoc/doc/NEAT/Graph/DependencyResolver_html.html",
|
234
|
+
"rdoc/doc/NEAT/Graph/GraphException_html.html",
|
235
|
+
"rdoc/doc/NEAT/Graph_html.html",
|
236
|
+
"rdoc/doc/NEAT/NeatException_html.html",
|
237
|
+
"rdoc/doc/NEAT/NeatOb_html.html",
|
238
|
+
"rdoc/doc/NEAT/Neuron_html.html",
|
239
|
+
"rdoc/doc/NEAT/Operator_html.html",
|
240
|
+
"rdoc/doc/NEAT/Population_html.html",
|
241
|
+
"rdoc/doc/NEAT/Trait_html.html",
|
242
|
+
"rdoc/doc/NEAT_html.html",
|
243
|
+
"rdoc/doc/_index_html.html",
|
244
|
+
"rdoc/doc/class_list_html.html",
|
245
|
+
"rdoc/doc/css/common_css.html",
|
246
|
+
"rdoc/doc/css/full_list_css.html",
|
247
|
+
"rdoc/doc/css/style_css.html",
|
248
|
+
"rdoc/doc/file_list_html.html",
|
249
|
+
"rdoc/doc/frames_html.html",
|
250
|
+
"rdoc/doc/index_html.html",
|
251
|
+
"rdoc/doc/js/app_js.html",
|
252
|
+
"rdoc/doc/js/full_list_js.html",
|
253
|
+
"rdoc/doc/js/jquery_js.html",
|
254
|
+
"rdoc/doc/method_list_html.html",
|
255
|
+
"rdoc/doc/top-level-namespace_html.html",
|
256
|
+
"rdoc/fonts.css",
|
257
|
+
"rdoc/fonts/Lato-Light.ttf",
|
258
|
+
"rdoc/fonts/Lato-LightItalic.ttf",
|
259
|
+
"rdoc/fonts/Lato-Regular.ttf",
|
260
|
+
"rdoc/fonts/Lato-RegularItalic.ttf",
|
261
|
+
"rdoc/fonts/SourceCodePro-Bold.ttf",
|
262
|
+
"rdoc/fonts/SourceCodePro-Regular.ttf",
|
263
|
+
"rdoc/images/add.png",
|
264
|
+
"rdoc/images/arrow_up.png",
|
265
|
+
"rdoc/images/brick.png",
|
266
|
+
"rdoc/images/brick_link.png",
|
267
|
+
"rdoc/images/bug.png",
|
268
|
+
"rdoc/images/bullet_black.png",
|
269
|
+
"rdoc/images/bullet_toggle_minus.png",
|
270
|
+
"rdoc/images/bullet_toggle_plus.png",
|
271
|
+
"rdoc/images/date.png",
|
272
|
+
"rdoc/images/delete.png",
|
273
|
+
"rdoc/images/find.png",
|
274
|
+
"rdoc/images/loadingAnimation.gif",
|
275
|
+
"rdoc/images/macFFBgHack.png",
|
276
|
+
"rdoc/images/package.png",
|
277
|
+
"rdoc/images/page_green.png",
|
278
|
+
"rdoc/images/page_white_text.png",
|
279
|
+
"rdoc/images/page_white_width.png",
|
280
|
+
"rdoc/images/plugin.png",
|
281
|
+
"rdoc/images/ruby.png",
|
282
|
+
"rdoc/images/tag_blue.png",
|
283
|
+
"rdoc/images/tag_green.png",
|
284
|
+
"rdoc/images/transparent.png",
|
285
|
+
"rdoc/images/wrench.png",
|
286
|
+
"rdoc/images/wrench_orange.png",
|
287
|
+
"rdoc/images/zoom.png",
|
288
|
+
"rdoc/index.html",
|
289
|
+
"rdoc/js/darkfish.js",
|
290
|
+
"rdoc/js/jquery.js",
|
291
|
+
"rdoc/js/navigation.js",
|
292
|
+
"rdoc/js/search.js",
|
293
|
+
"rdoc/js/search_index.js",
|
294
|
+
"rdoc/js/searcher.js",
|
295
|
+
"rdoc/rdoc.css",
|
296
|
+
"rdoc/rubyneat_gemspec.html",
|
297
|
+
"rdoc/table_of_contents.html",
|
298
|
+
"rdoc/xordebug_log.html",
|
299
|
+
"rdoc/xorsin_log.html",
|
300
|
+
"rubyneat.gemspec",
|
301
|
+
"spec/lib/rubyneat/rubyneat_spec.rb"
|
302
|
+
]
|
303
|
+
s.homepage = "http://rubyneat.com"
|
304
|
+
s.licenses = ["MIT"]
|
305
|
+
s.rubygems_version = "2.2.2"
|
306
|
+
<<<<<<< HEAD
|
307
|
+
s.summary = "RubyNEAT NeuralEvolution of Augmenting Topologies"
|
308
|
+
=======
|
309
|
+
s.summary = "RubyNEAT NeuralEvolution by Augmented Topologies"
|
310
|
+
>>>>>>> utility
|
311
|
+
|
312
|
+
if s.respond_to? :specification_version then
|
313
|
+
s.specification_version = 4
|
314
|
+
|
315
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
316
|
+
s.add_runtime_dependency(%q<mongo>, [">= 0"])
|
317
|
+
s.add_runtime_dependency(%q<bson_ext>, [">= 0"])
|
318
|
+
s.add_runtime_dependency(%q<distribution>, [">= 0"])
|
319
|
+
s.add_runtime_dependency(%q<statistics2>, [">= 0"])
|
320
|
+
s.add_runtime_dependency(%q<debase>, [">= 0"])
|
321
|
+
s.add_runtime_dependency(%q<aquarium>, [">= 0"])
|
322
|
+
s.add_runtime_dependency(%q<slop>, [">= 0"])
|
323
|
+
s.add_runtime_dependency(%q<awesome_print>, [">= 0"])
|
324
|
+
s.add_runtime_dependency(%q<deep_dive>, [">= 0"])
|
325
|
+
s.add_runtime_dependency(%q<gosu>, [">= 0"])
|
326
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
327
|
+
s.add_development_dependency(%q<yard>, [">= 0"])
|
328
|
+
s.add_development_dependency(%q<guard>, [">= 0"])
|
329
|
+
s.add_development_dependency(%q<guard-rspec>, [">= 0"])
|
330
|
+
s.add_development_dependency(%q<semver>, [">= 0"])
|
331
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
|
332
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
333
|
+
s.add_development_dependency(%q<ruby-debug-ide>, [">= 0"])
|
334
|
+
else
|
335
|
+
s.add_dependency(%q<mongo>, [">= 0"])
|
336
|
+
s.add_dependency(%q<bson_ext>, [">= 0"])
|
337
|
+
s.add_dependency(%q<distribution>, [">= 0"])
|
338
|
+
s.add_dependency(%q<statistics2>, [">= 0"])
|
339
|
+
s.add_dependency(%q<debase>, [">= 0"])
|
340
|
+
s.add_dependency(%q<aquarium>, [">= 0"])
|
341
|
+
s.add_dependency(%q<slop>, [">= 0"])
|
342
|
+
s.add_dependency(%q<awesome_print>, [">= 0"])
|
343
|
+
s.add_dependency(%q<deep_dive>, [">= 0"])
|
344
|
+
s.add_dependency(%q<gosu>, [">= 0"])
|
345
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
346
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
347
|
+
s.add_dependency(%q<guard>, [">= 0"])
|
348
|
+
s.add_dependency(%q<guard-rspec>, [">= 0"])
|
349
|
+
s.add_dependency(%q<semver>, [">= 0"])
|
350
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
351
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
352
|
+
s.add_dependency(%q<ruby-debug-ide>, [">= 0"])
|
353
|
+
end
|
354
|
+
else
|
355
|
+
s.add_dependency(%q<mongo>, [">= 0"])
|
356
|
+
s.add_dependency(%q<bson_ext>, [">= 0"])
|
357
|
+
s.add_dependency(%q<distribution>, [">= 0"])
|
358
|
+
s.add_dependency(%q<statistics2>, [">= 0"])
|
359
|
+
s.add_dependency(%q<debase>, [">= 0"])
|
360
|
+
s.add_dependency(%q<aquarium>, [">= 0"])
|
361
|
+
s.add_dependency(%q<slop>, [">= 0"])
|
362
|
+
s.add_dependency(%q<awesome_print>, [">= 0"])
|
363
|
+
s.add_dependency(%q<deep_dive>, [">= 0"])
|
364
|
+
s.add_dependency(%q<gosu>, [">= 0"])
|
365
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
366
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
367
|
+
s.add_dependency(%q<guard>, [">= 0"])
|
368
|
+
s.add_dependency(%q<guard-rspec>, [">= 0"])
|
369
|
+
s.add_dependency(%q<semver>, [">= 0"])
|
370
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
371
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
372
|
+
s.add_dependency(%q<ruby-debug-ide>, [">= 0"])
|
373
|
+
end
|
374
|
+
end
|
375
|
+
|
@@ -0,0 +1,132 @@
|
|
1
|
+
require 'rubyneat'
|
2
|
+
|
3
|
+
module DSLSetup
|
4
|
+
include DSL
|
5
|
+
|
6
|
+
# The number of inputs to the xor function
|
7
|
+
XOR_INPUTS=2
|
8
|
+
|
9
|
+
# Basic xor function we shall evolve a net for. Only goes true
|
10
|
+
# on one and only one true input, false otherwise.
|
11
|
+
def xor(*inp)
|
12
|
+
p = 0
|
13
|
+
inp.each {|i| p += 1 if i}
|
14
|
+
return p == 1
|
15
|
+
end
|
16
|
+
|
17
|
+
# This defines the controller
|
18
|
+
define "Default Setup" do
|
19
|
+
# Define the IO neurons
|
20
|
+
inputs {
|
21
|
+
cinv = Hash[(1..XOR_INPUTS).map{|i| [("i%s" % i).to_sym, InputNeuron]}]
|
22
|
+
cinv[:bias] = BiasNeuron
|
23
|
+
cinv
|
24
|
+
}
|
25
|
+
outputs out: SigmoidNeuron
|
26
|
+
|
27
|
+
# Hidden neuron specification is optional.
|
28
|
+
# The name given here is largely meaningless, but may be useful as some sort
|
29
|
+
# of unique flag.
|
30
|
+
hidden sig: SigmoidNeuron
|
31
|
+
|
32
|
+
# Settings
|
33
|
+
hash_on_fitness = false
|
34
|
+
start_population_size 10
|
35
|
+
population_size 100
|
36
|
+
max_generations 50
|
37
|
+
|
38
|
+
start_sequence_at 0
|
39
|
+
end_sequence_at 10
|
40
|
+
end
|
41
|
+
|
42
|
+
evolve do
|
43
|
+
query { |seq|
|
44
|
+
puts "Query called with seq %s" % seq
|
45
|
+
}
|
46
|
+
|
47
|
+
fitness { |vin, vout, seq|
|
48
|
+
puts "Fitness called with vin=%s, vout=%s, seq=%s" % [vin, vout, seq]
|
49
|
+
return 0.0
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
report do
|
54
|
+
end
|
55
|
+
|
56
|
+
# The block here is called upon the completion of each generation
|
57
|
+
run_engine do |c|
|
58
|
+
log.info { "Run of generation %s completed, history count %d" % [c.generation_num,
|
59
|
+
c.population_history.size] }
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
|
64
|
+
class GraphTest
|
65
|
+
include NEAT::Graph
|
66
|
+
def initialize(i)
|
67
|
+
@i = i
|
68
|
+
end
|
69
|
+
|
70
|
+
def to_s
|
71
|
+
"node[%s]" % @i
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
|
76
|
+
def pgraph(a, mess)
|
77
|
+
puts "\n\n" + mess
|
78
|
+
a.each{|g|
|
79
|
+
puts " %s ->" % g
|
80
|
+
g.inputs.each{|h|
|
81
|
+
puts " %s" % h
|
82
|
+
}
|
83
|
+
}
|
84
|
+
end
|
85
|
+
|
86
|
+
def create_nodes(n)
|
87
|
+
nodes = (1..n).map{ |i| GraphTest.new i }
|
88
|
+
n.times {|i|
|
89
|
+
nodes[i].clear_graph
|
90
|
+
i.times {|j| nodes[i] << nodes[j] }}
|
91
|
+
nodes
|
92
|
+
end
|
93
|
+
|
94
|
+
describe NEAT do
|
95
|
+
describe "::random_name_generator" do
|
96
|
+
it "returns a random string" do
|
97
|
+
s = NEAT::random_name_generator
|
98
|
+
s.size.should > 0
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
describe "::Graph::DependencyResolver" do
|
103
|
+
|
104
|
+
nodes_ff = create_nodes 5
|
105
|
+
pgraph nodes_ff, "Feed Forward"
|
106
|
+
|
107
|
+
it "resolves depedencies" do
|
108
|
+
depres = NEAT::Graph::DependencyResolver.new([nodes_ff.last])
|
109
|
+
dr, cl = depres.resolve
|
110
|
+
|
111
|
+
log.debug { "\n**** dr=%s\n**** cl=%s" % [dr, cl] }
|
112
|
+
|
113
|
+
dr.size.should == 5
|
114
|
+
cl.nil?.should == true
|
115
|
+
end
|
116
|
+
|
117
|
+
# we add a circular dependency between the first and last.
|
118
|
+
nodes_c = create_nodes 5
|
119
|
+
nodes_c.first << nodes_c.last
|
120
|
+
pgraph nodes_c, "Circluar Dependency"
|
121
|
+
|
122
|
+
it "detects circular dependencies" do
|
123
|
+
depres = NEAT::Graph::DependencyResolver.new([nodes_c.last])
|
124
|
+
dr, cl = depres.resolve
|
125
|
+
|
126
|
+
log.debug { "\nxxxx dr=%s\nxxxx cl=%s" % [dr, cl] }
|
127
|
+
|
128
|
+
dr.size.should == 5
|
129
|
+
cl.nil?.should_not == true
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|