rubyneat 0.3.5.alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. checksums.yaml +7 -0
  2. data/.directory +4 -0
  3. data/.gitignore.orig +20 -0
  4. data/.idea/.name +1 -0
  5. data/.idea/.rakeTasks +7 -0
  6. data/.idea/dictionaries/trader.xml +3 -0
  7. data/.idea/encodings.xml +5 -0
  8. data/.idea/misc.xml +5 -0
  9. data/.idea/modules.xml +9 -0
  10. data/.idea/rubyneat.iml +197 -0
  11. data/.idea/runConfigurations/invpend_neat.xml +26 -0
  12. data/.idea/runConfigurations/sigdebug_neat.xml +24 -0
  13. data/.idea/runConfigurations/xor_neat.xml +26 -0
  14. data/.idea/runConfigurations/xordebug_neat.xml +24 -0
  15. data/.idea/runConfigurations/xorsin_neat.xml +24 -0
  16. data/.idea/scopes/scope_settings.xml +5 -0
  17. data/.idea/vcs.xml +7 -0
  18. data/.idea/workspace.xml +1124 -0
  19. data/.semver +5 -0
  20. data/.yardoc/checksums +11 -0
  21. data/.yardoc/object_types +0 -0
  22. data/.yardoc/objects/root.dat +0 -0
  23. data/.yardoc/proxy_types +0 -0
  24. data/Gemfile +32 -0
  25. data/Gemfile.lock +135 -0
  26. data/Gemfile.lock.orig +147 -0
  27. data/Guardfile +8 -0
  28. data/Rakefile +61 -0
  29. data/bin/neat +83 -0
  30. data/config/application.rb +5 -0
  31. data/doc/ControllerPoint.html +125 -0
  32. data/doc/CuteA.html +286 -0
  33. data/doc/CuteB.html +297 -0
  34. data/doc/DSL.html +883 -0
  35. data/doc/NEAT/BasicNeuronTypes/BiasNeuron.html +518 -0
  36. data/doc/NEAT/BasicNeuronTypes/CosineNeuron.html +274 -0
  37. data/doc/NEAT/BasicNeuronTypes/InputNeuron.html +366 -0
  38. data/doc/NEAT/BasicNeuronTypes/SigmoidNeuron.html +275 -0
  39. data/doc/NEAT/BasicNeuronTypes/SineNeuron.html +274 -0
  40. data/doc/NEAT/BasicNeuronTypes/TanhNeuron.html +274 -0
  41. data/doc/NEAT/BasicNeuronTypes.html +136 -0
  42. data/doc/NEAT/Controller/NeatSettings.html +3985 -0
  43. data/doc/NEAT/Controller.html +2490 -0
  44. data/doc/NEAT/Critter/Genotype/Gene.html +979 -0
  45. data/doc/NEAT/Critter/Genotype.html +1601 -0
  46. data/doc/NEAT/Critter/Phenotype.html +603 -0
  47. data/doc/NEAT/Critter.html +1037 -0
  48. data/doc/NEAT/DSL.html +1255 -0
  49. data/doc/NEAT/Evaluator.html +420 -0
  50. data/doc/NEAT/Evolver/CritterOp.html +551 -0
  51. data/doc/NEAT/Evolver.html +602 -0
  52. data/doc/NEAT/Expressor.html +327 -0
  53. data/doc/NEAT/Graph/DependencyResolver.html +478 -0
  54. data/doc/NEAT/Graph/GraphException.html +123 -0
  55. data/doc/NEAT/Graph.html +402 -0
  56. data/doc/NEAT/NeatException.html +123 -0
  57. data/doc/NEAT/NeatOb.html +567 -0
  58. data/doc/NEAT/Neuron.html +1067 -0
  59. data/doc/NEAT/Operator.html +162 -0
  60. data/doc/NEAT/Population.html +1961 -0
  61. data/doc/NEAT/Trait.html +169 -0
  62. data/doc/NEAT.html +588 -0
  63. data/doc/_index.html +373 -0
  64. data/doc/class_list.html +54 -0
  65. data/doc/css/common.css +1 -0
  66. data/doc/css/full_list.css +57 -0
  67. data/doc/css/style.css +339 -0
  68. data/doc/file_list.html +53 -0
  69. data/doc/frames.html +26 -0
  70. data/doc/index.html +373 -0
  71. data/doc/js/app.js +219 -0
  72. data/doc/js/full_list.js +178 -0
  73. data/doc/js/jquery.js +4 -0
  74. data/doc/method_list.html +1415 -0
  75. data/doc/top-level-namespace.html +164 -0
  76. data/foo/foo_aquarium_example.rb +38 -0
  77. data/foo/foo_gosu.rb +99 -0
  78. data/foo/foo_rubygoo.rb +104 -0
  79. data/foo/foo_sdl.rb +34 -0
  80. data/foo/icon.png +0 -0
  81. data/lib/rubyneat/critter.rb +374 -0
  82. data/lib/rubyneat/default_neat.rb +10 -0
  83. data/lib/rubyneat/dsl.rb +130 -0
  84. data/lib/rubyneat/evaluator.rb +51 -0
  85. data/lib/rubyneat/evolver.rb +315 -0
  86. data/lib/rubyneat/expressor.rb +110 -0
  87. data/lib/rubyneat/graph.rb +95 -0
  88. data/lib/rubyneat/neuron.rb +152 -0
  89. data/lib/rubyneat/population.rb +227 -0
  90. data/lib/rubyneat/rubyneat.rb +429 -0
  91. data/lib/rubyneat.rb +8 -0
  92. data/neater/invpend_neat.rb +150 -0
  93. data/neater/rnlib/inverted_pendulum.rb +380 -0
  94. data/neater/rnlib/xor.rb +10 -0
  95. data/neater/sigdebug_neat.rb +136 -0
  96. data/neater/xor_neat.rb +137 -0
  97. data/neater/xoranalog_neat.rb +138 -0
  98. data/neater/xorsin_neat.rb +143 -0
  99. data/projectFilesBackup/.idea/rubyneat.iml +180 -0
  100. data/public/.directory +4 -0
  101. data/public/background.png +0 -0
  102. data/public/background.xcf +0 -0
  103. data/public/cart.png +0 -0
  104. data/public/cart.xcf +0 -0
  105. data/public/metalpoles_molton_ball_l.jpg +0 -0
  106. data/public/old_background.png +0 -0
  107. data/public/pointer.png +0 -0
  108. data/public/pointer.xcf +0 -0
  109. data/public/pole.kra +0 -0
  110. data/public/pole.png +0 -0
  111. data/public/pole.xcf +0 -0
  112. data/public/wheel-of-year-stone-DD-131-WOYS.jpg +0 -0
  113. data/public/wheel.png +0 -0
  114. data/public/wheel.xcf +0 -0
  115. data/public/wood-planks-texture.jpg +0 -0
  116. data/rdoc/ControllerPoint.html +116 -0
  117. data/rdoc/CuteA.html +177 -0
  118. data/rdoc/CuteB.html +178 -0
  119. data/rdoc/DSLSetup.html +177 -0
  120. data/rdoc/GameTestWindow.html +242 -0
  121. data/rdoc/GameWindow.html +292 -0
  122. data/rdoc/Gemfile.html +215 -0
  123. data/rdoc/Gemfile_lock.html +327 -0
  124. data/rdoc/GraphTest.html +210 -0
  125. data/rdoc/Guardfile.html +198 -0
  126. data/rdoc/InvertedPendulum/Cart.html +668 -0
  127. data/rdoc/InvertedPendulum/DSL.html +259 -0
  128. data/rdoc/InvertedPendulum/InvPendWindow.html +402 -0
  129. data/rdoc/InvertedPendulum.html +198 -0
  130. data/rdoc/Logger.html +98 -0
  131. data/rdoc/NEAT/BasicNeuronTypes/BiasNeuron.html +265 -0
  132. data/rdoc/NEAT/BasicNeuronTypes/CosineNeuron.html +162 -0
  133. data/rdoc/NEAT/BasicNeuronTypes/InputNeuron.html +206 -0
  134. data/rdoc/NEAT/BasicNeuronTypes/SigmoidNeuron.html +162 -0
  135. data/rdoc/NEAT/BasicNeuronTypes/SineNeuron.html +162 -0
  136. data/rdoc/NEAT/BasicNeuronTypes/TanhNeuron.html +161 -0
  137. data/rdoc/NEAT/BasicNeuronTypes.html +107 -0
  138. data/rdoc/NEAT/Controller/NeatSettings.html +880 -0
  139. data/rdoc/NEAT/Controller.html +729 -0
  140. data/rdoc/NEAT/Critter/Genotype/Gene.html +457 -0
  141. data/rdoc/NEAT/Critter/Genotype.html +735 -0
  142. data/rdoc/NEAT/Critter/Phenotype.html +330 -0
  143. data/rdoc/NEAT/Critter.html +489 -0
  144. data/rdoc/NEAT/DSL.html +729 -0
  145. data/rdoc/NEAT/Evaluator.html +256 -0
  146. data/rdoc/NEAT/Evolver/CritterOp.html +349 -0
  147. data/rdoc/NEAT/Evolver.html +891 -0
  148. data/rdoc/NEAT/Expressor.html +402 -0
  149. data/rdoc/NEAT/Graph/DependencyResolver.html +291 -0
  150. data/rdoc/NEAT/Graph/GraphException.html +105 -0
  151. data/rdoc/NEAT/Graph.html +263 -0
  152. data/rdoc/NEAT/NeatException.html +105 -0
  153. data/rdoc/NEAT/NeatOb.html +325 -0
  154. data/rdoc/NEAT/Neuron.html +481 -0
  155. data/rdoc/NEAT/Operator.html +109 -0
  156. data/rdoc/NEAT/Population.html +935 -0
  157. data/rdoc/NEAT/Trait.html +117 -0
  158. data/rdoc/NEAT.html +422 -0
  159. data/rdoc/Object.html +384 -0
  160. data/rdoc/Phi.html +98 -0
  161. data/rdoc/Player.html +383 -0
  162. data/rdoc/Rakefile.html +254 -0
  163. data/rdoc/RubyNEAT/Application.html +105 -0
  164. data/rdoc/RubyNEAT.html +98 -0
  165. data/rdoc/SDL/Event2.html +98 -0
  166. data/rdoc/SDL.html +98 -0
  167. data/rdoc/Vector.html +195 -0
  168. data/rdoc/created.rid +125 -0
  169. data/rdoc/doc/ControllerPoint_html.html +299 -0
  170. data/rdoc/doc/CuteA_html.html +438 -0
  171. data/rdoc/doc/CuteB_html.html +436 -0
  172. data/rdoc/doc/DSL_html.html +992 -0
  173. data/rdoc/doc/NEAT/BasicNeuronTypes/BiasNeuron_html.html +617 -0
  174. data/rdoc/doc/NEAT/BasicNeuronTypes/CosineNeuron_html.html +413 -0
  175. data/rdoc/doc/NEAT/BasicNeuronTypes/InputNeuron_html.html +498 -0
  176. data/rdoc/doc/NEAT/BasicNeuronTypes/SigmoidNeuron_html.html +413 -0
  177. data/rdoc/doc/NEAT/BasicNeuronTypes/SineNeuron_html.html +413 -0
  178. data/rdoc/doc/NEAT/BasicNeuronTypes/TanhNeuron_html.html +412 -0
  179. data/rdoc/doc/NEAT/BasicNeuronTypes_html.html +310 -0
  180. data/rdoc/doc/NEAT/Controller/NeatSettings_html.html +3324 -0
  181. data/rdoc/doc/NEAT/Controller_html.html +2212 -0
  182. data/rdoc/doc/NEAT/Critter/Genotype/Gene_html.html +997 -0
  183. data/rdoc/doc/NEAT/Critter/Genotype_html.html +1556 -0
  184. data/rdoc/doc/NEAT/Critter/Phenotype_html.html +687 -0
  185. data/rdoc/doc/NEAT/Critter_html.html +1037 -0
  186. data/rdoc/doc/NEAT/DSL_html.html +1349 -0
  187. data/rdoc/doc/NEAT/Evaluator_html.html +556 -0
  188. data/rdoc/doc/NEAT/Evolver/CritterOp_html.html +690 -0
  189. data/rdoc/doc/NEAT/Evolver_html.html +677 -0
  190. data/rdoc/doc/NEAT/Expressor_html.html +468 -0
  191. data/rdoc/doc/NEAT/Graph/DependencyResolver_html.html +598 -0
  192. data/rdoc/doc/NEAT/Graph/GraphException_html.html +299 -0
  193. data/rdoc/doc/NEAT/Graph_html.html +527 -0
  194. data/rdoc/doc/NEAT/NeatException_html.html +299 -0
  195. data/rdoc/doc/NEAT/NeatOb_html.html +671 -0
  196. data/rdoc/doc/NEAT/Neuron_html.html +1095 -0
  197. data/rdoc/doc/NEAT/Operator_html.html +337 -0
  198. data/rdoc/doc/NEAT/Population_html.html +1795 -0
  199. data/rdoc/doc/NEAT/Trait_html.html +344 -0
  200. data/rdoc/doc/NEAT_html.html +736 -0
  201. data/rdoc/doc/_index_html.html +559 -0
  202. data/rdoc/doc/class_list_html.html +369 -0
  203. data/rdoc/doc/css/common_css.html +188 -0
  204. data/rdoc/doc/css/full_list_css.html +243 -0
  205. data/rdoc/doc/css/style_css.html +530 -0
  206. data/rdoc/doc/file_list_html.html +240 -0
  207. data/rdoc/doc/frames_html.html +217 -0
  208. data/rdoc/doc/index_html.html +559 -0
  209. data/rdoc/doc/js/app_js.html +423 -0
  210. data/rdoc/doc/js/full_list_js.html +372 -0
  211. data/rdoc/doc/js/jquery_js.html +1536 -0
  212. data/rdoc/doc/method_list_html.html +1375 -0
  213. data/rdoc/doc/top-level-namespace_html.html +317 -0
  214. data/rdoc/fonts/Lato-Light.ttf +0 -0
  215. data/rdoc/fonts/Lato-LightItalic.ttf +0 -0
  216. data/rdoc/fonts/Lato-Regular.ttf +0 -0
  217. data/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
  218. data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
  219. data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
  220. data/rdoc/fonts.css +167 -0
  221. data/rdoc/images/add.png +0 -0
  222. data/rdoc/images/arrow_up.png +0 -0
  223. data/rdoc/images/brick.png +0 -0
  224. data/rdoc/images/brick_link.png +0 -0
  225. data/rdoc/images/bug.png +0 -0
  226. data/rdoc/images/bullet_black.png +0 -0
  227. data/rdoc/images/bullet_toggle_minus.png +0 -0
  228. data/rdoc/images/bullet_toggle_plus.png +0 -0
  229. data/rdoc/images/date.png +0 -0
  230. data/rdoc/images/delete.png +0 -0
  231. data/rdoc/images/find.png +0 -0
  232. data/rdoc/images/loadingAnimation.gif +0 -0
  233. data/rdoc/images/macFFBgHack.png +0 -0
  234. data/rdoc/images/package.png +0 -0
  235. data/rdoc/images/page_green.png +0 -0
  236. data/rdoc/images/page_white_text.png +0 -0
  237. data/rdoc/images/page_white_width.png +0 -0
  238. data/rdoc/images/plugin.png +0 -0
  239. data/rdoc/images/ruby.png +0 -0
  240. data/rdoc/images/tag_blue.png +0 -0
  241. data/rdoc/images/tag_green.png +0 -0
  242. data/rdoc/images/transparent.png +0 -0
  243. data/rdoc/images/wrench.png +0 -0
  244. data/rdoc/images/wrench_orange.png +0 -0
  245. data/rdoc/images/zoom.png +0 -0
  246. data/rdoc/index.html +282 -0
  247. data/rdoc/js/darkfish.js +140 -0
  248. data/rdoc/js/jquery.js +18 -0
  249. data/rdoc/js/navigation.js +142 -0
  250. data/rdoc/js/search.js +109 -0
  251. data/rdoc/js/search_index.js +1 -0
  252. data/rdoc/js/searcher.js +228 -0
  253. data/rdoc/rdoc.css +580 -0
  254. data/rdoc/rubyneat_gemspec.html +387 -0
  255. data/rdoc/table_of_contents.html +2502 -0
  256. data/rdoc/xordebug_log.html +170598 -0
  257. data/rdoc/xorsin_log.html +22569 -0
  258. data/rubyneat.gemspec +347 -0
  259. data/rubyneat.gemspec.orig +375 -0
  260. data/spec/lib/rubyneat/rubyneat_spec.rb +132 -0
  261. 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