rubyneat 0.3.5.alpha.3 → 0.3.5.alpha.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/.semver +1 -1
  3. data/Gemfile +19 -19
  4. data/Gemfile.lock +39 -33
  5. data/README.md +66 -0
  6. data/Rakefile +19 -2
  7. data/bin/neat +4 -60
  8. data/lib/rubyneat/cli.rb +5 -0
  9. data/lib/rubyneat/cli/generate.rb +131 -0
  10. data/lib/rubyneat/cli/main.rb +54 -0
  11. data/lib/rubyneat/cli/templates/generate/Gemfile.tt +17 -0
  12. data/lib/rubyneat/cli/templates/generate/README.md.tt +1 -0
  13. data/lib/rubyneat/cli/templates/generate/bin/neat.tt +14 -0
  14. data/{neater/xor_neat.rb → lib/rubyneat/cli/templates/generate/neater.tt} +7 -22
  15. data/rubyneat.gemspec +73 -297
  16. data/rubyneat.gemspec.orig +384 -0
  17. metadata +76 -292
  18. data/.idea/.name +0 -1
  19. data/.idea/.rakeTasks +0 -7
  20. data/.idea/dictionaries/trader.xml +0 -3
  21. data/.idea/encodings.xml +0 -5
  22. data/.idea/misc.xml +0 -5
  23. data/.idea/modules.xml +0 -9
  24. data/.idea/rubyneat.iml +0 -198
  25. data/.idea/runConfigurations/invpend_neat.xml +0 -26
  26. data/.idea/runConfigurations/sigdebug_neat.xml +0 -24
  27. data/.idea/runConfigurations/xor_neat.xml +0 -26
  28. data/.idea/runConfigurations/xordebug_neat.xml +0 -24
  29. data/.idea/runConfigurations/xorsin_neat.xml +0 -24
  30. data/.idea/scopes/scope_settings.xml +0 -5
  31. data/.idea/vcs.xml +0 -7
  32. data/.idea/workspace.xml +0 -1151
  33. data/.yardoc/checksums +0 -11
  34. data/.yardoc/object_types +0 -0
  35. data/.yardoc/objects/root.dat +0 -0
  36. data/.yardoc/proxy_types +0 -0
  37. data/Guardfile +0 -8
  38. data/doc/ControllerPoint.html +0 -125
  39. data/doc/CuteA.html +0 -286
  40. data/doc/CuteB.html +0 -297
  41. data/doc/DSL.html +0 -883
  42. data/doc/NEAT.html +0 -588
  43. data/doc/NEAT/BasicNeuronTypes.html +0 -136
  44. data/doc/NEAT/BasicNeuronTypes/BiasNeuron.html +0 -518
  45. data/doc/NEAT/BasicNeuronTypes/CosineNeuron.html +0 -274
  46. data/doc/NEAT/BasicNeuronTypes/InputNeuron.html +0 -366
  47. data/doc/NEAT/BasicNeuronTypes/SigmoidNeuron.html +0 -275
  48. data/doc/NEAT/BasicNeuronTypes/SineNeuron.html +0 -274
  49. data/doc/NEAT/BasicNeuronTypes/TanhNeuron.html +0 -274
  50. data/doc/NEAT/Controller.html +0 -2490
  51. data/doc/NEAT/Controller/NeatSettings.html +0 -3985
  52. data/doc/NEAT/Critter.html +0 -1037
  53. data/doc/NEAT/Critter/Genotype.html +0 -1601
  54. data/doc/NEAT/Critter/Genotype/Gene.html +0 -979
  55. data/doc/NEAT/Critter/Phenotype.html +0 -603
  56. data/doc/NEAT/DSL.html +0 -1255
  57. data/doc/NEAT/Evaluator.html +0 -420
  58. data/doc/NEAT/Evolver.html +0 -602
  59. data/doc/NEAT/Evolver/CritterOp.html +0 -551
  60. data/doc/NEAT/Expressor.html +0 -327
  61. data/doc/NEAT/Graph.html +0 -402
  62. data/doc/NEAT/Graph/DependencyResolver.html +0 -478
  63. data/doc/NEAT/Graph/GraphException.html +0 -123
  64. data/doc/NEAT/NeatException.html +0 -123
  65. data/doc/NEAT/NeatOb.html +0 -567
  66. data/doc/NEAT/Neuron.html +0 -1067
  67. data/doc/NEAT/Operator.html +0 -162
  68. data/doc/NEAT/Population.html +0 -1961
  69. data/doc/NEAT/Trait.html +0 -169
  70. data/doc/_index.html +0 -373
  71. data/doc/class_list.html +0 -54
  72. data/doc/css/common.css +0 -1
  73. data/doc/css/full_list.css +0 -57
  74. data/doc/css/style.css +0 -339
  75. data/doc/file_list.html +0 -53
  76. data/doc/frames.html +0 -26
  77. data/doc/index.html +0 -373
  78. data/doc/js/app.js +0 -219
  79. data/doc/js/full_list.js +0 -178
  80. data/doc/js/jquery.js +0 -4
  81. data/doc/method_list.html +0 -1415
  82. data/doc/top-level-namespace.html +0 -164
  83. data/foo/foo_aquarium_example.rb +0 -38
  84. data/foo/foo_gosu.rb +0 -99
  85. data/foo/foo_rubygoo.rb +0 -104
  86. data/foo/foo_sdl.rb +0 -34
  87. data/foo/icon.png +0 -0
  88. data/neater/invpend_neat.rb +0 -150
  89. data/neater/rnlib/inverted_pendulum.rb +0 -380
  90. data/neater/rnlib/xor.rb +0 -10
  91. data/neater/sigdebug_neat.rb +0 -136
  92. data/neater/xoranalog_neat.rb +0 -138
  93. data/neater/xorsin_neat.rb +0 -143
  94. data/projectFilesBackup/.idea/rubyneat.iml +0 -180
  95. data/public/.directory +0 -4
  96. data/public/background.png +0 -0
  97. data/public/background.xcf +0 -0
  98. data/public/cart.png +0 -0
  99. data/public/cart.xcf +0 -0
  100. data/public/metalpoles_molton_ball_l.jpg +0 -0
  101. data/public/old_background.png +0 -0
  102. data/public/pointer.png +0 -0
  103. data/public/pointer.xcf +0 -0
  104. data/public/pole.kra +0 -0
  105. data/public/pole.png +0 -0
  106. data/public/pole.xcf +0 -0
  107. data/public/wheel-of-year-stone-DD-131-WOYS.jpg +0 -0
  108. data/public/wheel.png +0 -0
  109. data/public/wheel.xcf +0 -0
  110. data/public/wood-planks-texture.jpg +0 -0
  111. data/rdoc/ControllerPoint.html +0 -116
  112. data/rdoc/CuteA.html +0 -177
  113. data/rdoc/CuteB.html +0 -178
  114. data/rdoc/DSLSetup.html +0 -177
  115. data/rdoc/GameTestWindow.html +0 -242
  116. data/rdoc/GameWindow.html +0 -292
  117. data/rdoc/Gemfile.html +0 -215
  118. data/rdoc/Gemfile_lock.html +0 -327
  119. data/rdoc/GraphTest.html +0 -210
  120. data/rdoc/Guardfile.html +0 -198
  121. data/rdoc/InvertedPendulum.html +0 -198
  122. data/rdoc/InvertedPendulum/Cart.html +0 -668
  123. data/rdoc/InvertedPendulum/DSL.html +0 -259
  124. data/rdoc/InvertedPendulum/InvPendWindow.html +0 -402
  125. data/rdoc/Logger.html +0 -98
  126. data/rdoc/NEAT.html +0 -422
  127. data/rdoc/NEAT/BasicNeuronTypes.html +0 -107
  128. data/rdoc/NEAT/BasicNeuronTypes/BiasNeuron.html +0 -265
  129. data/rdoc/NEAT/BasicNeuronTypes/CosineNeuron.html +0 -162
  130. data/rdoc/NEAT/BasicNeuronTypes/InputNeuron.html +0 -206
  131. data/rdoc/NEAT/BasicNeuronTypes/SigmoidNeuron.html +0 -162
  132. data/rdoc/NEAT/BasicNeuronTypes/SineNeuron.html +0 -162
  133. data/rdoc/NEAT/BasicNeuronTypes/TanhNeuron.html +0 -161
  134. data/rdoc/NEAT/Controller.html +0 -729
  135. data/rdoc/NEAT/Controller/NeatSettings.html +0 -880
  136. data/rdoc/NEAT/Critter.html +0 -489
  137. data/rdoc/NEAT/Critter/Genotype.html +0 -735
  138. data/rdoc/NEAT/Critter/Genotype/Gene.html +0 -457
  139. data/rdoc/NEAT/Critter/Phenotype.html +0 -330
  140. data/rdoc/NEAT/DSL.html +0 -729
  141. data/rdoc/NEAT/Evaluator.html +0 -256
  142. data/rdoc/NEAT/Evolver.html +0 -891
  143. data/rdoc/NEAT/Evolver/CritterOp.html +0 -349
  144. data/rdoc/NEAT/Expressor.html +0 -402
  145. data/rdoc/NEAT/Graph.html +0 -263
  146. data/rdoc/NEAT/Graph/DependencyResolver.html +0 -291
  147. data/rdoc/NEAT/Graph/GraphException.html +0 -105
  148. data/rdoc/NEAT/NeatException.html +0 -105
  149. data/rdoc/NEAT/NeatOb.html +0 -325
  150. data/rdoc/NEAT/Neuron.html +0 -481
  151. data/rdoc/NEAT/Operator.html +0 -109
  152. data/rdoc/NEAT/Population.html +0 -935
  153. data/rdoc/NEAT/Trait.html +0 -117
  154. data/rdoc/Object.html +0 -384
  155. data/rdoc/Phi.html +0 -98
  156. data/rdoc/Player.html +0 -383
  157. data/rdoc/Rakefile.html +0 -254
  158. data/rdoc/RubyNEAT.html +0 -98
  159. data/rdoc/RubyNEAT/Application.html +0 -105
  160. data/rdoc/SDL.html +0 -98
  161. data/rdoc/SDL/Event2.html +0 -98
  162. data/rdoc/Vector.html +0 -195
  163. data/rdoc/created.rid +0 -125
  164. data/rdoc/doc/ControllerPoint_html.html +0 -299
  165. data/rdoc/doc/CuteA_html.html +0 -438
  166. data/rdoc/doc/CuteB_html.html +0 -436
  167. data/rdoc/doc/DSL_html.html +0 -992
  168. data/rdoc/doc/NEAT/BasicNeuronTypes/BiasNeuron_html.html +0 -617
  169. data/rdoc/doc/NEAT/BasicNeuronTypes/CosineNeuron_html.html +0 -413
  170. data/rdoc/doc/NEAT/BasicNeuronTypes/InputNeuron_html.html +0 -498
  171. data/rdoc/doc/NEAT/BasicNeuronTypes/SigmoidNeuron_html.html +0 -413
  172. data/rdoc/doc/NEAT/BasicNeuronTypes/SineNeuron_html.html +0 -413
  173. data/rdoc/doc/NEAT/BasicNeuronTypes/TanhNeuron_html.html +0 -412
  174. data/rdoc/doc/NEAT/BasicNeuronTypes_html.html +0 -310
  175. data/rdoc/doc/NEAT/Controller/NeatSettings_html.html +0 -3324
  176. data/rdoc/doc/NEAT/Controller_html.html +0 -2212
  177. data/rdoc/doc/NEAT/Critter/Genotype/Gene_html.html +0 -997
  178. data/rdoc/doc/NEAT/Critter/Genotype_html.html +0 -1556
  179. data/rdoc/doc/NEAT/Critter/Phenotype_html.html +0 -687
  180. data/rdoc/doc/NEAT/Critter_html.html +0 -1037
  181. data/rdoc/doc/NEAT/DSL_html.html +0 -1349
  182. data/rdoc/doc/NEAT/Evaluator_html.html +0 -556
  183. data/rdoc/doc/NEAT/Evolver/CritterOp_html.html +0 -690
  184. data/rdoc/doc/NEAT/Evolver_html.html +0 -677
  185. data/rdoc/doc/NEAT/Expressor_html.html +0 -468
  186. data/rdoc/doc/NEAT/Graph/DependencyResolver_html.html +0 -598
  187. data/rdoc/doc/NEAT/Graph/GraphException_html.html +0 -299
  188. data/rdoc/doc/NEAT/Graph_html.html +0 -527
  189. data/rdoc/doc/NEAT/NeatException_html.html +0 -299
  190. data/rdoc/doc/NEAT/NeatOb_html.html +0 -671
  191. data/rdoc/doc/NEAT/Neuron_html.html +0 -1095
  192. data/rdoc/doc/NEAT/Operator_html.html +0 -337
  193. data/rdoc/doc/NEAT/Population_html.html +0 -1795
  194. data/rdoc/doc/NEAT/Trait_html.html +0 -344
  195. data/rdoc/doc/NEAT_html.html +0 -736
  196. data/rdoc/doc/_index_html.html +0 -559
  197. data/rdoc/doc/class_list_html.html +0 -369
  198. data/rdoc/doc/css/common_css.html +0 -188
  199. data/rdoc/doc/css/full_list_css.html +0 -243
  200. data/rdoc/doc/css/style_css.html +0 -530
  201. data/rdoc/doc/file_list_html.html +0 -240
  202. data/rdoc/doc/frames_html.html +0 -217
  203. data/rdoc/doc/index_html.html +0 -559
  204. data/rdoc/doc/js/app_js.html +0 -423
  205. data/rdoc/doc/js/full_list_js.html +0 -372
  206. data/rdoc/doc/js/jquery_js.html +0 -1536
  207. data/rdoc/doc/method_list_html.html +0 -1375
  208. data/rdoc/doc/top-level-namespace_html.html +0 -317
  209. data/rdoc/fonts.css +0 -167
  210. data/rdoc/fonts/Lato-Light.ttf +0 -0
  211. data/rdoc/fonts/Lato-LightItalic.ttf +0 -0
  212. data/rdoc/fonts/Lato-Regular.ttf +0 -0
  213. data/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
  214. data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
  215. data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
  216. data/rdoc/images/add.png +0 -0
  217. data/rdoc/images/arrow_up.png +0 -0
  218. data/rdoc/images/brick.png +0 -0
  219. data/rdoc/images/brick_link.png +0 -0
  220. data/rdoc/images/bug.png +0 -0
  221. data/rdoc/images/bullet_black.png +0 -0
  222. data/rdoc/images/bullet_toggle_minus.png +0 -0
  223. data/rdoc/images/bullet_toggle_plus.png +0 -0
  224. data/rdoc/images/date.png +0 -0
  225. data/rdoc/images/delete.png +0 -0
  226. data/rdoc/images/find.png +0 -0
  227. data/rdoc/images/loadingAnimation.gif +0 -0
  228. data/rdoc/images/macFFBgHack.png +0 -0
  229. data/rdoc/images/package.png +0 -0
  230. data/rdoc/images/page_green.png +0 -0
  231. data/rdoc/images/page_white_text.png +0 -0
  232. data/rdoc/images/page_white_width.png +0 -0
  233. data/rdoc/images/plugin.png +0 -0
  234. data/rdoc/images/ruby.png +0 -0
  235. data/rdoc/images/tag_blue.png +0 -0
  236. data/rdoc/images/tag_green.png +0 -0
  237. data/rdoc/images/transparent.png +0 -0
  238. data/rdoc/images/wrench.png +0 -0
  239. data/rdoc/images/wrench_orange.png +0 -0
  240. data/rdoc/images/zoom.png +0 -0
  241. data/rdoc/index.html +0 -282
  242. data/rdoc/js/darkfish.js +0 -140
  243. data/rdoc/js/jquery.js +0 -18
  244. data/rdoc/js/navigation.js +0 -142
  245. data/rdoc/js/search.js +0 -109
  246. data/rdoc/js/search_index.js +0 -1
  247. data/rdoc/js/searcher.js +0 -228
  248. data/rdoc/rdoc.css +0 -580
  249. data/rdoc/rubyneat_gemspec.html +0 -387
  250. data/rdoc/table_of_contents.html +0 -2502
  251. data/rdoc/xordebug_log.html +0 -170598
  252. data/rdoc/xorsin_log.html +0 -22569
