drp 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/AUTHORS +6 -0
- data/CHANGES +0 -0
- data/INTRO +309 -0
- data/LICENSE +281 -0
- data/README +77 -0
- data/Rakefile +99 -0
- data/TODO +13 -0
- data/examples/intro/README +2 -0
- data/examples/intro/canvas_example.rb +123 -0
- data/examples/intro/max_depths_example.rb +34 -0
- data/examples/intro/max_depths_example_2.rb +30 -0
- data/examples/intro/odds_and_ends.rb +96 -0
- data/examples/intro/parameterization_example.rb +32 -0
- data/examples/intro/toy_example.rb +22 -0
- data/examples/intro/weight_fcd_example.rb +44 -0
- data/examples/intro/weights_example.rb +33 -0
- data/examples/intro/weights_example_2.rb +30 -0
- data/examples/symbolic_regression.rb +127 -0
- data/lib/defaults.rb +30 -0
- data/lib/drp.rb +30 -0
- data/lib/error.rb +69 -0
- data/lib/info.rb +30 -0
- data/lib/instance_methods.rb +154 -0
- data/lib/pso.rb +178 -0
- data/lib/rule_engine.rb +324 -0
- data/lib/utils.rb +67 -0
- data/lib/weights_and_max_depths.rb +264 -0
- data/test/tc_instance_methods.rb +219 -0
- data/test/tc_max_depths.rb +98 -0
- data/test/tc_utils.rb +60 -0
- data/test/tc_weights.rb +372 -0
- data/test/ts_drp.rb +28 -0
- metadata +80 -0
data/test/ts_drp.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
=begin
|
3
|
+
|
4
|
+
DRP, Genetic Programming + Grammatical Evolution = Directed Ruby Programming
|
5
|
+
Copyright (C) 2006, Christophe McKeon
|
6
|
+
|
7
|
+
This program is free software; you can redistribute it and/or
|
8
|
+
modify it under the terms of the GNU General Public License
|
9
|
+
as published by the Free Software Foundation; either version 2
|
10
|
+
of the License, or (at your option) any later version.
|
11
|
+
|
12
|
+
This program is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
GNU General Public License for more details.
|
16
|
+
|
17
|
+
You should have received a copy of the GNU General Public License
|
18
|
+
along with this program; if not, write to the Free Softwar Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
19
|
+
|
20
|
+
=end
|
21
|
+
|
22
|
+
$:.unshift "../lib"
|
23
|
+
|
24
|
+
require 'drp'
|
25
|
+
require 'test/unit'
|
26
|
+
|
27
|
+
Dir.chdir File.dirname(__FILE__)
|
28
|
+
Dir["**/tc_*.rb"].each { |file| load file }
|
metadata
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.11
|
3
|
+
specification_version: 1
|
4
|
+
name: drp
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.0.6
|
7
|
+
date: 2006-09-07 00:00:00 -07:00
|
8
|
+
summary: genetic programming * grammatical evolution = directed (ruby) programming
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: polypus@yahoo.com
|
12
|
+
homepage: http://drp.rubyforge.org
|
13
|
+
rubyforge_project: drp
|
14
|
+
description: Directed Programming is a new generative programming technique developed by Christophe McKeon which is a generalisation of Grammatical Evolution (http://www.grammatical-evolution.org) allowing one not only to do GE, but also to do Genetic Programming (http://www.genetic-programming.org) in pure Ruby without explicitly generating a program string as output. DP even allows you to set up hybrids of GP and GE where part of a GE subtree is calculated using normal Ruby functions/operators/etc. via. GP. DRP is the first ever implementation of DP and is written in pure Ruby.
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
authors:
|
29
|
+
- Christophe McKeon
|
30
|
+
files:
|
31
|
+
- CHANGES
|
32
|
+
- AUTHORS
|
33
|
+
- README
|
34
|
+
- TODO
|
35
|
+
- LICENSE
|
36
|
+
- Rakefile
|
37
|
+
- examples/intro/toy_example.rb
|
38
|
+
- examples/intro/canvas_example.rb
|
39
|
+
- examples/intro/parameterization_example.rb
|
40
|
+
- examples/intro/odds_and_ends.rb
|
41
|
+
- examples/intro/max_depths_example.rb
|
42
|
+
- examples/intro/weights_example.rb
|
43
|
+
- examples/intro/README
|
44
|
+
- examples/intro/weights_example_2.rb
|
45
|
+
- examples/intro/max_depths_example_2.rb
|
46
|
+
- examples/intro/weight_fcd_example.rb
|
47
|
+
- examples/symbolic_regression.rb
|
48
|
+
- lib/utils.rb
|
49
|
+
- lib/drp.rb
|
50
|
+
- lib/info.rb
|
51
|
+
- lib/weights_and_max_depths.rb
|
52
|
+
- lib/defaults.rb
|
53
|
+
- lib/rule_engine.rb
|
54
|
+
- lib/instance_methods.rb
|
55
|
+
- lib/pso.rb
|
56
|
+
- lib/error.rb
|
57
|
+
- test/tc_instance_methods.rb
|
58
|
+
- test/ts_drp.rb
|
59
|
+
- test/tc_max_depths.rb
|
60
|
+
- test/tc_utils.rb
|
61
|
+
- test/tc_weights.rb
|
62
|
+
- INTRO
|
63
|
+
test_files:
|
64
|
+
- test/ts_drp.rb
|
65
|
+
rdoc_options:
|
66
|
+
- --main
|
67
|
+
- README
|
68
|
+
- --include
|
69
|
+
- examples/intro
|
70
|
+
extra_rdoc_files:
|
71
|
+
- README
|
72
|
+
- INTRO
|
73
|
+
executables: []
|
74
|
+
|
75
|
+
extensions: []
|
76
|
+
|
77
|
+
requirements: []
|
78
|
+
|
79
|
+
dependencies: []
|
80
|
+
|