@@ -0,0 +1,54 @@
1
+ require 'rubyneat/cli/generate'
2
+
3
+ module RubyNEAT
4
+ module Cli
5
+
6
+ class List < Thor
7
+ desc 'neaters', 'List all Neaters.'
8
+ def neaters
9
+ Dir.glob(NEATGLOB).sort.each do |ne|
10
+ puts 'neat runeater ' + File.basename(ne).gsub(%r{_neat\.rb}, '')
11
+ end
12
+ end
13
+
14
+ desc 'neurons', 'List all Neurons.'
15
+ def neurons
16
+ puts NEAT::Neuron.neuron_types.map{|n| n.name }.sort.join "\n"
17
+ end
18
+ end
19
+
20
+ class Main < Thor
21
+ class_option :verbose, type: :numeric, banner: '[1|2|3]', aliases: '-v'
22
+
23
+ desc 'list <type>', 'List the requested type.'
24
+ subcommand 'list', List
25
+
26
+ desc 'generate <generator>', 'Generators'
27
+ subcommand 'generate', Generate
28
+
29
+ desc 'version', 'Display RubyNEAT version'
30
+ def version
31
+ puts SemVer.find.format "%M.%m.%p%s"
32
+ end
33
+
34
+ desc 'console', 'Run RubyNEAT interactively'
35
+ def console
36
+ #TODO: Finish the console
37
+ puts "Not Implemented Yet."
38
+ end
39
+
40
+ desc 'runeater <neater> [<neater> <neater> ...] [OPTS]', 'Run a Neater'
41
+ option :log, type: :string, banner: 'info|warn|debug|error'
42
+ def runeater(*neaters)
43
+ NEAT::controller.verbosity = options[:verbose].to_i if options[:verbose]
44
+ eval %{$log.level = Logger::#{options[:log].upcase}} if options[:log]
45
+
46
+ neaters.map do |neater|
47
+ "#{neater}_neat.rb"
48
+ end.each do |file|
49
+ load file
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,17 @@
1
+ # Gemfile for your RubyNEAT <%= name.camel_case %> project.
2
+ source 'https://rubygems.org'
3
+
4
+ ruby '<%= ruby.version %>'
5
+
6
+ # For demo purposes, we include the gosu library, but if you don't
7
+ # need this, then comment it out or remove it.
8
+ gem 'gosu', require: false
9
+
10
+ # So you can create pretty charts and graphs of
11
+ # your RubyNEAT progress, etc. Feel free to remove
12
+ # this if you don't need it.
13
+ gem 'rubyvis', require: false
14
+
15
+ group :development do
16
+ gem 'debugger'
17
+ end
@@ -0,0 +1 @@
1
+ <%= name.camel_case %> NEAT project
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'thor'
4
+ require 'semver'
5
+
6
+ # Be sure rnlib is added to the library path
7
+ neatpath = File.expand_path '..', File.dirname(__FILE__)
8
+ %w{ lib neater neater/rnlib }.each do |dir|
9
+ $:.unshift File.join([neatpath, dir])
10
+ end
11
+
12
+ require 'rubyneat/cli'
13
+
14
+ RubyNEAT::Cli::Main.start
@@ -1,31 +1,16 @@
1
- #!/usr/bin/env neat
2
1
  require 'rubyneat/dsl'
3
- require 'xor'
4
-
5
2
  include NEAT::DSL
6
3
 
7
- #= TEST FOR RubyNEAT
8
-
9
- # The number of inputs to the xor function
10
- XOR_INPUTS = 2
11
- XOR_STATES = 2 ** XOR_INPUTS
12
- MAX_FIT = XOR_STATES
13
- ALMOST_FIT = XOR_STATES - 0.5
14
-
15
4
  # This defines the controller
16
- define "XOR System" do
5
+ define "<%= description %>" do
17
6
  # Define the IO neurons
18
- inputs {
19
- cinv = Hash[(1..XOR_INPUTS).map{|i| [("i%s" % i).to_sym, InputNeuron]}]
20
- cinv[:bias] = BiasNeuron
21
- cinv
22
- }
23
- outputs out: TanhNeuron
7
+ inputs <%= inputs.map {|name, klass| "#{name}: #{klass}"}.join(', ') %>
8
+ outputs <%= outputs.map {|name, klass| "#{name}: #{klass}"}.join(', ') %>
24
9
 
25
- # Hidden neuron specification is optional.
10
+ # Hidden neuron specification is optional.
26
11
  # The name given here is largely meaningless, but may be useful as some sort
27
12
  # of unique flag.
28
- hidden tan: TanhNeuron
13
+ hidden <%= name='hid0'; hidden.map {|klass| name.next!; "#{name}: #{klass}"}.join(', ') %>
29
14
 
30
15
  ### Settings
31
16
  ## General
@@ -79,7 +64,7 @@ end
79
64
 
80
65
  evolve do
81
66
  # This query shall return a vector result that will serve
82
- # as the inputs to the critter.
67
+ # as the inputs to the critter.
83
68
  query { |seq|
84
69
  # We'll use the seq to create the xor sequences via
85
70
  # the least signficant bits.
@@ -133,5 +118,5 @@ end
133
118
  # The block here is called upon the completion of each generation
134
119
  run_engine do |c|
135
120
  $log.info "******** Run of generation %s completed, history count %d ********" %
136
- [c.generation_num, c.population_history.size]
121
+ [c.generation_num, c.population_history.size]
137
122
  end
data/rubyneat.gemspec CHANGED
@@ -2,98 +2,39 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: rubyneat 0.3.5.alpha.3 ruby lib
5
+ # stub: rubyneat 0.3.5.alpha.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rubyneat"
9
- s.version = "0.3.5.alpha.3"
9
+ s.version = "0.3.5.alpha.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Fred Mitchell"]
14
- s.date = "2014-04-14"
15
- s.description = "\n NEAT Algorithm for Ruby.\n "
14
+ s.date = "2014-04-19"
15
+ s.description = "\n RubyNEAT -- Neural Evolution of Augmenting Topologies for Ruby.\n By way of an enhanced form of Genetic Algorithms -- the NEAT algorithm,\n populations of neural nets are evolved to handle pre-defined goals.\n\n RubyNEAT is the first implementation of the NEAT algorithm for Ruby, and\n it leverages Ruby's power to implement the NEAT algorithm in a way that would\n be difficult to do in other languages. The 'activation function' is largely\n standalone. Basically, activation is achieved by functional programming.\n\n Meaning, once your network is evolved, you can extract it as source code you\n can then utilize without the RubyNEAT engine.\n\n RubyNEAT can be used for nearly any Machine Learning task you can dream of,\n because it's also extensible and modular. See http://rubyneat.com for the\n details.\n "
16
16
  s.email = "fred@lrcsoft.com"
17
17
  s.executables = ["neat"]
18
+ s.extra_rdoc_files = [
19
+ "README.md"
20
+ ]
18
21
  s.files = [
19
22
  ".directory",
20
- ".idea/.name",
21
- ".idea/.rakeTasks",
22
- ".idea/dictionaries/trader.xml",
23
- ".idea/encodings.xml",
24
- ".idea/misc.xml",
25
- ".idea/modules.xml",
26
- ".idea/rubyneat.iml",
27
- ".idea/runConfigurations/invpend_neat.xml",
28
- ".idea/runConfigurations/sigdebug_neat.xml",
29
- ".idea/runConfigurations/xor_neat.xml",
30
- ".idea/runConfigurations/xordebug_neat.xml",
31
- ".idea/runConfigurations/xorsin_neat.xml",
32
- ".idea/scopes/scope_settings.xml",
33
- ".idea/vcs.xml",
34
- ".idea/workspace.xml",
35
23
  ".semver",
36
- ".yardoc/checksums",
37
- ".yardoc/object_types",
38
- ".yardoc/objects/root.dat",
39
- ".yardoc/proxy_types",
40
24
  "Gemfile",
41
25
  "Gemfile.lock",
42
- "Guardfile",
26
+ "README.md",
43
27
  "Rakefile",
44
28
  "bin/neat",
45
29
  "config/application.rb",
46
- "doc/ControllerPoint.html",
47
- "doc/CuteA.html",
48
- "doc/CuteB.html",
49
- "doc/DSL.html",
50
- "doc/NEAT.html",
51
- "doc/NEAT/BasicNeuronTypes.html",
52
- "doc/NEAT/BasicNeuronTypes/BiasNeuron.html",
53
- "doc/NEAT/BasicNeuronTypes/CosineNeuron.html",
54
- "doc/NEAT/BasicNeuronTypes/InputNeuron.html",
55
- "doc/NEAT/BasicNeuronTypes/SigmoidNeuron.html",
56
- "doc/NEAT/BasicNeuronTypes/SineNeuron.html",
57
- "doc/NEAT/BasicNeuronTypes/TanhNeuron.html",
58
- "doc/NEAT/Controller.html",
59
- "doc/NEAT/Controller/NeatSettings.html",
60
- "doc/NEAT/Critter.html",
61
- "doc/NEAT/Critter/Genotype.html",
62
- "doc/NEAT/Critter/Genotype/Gene.html",
63
- "doc/NEAT/Critter/Phenotype.html",
64
- "doc/NEAT/DSL.html",
65
- "doc/NEAT/Evaluator.html",
66
- "doc/NEAT/Evolver.html",
67
- "doc/NEAT/Evolver/CritterOp.html",
68
- "doc/NEAT/Expressor.html",
69
- "doc/NEAT/Graph.html",
70
- "doc/NEAT/Graph/DependencyResolver.html",
71
- "doc/NEAT/Graph/GraphException.html",
72
- "doc/NEAT/NeatException.html",
73
- "doc/NEAT/NeatOb.html",
74
- "doc/NEAT/Neuron.html",
75
- "doc/NEAT/Operator.html",
76
- "doc/NEAT/Population.html",
77
- "doc/NEAT/Trait.html",
78
- "doc/_index.html",
79
- "doc/class_list.html",
80
- "doc/css/common.css",
81
- "doc/css/full_list.css",
82
- "doc/css/style.css",
83
- "doc/file_list.html",
84
- "doc/frames.html",
85
- "doc/index.html",
86
- "doc/js/app.js",
87
- "doc/js/full_list.js",
88
- "doc/js/jquery.js",
89
- "doc/method_list.html",
90
- "doc/top-level-namespace.html",
91
- "foo/foo_aquarium_example.rb",
92
- "foo/foo_gosu.rb",
93
- "foo/foo_rubygoo.rb",
94
- "foo/foo_sdl.rb",
95
- "foo/icon.png",
96
30
  "lib/rubyneat.rb",
31
+ "lib/rubyneat/cli.rb",
32
+ "lib/rubyneat/cli/generate.rb",
33
+ "lib/rubyneat/cli/main.rb",
34
+ "lib/rubyneat/cli/templates/generate/Gemfile.tt",
35
+ "lib/rubyneat/cli/templates/generate/README.md.tt",
36
+ "lib/rubyneat/cli/templates/generate/bin/neat.tt",
37
+ "lib/rubyneat/cli/templates/generate/neater.tt",
97
38
  "lib/rubyneat/critter.rb",
98
39
  "lib/rubyneat/default_neat.rb",
99
40
  "lib/rubyneat/dsl.rb",
@@ -104,173 +45,8 @@ Gem::Specification.new do |s|
104
45
  "lib/rubyneat/neuron.rb",
105
46
  "lib/rubyneat/population.rb",
106
47
  "lib/rubyneat/rubyneat.rb",
107
- "neater/invpend_neat.rb",
108
- "neater/rnlib/inverted_pendulum.rb",
109
- "neater/rnlib/xor.rb",
110
- "neater/sigdebug_neat.rb",
111
- "neater/xor_neat.rb",
112
- "neater/xoranalog_neat.rb",
113
- "neater/xorsin_neat.rb",
114
- "projectFilesBackup/.idea/rubyneat.iml",
115
- "public/.directory",
116
- "public/background.png",
117
- "public/background.xcf",
118
- "public/cart.png",
119
- "public/cart.xcf",
120
- "public/metalpoles_molton_ball_l.jpg",
121
- "public/old_background.png",
122
- "public/pointer.png",
123
- "public/pointer.xcf",
124
- "public/pole.kra",
125
- "public/pole.png",
126
- "public/pole.xcf",
127
- "public/wheel-of-year-stone-DD-131-WOYS.jpg",
128
- "public/wheel.png",
129
- "public/wheel.xcf",
130
- "public/wood-planks-texture.jpg",
131
- "rdoc/ControllerPoint.html",
132
- "rdoc/CuteA.html",
133
- "rdoc/CuteB.html",
134
- "rdoc/DSLSetup.html",
135
- "rdoc/GameTestWindow.html",
136
- "rdoc/GameWindow.html",
137
- "rdoc/Gemfile.html",
138
- "rdoc/Gemfile_lock.html",
139
- "rdoc/GraphTest.html",
140
- "rdoc/Guardfile.html",
141
- "rdoc/InvertedPendulum.html",
142
- "rdoc/InvertedPendulum/Cart.html",
143
- "rdoc/InvertedPendulum/DSL.html",
144
- "rdoc/InvertedPendulum/InvPendWindow.html",
145
- "rdoc/Logger.html",
146
- "rdoc/NEAT.html",
147
- "rdoc/NEAT/BasicNeuronTypes.html",
148
- "rdoc/NEAT/BasicNeuronTypes/BiasNeuron.html",
149
- "rdoc/NEAT/BasicNeuronTypes/CosineNeuron.html",
150
- "rdoc/NEAT/BasicNeuronTypes/InputNeuron.html",
151
- "rdoc/NEAT/BasicNeuronTypes/SigmoidNeuron.html",
152
- "rdoc/NEAT/BasicNeuronTypes/SineNeuron.html",
153
- "rdoc/NEAT/BasicNeuronTypes/TanhNeuron.html",
154
- "rdoc/NEAT/Controller.html",
155
- "rdoc/NEAT/Controller/NeatSettings.html",
156
- "rdoc/NEAT/Critter.html",
157
- "rdoc/NEAT/Critter/Genotype.html",
158
- "rdoc/NEAT/Critter/Genotype/Gene.html",
159
- "rdoc/NEAT/Critter/Phenotype.html",
160
- "rdoc/NEAT/DSL.html",
161
- "rdoc/NEAT/Evaluator.html",
162
- "rdoc/NEAT/Evolver.html",
163
- "rdoc/NEAT/Evolver/CritterOp.html",
164
- "rdoc/NEAT/Expressor.html",
165
- "rdoc/NEAT/Graph.html",
166
- "rdoc/NEAT/Graph/DependencyResolver.html",
167
- "rdoc/NEAT/Graph/GraphException.html",
168
- "rdoc/NEAT/NeatException.html",
169
- "rdoc/NEAT/NeatOb.html",
170
- "rdoc/NEAT/Neuron.html",
171
- "rdoc/NEAT/Operator.html",
172
- "rdoc/NEAT/Population.html",
173
- "rdoc/NEAT/Trait.html",
174
- "rdoc/Object.html",
175
- "rdoc/Phi.html",
176
- "rdoc/Player.html",
177
- "rdoc/Rakefile.html",
178
- "rdoc/RubyNEAT.html",
179
- "rdoc/RubyNEAT/Application.html",
180
- "rdoc/SDL.html",
181
- "rdoc/SDL/Event2.html",
182
- "rdoc/Vector.html",
183
- "rdoc/created.rid",
184
- "rdoc/doc/ControllerPoint_html.html",
185
- "rdoc/doc/CuteA_html.html",
186
- "rdoc/doc/CuteB_html.html",
187
- "rdoc/doc/DSL_html.html",
188
- "rdoc/doc/NEAT/BasicNeuronTypes/BiasNeuron_html.html",
189
- "rdoc/doc/NEAT/BasicNeuronTypes/CosineNeuron_html.html",
190
- "rdoc/doc/NEAT/BasicNeuronTypes/InputNeuron_html.html",
191
- "rdoc/doc/NEAT/BasicNeuronTypes/SigmoidNeuron_html.html",
192
- "rdoc/doc/NEAT/BasicNeuronTypes/SineNeuron_html.html",
193
- "rdoc/doc/NEAT/BasicNeuronTypes/TanhNeuron_html.html",
194
- "rdoc/doc/NEAT/BasicNeuronTypes_html.html",
195
- "rdoc/doc/NEAT/Controller/NeatSettings_html.html",
196
- "rdoc/doc/NEAT/Controller_html.html",
197
- "rdoc/doc/NEAT/Critter/Genotype/Gene_html.html",
198
- "rdoc/doc/NEAT/Critter/Genotype_html.html",
199
- "rdoc/doc/NEAT/Critter/Phenotype_html.html",
200
- "rdoc/doc/NEAT/Critter_html.html",
201
- "rdoc/doc/NEAT/DSL_html.html",
202
- "rdoc/doc/NEAT/Evaluator_html.html",
203
- "rdoc/doc/NEAT/Evolver/CritterOp_html.html",
204
- "rdoc/doc/NEAT/Evolver_html.html",
205
- "rdoc/doc/NEAT/Expressor_html.html",
206
- "rdoc/doc/NEAT/Graph/DependencyResolver_html.html",
207
- "rdoc/doc/NEAT/Graph/GraphException_html.html",
208
- "rdoc/doc/NEAT/Graph_html.html",
209
- "rdoc/doc/NEAT/NeatException_html.html",
210
- "rdoc/doc/NEAT/NeatOb_html.html",
211
- "rdoc/doc/NEAT/Neuron_html.html",
212
- "rdoc/doc/NEAT/Operator_html.html",
213
- "rdoc/doc/NEAT/Population_html.html",
214
- "rdoc/doc/NEAT/Trait_html.html",
215
- "rdoc/doc/NEAT_html.html",
216
- "rdoc/doc/_index_html.html",
217
- "rdoc/doc/class_list_html.html",
218
- "rdoc/doc/css/common_css.html",
219
- "rdoc/doc/css/full_list_css.html",
220
- "rdoc/doc/css/style_css.html",
221
- "rdoc/doc/file_list_html.html",
222
- "rdoc/doc/frames_html.html",
223
- "rdoc/doc/index_html.html",
224
- "rdoc/doc/js/app_js.html",
225
- "rdoc/doc/js/full_list_js.html",
226
- "rdoc/doc/js/jquery_js.html",
227
- "rdoc/doc/method_list_html.html",
228
- "rdoc/doc/top-level-namespace_html.html",
229
- "rdoc/fonts.css",
230
- "rdoc/fonts/Lato-Light.ttf",
231
- "rdoc/fonts/Lato-LightItalic.ttf",
232
- "rdoc/fonts/Lato-Regular.ttf",
233
- "rdoc/fonts/Lato-RegularItalic.ttf",
234
- "rdoc/fonts/SourceCodePro-Bold.ttf",
235
- "rdoc/fonts/SourceCodePro-Regular.ttf",
236
- "rdoc/images/add.png",
237
- "rdoc/images/arrow_up.png",
238
- "rdoc/images/brick.png",
239
- "rdoc/images/brick_link.png",
240
- "rdoc/images/bug.png",
241
- "rdoc/images/bullet_black.png",
242
- "rdoc/images/bullet_toggle_minus.png",
243
- "rdoc/images/bullet_toggle_plus.png",
244
- "rdoc/images/date.png",
245
- "rdoc/images/delete.png",
246
- "rdoc/images/find.png",
247
- "rdoc/images/loadingAnimation.gif",
248
- "rdoc/images/macFFBgHack.png",
249
- "rdoc/images/package.png",
250
- "rdoc/images/page_green.png",
251
- "rdoc/images/page_white_text.png",
252
- "rdoc/images/page_white_width.png",
253
- "rdoc/images/plugin.png",
254
- "rdoc/images/ruby.png",
255
- "rdoc/images/tag_blue.png",
256
- "rdoc/images/tag_green.png",
257
- "rdoc/images/transparent.png",
258
- "rdoc/images/wrench.png",
259
- "rdoc/images/wrench_orange.png",
260
- "rdoc/images/zoom.png",
261
- "rdoc/index.html",
262
- "rdoc/js/darkfish.js",
263
- "rdoc/js/jquery.js",
264
- "rdoc/js/navigation.js",
265
- "rdoc/js/search.js",
266
- "rdoc/js/search_index.js",
267
- "rdoc/js/searcher.js",
268
- "rdoc/rdoc.css",
269
- "rdoc/rubyneat_gemspec.html",
270
- "rdoc/table_of_contents.html",
271
- "rdoc/xordebug_log.html",
272
- "rdoc/xorsin_log.html",
273
48
  "rubyneat.gemspec",
49
+ "rubyneat.gemspec.orig",
274
50
  "spec/lib/rubyneat/rubyneat_spec.rb"
275
51
  ]
276
52
  s.homepage = "http://rubyneat.com"
@@ -282,66 +58,66 @@ Gem::Specification.new do |s|
282
58
  s.specification_version = 4
283
59
 
284
60
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
285
- s.add_runtime_dependency(%q<mongo>, [">= 0"])
286
- s.add_runtime_dependency(%q<bson_ext>, [">= 0"])
287
- s.add_runtime_dependency(%q<distribution>, [">= 0"])
288
- s.add_runtime_dependency(%q<statistics2>, [">= 0"])
289
- s.add_runtime_dependency(%q<debase>, [">= 0"])
290
- s.add_runtime_dependency(%q<aquarium>, [">= 0"])
291
- s.add_runtime_dependency(%q<thor>, [">= 0"])
292
- s.add_runtime_dependency(%q<awesome_print>, [">= 0"])
293
- s.add_runtime_dependency(%q<deep_dive>, [">= 0"])
294
- s.add_runtime_dependency(%q<gosu>, [">= 0"])
295
- s.add_runtime_dependency(%q<rubyvis>, [">= 0"])
296
- s.add_development_dependency(%q<rspec>, [">= 0"])
297
- s.add_development_dependency(%q<yard>, [">= 0"])
298
- s.add_development_dependency(%q<guard>, [">= 0"])
299
- s.add_development_dependency(%q<guard-rspec>, [">= 0"])
300
- s.add_development_dependency(%q<semver>, [">= 0"])
301
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
302
- s.add_development_dependency(%q<simplecov>, [">= 0"])
303
- s.add_development_dependency(%q<ruby-debug-ide>, [">= 0"])
61
+ s.add_runtime_dependency(%q<mongo>, ["~> 1"])
62
+ s.add_runtime_dependency(%q<bson_ext>, ["~> 1"])
63
+ s.add_runtime_dependency(%q<distribution>, ["~> 0"])
64
+ s.add_runtime_dependency(%q<statistics2>, ["~> 0"])
65
+ s.add_runtime_dependency(%q<debase>, ["~> 0"])
66
+ s.add_runtime_dependency(%q<aquarium>, ["~> 0"])
67
+ s.add_runtime_dependency(%q<thor>, ["~> 0"])
68
+ s.add_runtime_dependency(%q<awesome_print>, ["~> 1"])
69
+ s.add_runtime_dependency(%q<deep_dive>, ["~> 0"])
70
+ s.add_runtime_dependency(%q<gosu>, ["~> 0"])
71
+ s.add_runtime_dependency(%q<rubyvis>, ["~> 0"])
72
+ s.add_development_dependency(%q<rspec>, ["~> 2"])
73
+ s.add_development_dependency(%q<yard>, ["~> 0"])
74
+ s.add_development_dependency(%q<guard>, ["~> 2"])
75
+ s.add_development_dependency(%q<guard-rspec>, ["~> 4"])
76
+ s.add_development_dependency(%q<semver>, ["~> 1"])
77
+ s.add_development_dependency(%q<jeweler>, ["~> 2"])
78
+ s.add_development_dependency(%q<simplecov>, ["~> 0"])
79
+ s.add_development_dependency(%q<ruby-debug-ide>, ["~> 0"])
304
80
  else
305
- s.add_dependency(%q<mongo>, [">= 0"])
306
- s.add_dependency(%q<bson_ext>, [">= 0"])
307
- s.add_dependency(%q<distribution>, [">= 0"])
308
- s.add_dependency(%q<statistics2>, [">= 0"])
309
- s.add_dependency(%q<debase>, [">= 0"])
310
- s.add_dependency(%q<aquarium>, [">= 0"])
311
- s.add_dependency(%q<thor>, [">= 0"])
312
- s.add_dependency(%q<awesome_print>, [">= 0"])
313
- s.add_dependency(%q<deep_dive>, [">= 0"])
314
- s.add_dependency(%q<gosu>, [">= 0"])
315
- s.add_dependency(%q<rubyvis>, [">= 0"])
316
- s.add_dependency(%q<rspec>, [">= 0"])
317
- s.add_dependency(%q<yard>, [">= 0"])
318
- s.add_dependency(%q<guard>, [">= 0"])
319
- s.add_dependency(%q<guard-rspec>, [">= 0"])
320
- s.add_dependency(%q<semver>, [">= 0"])
321
- s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
322
- s.add_dependency(%q<simplecov>, [">= 0"])
323
- s.add_dependency(%q<ruby-debug-ide>, [">= 0"])
81
+ s.add_dependency(%q<mongo>, ["~> 1"])
82
+ s.add_dependency(%q<bson_ext>, ["~> 1"])
83
+ s.add_dependency(%q<distribution>, ["~> 0"])
84
+ s.add_dependency(%q<statistics2>, ["~> 0"])
85
+ s.add_dependency(%q<debase>, ["~> 0"])
86
+ s.add_dependency(%q<aquarium>, ["~> 0"])
87
+ s.add_dependency(%q<thor>, ["~> 0"])
88
+ s.add_dependency(%q<awesome_print>, ["~> 1"])
89
+ s.add_dependency(%q<deep_dive>, ["~> 0"])
90
+ s.add_dependency(%q<gosu>, ["~> 0"])
91
+ s.add_dependency(%q<rubyvis>, ["~> 0"])
92
+ s.add_dependency(%q<rspec>, ["~> 2"])
93
+ s.add_dependency(%q<yard>, ["~> 0"])
94
+ s.add_dependency(%q<guard>, ["~> 2"])
95
+ s.add_dependency(%q<guard-rspec>, ["~> 4"])
96
+ s.add_dependency(%q<semver>, ["~> 1"])
97
+ s.add_dependency(%q<jeweler>, ["~> 2"])
98
+ s.add_dependency(%q<simplecov>, ["~> 0"])
99
+ s.add_dependency(%q<ruby-debug-ide>, ["~> 0"])
324
100
  end
325
101
  else
326
- s.add_dependency(%q<mongo>, [">= 0"])
327
- s.add_dependency(%q<bson_ext>, [">= 0"])
328
- s.add_dependency(%q<distribution>, [">= 0"])
329
- s.add_dependency(%q<statistics2>, [">= 0"])
330
- s.add_dependency(%q<debase>, [">= 0"])
331
- s.add_dependency(%q<aquarium>, [">= 0"])
332
- s.add_dependency(%q<thor>, [">= 0"])
333
- s.add_dependency(%q<awesome_print>, [">= 0"])
334
- s.add_dependency(%q<deep_dive>, [">= 0"])
335
- s.add_dependency(%q<gosu>, [">= 0"])
336
- s.add_dependency(%q<rubyvis>, [">= 0"])
337
- s.add_dependency(%q<rspec>, [">= 0"])
338
- s.add_dependency(%q<yard>, [">= 0"])
339
- s.add_dependency(%q<guard>, [">= 0"])
340
- s.add_dependency(%q<guard-rspec>, [">= 0"])
341
- s.add_dependency(%q<semver>, [">= 0"])
342
- s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
343
- s.add_dependency(%q<simplecov>, [">= 0"])
344
- s.add_dependency(%q<ruby-debug-ide>, [">= 0"])
102
+ s.add_dependency(%q<mongo>, ["~> 1"])
103
+ s.add_dependency(%q<bson_ext>, ["~> 1"])
104
+ s.add_dependency(%q<distribution>, ["~> 0"])
105
+ s.add_dependency(%q<statistics2>, ["~> 0"])
106
+ s.add_dependency(%q<debase>, ["~> 0"])
107
+ s.add_dependency(%q<aquarium>, ["~> 0"])
108
+ s.add_dependency(%q<thor>, ["~> 0"])
109
+ s.add_dependency(%q<awesome_print>, ["~> 1"])
110
+ s.add_dependency(%q<deep_dive>, ["~> 0"])
111
+ s.add_dependency(%q<gosu>, ["~> 0"])
112
+ s.add_dependency(%q<rubyvis>, ["~> 0"])
113
+ s.add_dependency(%q<rspec>, ["~> 2"])
114
+ s.add_dependency(%q<yard>, ["~> 0"])
115
+ s.add_dependency(%q<guard>, ["~> 2"])
116
+ s.add_dependency(%q<guard-rspec>, ["~> 4"])
117
+ s.add_dependency(%q<semver>, ["~> 1"])
118
+ s.add_dependency(%q<jeweler>, ["~> 2"])
119
+ s.add_dependency(%q<simplecov>, ["~> 0"])
120
+ s.add_dependency(%q<ruby-debug-ide>, ["~> 0"])
345
121
  end
346
122
  end
347
123