feldtruby 0.3.16 → 0.3.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +9 -2
- data/Rakefile +8 -0
- data/feldtruby.gemspec +6 -0
- data/lib/feldtruby/annotations.rb +10 -0
- data/lib/feldtruby/array/basic_stats.rb +3 -1
- data/lib/feldtruby/array/permutations_and_subsets.rb +17 -0
- data/lib/feldtruby/float.rb +23 -0
- data/lib/feldtruby/logger.rb +216 -30
- data/lib/feldtruby/minitest_extensions.rb +0 -1
- data/lib/feldtruby/mongodb.rb +16 -0
- data/lib/feldtruby/mongodb_logger.rb +245 -0
- data/lib/feldtruby/optimize/differential_evolution.rb +29 -5
- data/lib/feldtruby/optimize/elite_archive.rb +91 -0
- data/lib/feldtruby/optimize/max_steps_termination_criterion.rb +1 -1
- data/lib/feldtruby/optimize/objective.rb +343 -222
- data/lib/feldtruby/optimize/optimizer.rb +138 -60
- data/lib/feldtruby/optimize/search_space.rb +10 -0
- data/lib/feldtruby/optimize.rb +1 -26
- data/lib/feldtruby/statistics.rb +74 -3
- data/lib/feldtruby/time.rb +19 -0
- data/lib/feldtruby/version.rb +1 -1
- data/old/event_logger.rb +682 -0
- data/spikes/comparing_samplers_on_classic_optimization_functions/analyze_sampler_comparison_results.R +78 -0
- data/spikes/comparing_samplers_on_classic_optimization_functions/compare_samplers.rb +264 -0
- data/spikes/comparing_samplers_on_classic_optimization_functions/results_comparing_samplers_130405_175934.csv +561 -0
- data/spikes/comparing_samplers_on_classic_optimization_functions/results_comparing_samplers_levi13_beale_easom_eggholder.csv +11201 -0
- data/spikes/comparing_samplers_on_classic_optimization_functions/results_comparing_samplers_levi13_beale_easom_eggholder_all_radii_4_to_30.csv +44801 -0
- data/spikes/comparing_samplers_on_classic_optimization_functions/results_comparing_samplers_omnitest.csv +1401 -0
- data/spikes/mongodb_logger.rb +47 -0
- data/spikes/simple_de_run.rb +32 -0
- data/test/helper.rb +17 -1
- data/test/test_array_basic_stats.rb +5 -1
- data/test/test_array_permutations_and_subsets.rb +23 -0
- data/test/test_float.rb +15 -0
- data/test/test_html_doc_getter.rb +1 -1
- data/test/test_logger.rb +86 -48
- data/test/test_mongodb_logger.rb +116 -0
- data/test/test_object_annotations.rb +14 -0
- data/test/test_optimize.rb +7 -6
- data/test/test_optimize_differential_evolution.rb +21 -19
- data/test/test_optimize_elite_archive.rb +85 -0
- data/test/test_optimize_objective.rb +237 -74
- data/test/test_optimize_populationbasedoptimizer.rb +72 -6
- data/test/test_optimize_random_search.rb +0 -17
- data/test/test_optimize_search_space.rb +15 -0
- data/test/test_statistics.rb +30 -4
- data/test/test_time.rb +22 -0
- data/test/tmp_shorter.csv +200 -0
- metadata +62 -21
@@ -0,0 +1,200 @@
|
|
1
|
+
balance,height,size
|
2
|
+
2.244994432064365,8,108
|
3
|
+
0.0,1,1
|
4
|
+
0.0,1,1
|
5
|
+
0.82915619758885,4,13
|
6
|
+
0.0,6,22
|
7
|
+
1.019803902718557,5,15
|
8
|
+
2.1,8,90
|
9
|
+
2.328408813611945,9,81
|
10
|
+
2.722080495176846,11,165
|
11
|
+
2.3657850230970277,8,114
|
12
|
+
1.523478800089121,7,51
|
13
|
+
1.247219128924647,5,17
|
14
|
+
1.5,6,15
|
15
|
+
1.6659862556700857,7,28
|
16
|
+
1.9551176964828976,8,84
|
17
|
+
2.0925339244208376,9,176
|
18
|
+
1.5,5,13
|
19
|
+
0.9428090415820634,8,41
|
20
|
+
0.0,1,1
|
21
|
+
0.0,1,1
|
22
|
+
1.5343293866268306,7,47
|
23
|
+
0.7483314773547883,4,14
|
24
|
+
2.1189138534559038,7,76
|
25
|
+
1.927248223318863,7,53
|
26
|
+
0.0,5,8
|
27
|
+
1.0,4,6
|
28
|
+
0.0,5,10
|
29
|
+
2.8674417556808756,9,64
|
30
|
+
0.0,1,1
|
31
|
+
2.1437246921084703,8,115
|
32
|
+
2.0548046676563256,7,38
|
33
|
+
2.3040385738958453,9,199
|
34
|
+
2.034425935955617,8,75
|
35
|
+
1.247219128924647,7,33
|
36
|
+
0.0,2,3
|
37
|
+
1.4142135623730951,5,10
|
38
|
+
1.617802197617893,7,29
|
39
|
+
2.1189138534559038,7,67
|
40
|
+
1.8708286933869707,7,36
|
41
|
+
0.0,1,1
|
42
|
+
2.6246692913372702,9,96
|
43
|
+
0.0,1,1
|
44
|
+
1.247219128924647,8,64
|
45
|
+
2.5,7,38
|
46
|
+
1.5,5,15
|
47
|
+
0.0,1,1
|
48
|
+
2.5,8,34
|
49
|
+
2.0591260281974,7,33
|
50
|
+
1.699673171197595,6,21
|
51
|
+
2.924988129130708,9,56
|
52
|
+
3.0,9,30
|
53
|
+
2.030381486221699,9,76
|
54
|
+
1.6749792701868151,6,35
|
55
|
+
2.1213203435596424,8,59
|
56
|
+
0.9428090415820634,4,6
|
57
|
+
1.8708286933869707,7,50
|
58
|
+
2.0,6,21
|
59
|
+
0.5,8,24
|
60
|
+
3.5,9,30
|
61
|
+
1.749635530559413,7,50
|
62
|
+
1.5811388300841898,6,36
|
63
|
+
1.699673171197595,6,22
|
64
|
+
2.1852940772540506,7,45
|
65
|
+
1.479019945774904,6,28
|
66
|
+
2.3819045715047236,8,103
|
67
|
+
0.0,5,7
|
68
|
+
0.5,7,41
|
69
|
+
2.1495522232587074,9,637
|
70
|
+
1.0,4,9
|
71
|
+
0.4330127018922193,3,6
|
72
|
+
0.0,6,15
|
73
|
+
2.266911751455907,8,43
|
74
|
+
0.0,4,4
|
75
|
+
2.2271057451320084,8,74
|
76
|
+
0.0,3,5
|
77
|
+
0.0,1,1
|
78
|
+
0.0,1,1
|
79
|
+
1.0,8,63
|
80
|
+
0.0,1,1
|
81
|
+
1.4142135623730951,6,30
|
82
|
+
2.3570226039551585,8,115
|
83
|
+
2.160246899469287,8,38
|
84
|
+
1.3437096247164249,5,18
|
85
|
+
1.0,4,6
|
86
|
+
0.0,1,1
|
87
|
+
1.5,9,88
|
88
|
+
2.612789058968723,9,144
|
89
|
+
1.0671873729054748,7,77
|
90
|
+
1.8973665961010275,7,66
|
91
|
+
1.5518257844571737,6,48
|
92
|
+
1.854723699099141,7,42
|
93
|
+
0.0,1,1
|
94
|
+
0.9428090415820634,7,34
|
95
|
+
0.0,2,2
|
96
|
+
2.171592619839143,9,217
|
97
|
+
0.0,3,5
|
98
|
+
0.8,4,22
|
99
|
+
2.2662308949301266,9,133
|
100
|
+
1.5587661999529314,6,51
|
101
|
+
0.0,7,21
|
102
|
+
1.299038105676658,5,19
|
103
|
+
1.8929694486000912,7,41
|
104
|
+
1.689427911059441,8,66
|
105
|
+
2.0811212746106817,9,177
|
106
|
+
1.247219128924647,6,22
|
107
|
+
0.0,1,1
|
108
|
+
1.8257418583505538,7,99
|
109
|
+
2.4819347291981715,8,49
|
110
|
+
0.0,1,1
|
111
|
+
0.0,1,1
|
112
|
+
0.4714045207910317,4,11
|
113
|
+
0.0,2,2
|
114
|
+
2.449489742783178,8,47
|
115
|
+
0.0,1,1
|
116
|
+
0.0,1,1
|
117
|
+
1.6413036132965795,6,60
|
118
|
+
0.0,1,1
|
119
|
+
1.0,4,5
|
120
|
+
0.0,6,18
|
121
|
+
0.0,1,1
|
122
|
+
1.5,7,27
|
123
|
+
0.0,4,5
|
124
|
+
1.632993161855452,9,43
|
125
|
+
2.602981022612657,9,99
|
126
|
+
1.699673171197595,7,22
|
127
|
+
1.0,7,39
|
128
|
+
2.29128784747792,8,88
|
129
|
+
0.0,1,1
|
130
|
+
0.816496580927726,4,7
|
131
|
+
2.0615528128088303,9,172
|
132
|
+
0.0,1,1
|
133
|
+
0.0,6,12
|
134
|
+
0.0,1,1
|
135
|
+
1.9720265943665387,8,22
|
136
|
+
0.5,5,17
|
137
|
+
1.699673171197595,7,94
|
138
|
+
2.0,6,10
|
139
|
+
0.0,1,1
|
140
|
+
0.0,1,1
|
141
|
+
1.5877132402714709,7,88
|
142
|
+
1.5,6,14
|
143
|
+
2.1723571995574615,9,163
|
144
|
+
0.0,1,1
|
145
|
+
2.384848003542364,8,37
|
146
|
+
0.0,4,4
|
147
|
+
0.0,7,26
|
148
|
+
2.5,9,57
|
149
|
+
1.2649110640673518,5,12
|
150
|
+
0.0,1,1
|
151
|
+
0.0,1,1
|
152
|
+
0.0,1,1
|
153
|
+
0.0,1,1
|
154
|
+
1.7204650534085253,7,39
|
155
|
+
2.0548046676563256,7,23
|
156
|
+
0.0,2,3
|
157
|
+
1.8027756377319946,7,31
|
158
|
+
2.0,6,27
|
159
|
+
0.0,4,4
|
160
|
+
1.118033988749895,6,21
|
161
|
+
1.7916128329552332,7,112
|
162
|
+
2.277608394786075,8,35
|
163
|
+
1.9148542155126762,7,113
|
164
|
+
2.29128784747792,9,82
|
165
|
+
2.0463381929681126,9,139
|
166
|
+
1.2583057392117916,5,26
|
167
|
+
0.0,5,6
|
168
|
+
0.0,1,1
|
169
|
+
1.3997084244475306,6,21
|
170
|
+
2.0154955277107964,8,255
|
171
|
+
2.0,6,26
|
172
|
+
1.8856180831641267,7,21
|
173
|
+
0.5,3,4
|
174
|
+
3.0,12,75
|
175
|
+
1.0,6,19
|
176
|
+
0.0,1,1
|
177
|
+
0.0,5,5
|
178
|
+
0.0,9,83
|
179
|
+
2.2110831935702664,8,82
|
180
|
+
2.2166597048066667,9,213
|
181
|
+
1.958758457257441,7,37
|
182
|
+
2.0,6,29
|
183
|
+
0.0,2,2
|
184
|
+
0.9433981132056604,5,23
|
185
|
+
1.9990231989649345,8,183
|
186
|
+
1.7950549357115013,7,20
|
187
|
+
1.6616996343324155,7,97
|
188
|
+
2.5,9,79
|
189
|
+
0.0,1,1
|
190
|
+
1.964529205687714,8,92
|
191
|
+
1.8525924445036743,8,32
|
192
|
+
0.0,2,2
|
193
|
+
0.0,3,4
|
194
|
+
2.3570226039551585,7,20
|
195
|
+
0.0,3,3
|
196
|
+
2.0,7,24
|
197
|
+
0.0,1,1
|
198
|
+
2.1540659228538015,8,68
|
199
|
+
0.0,2,3
|
200
|
+
2.0,8,48
|
metadata
CHANGED
@@ -1,62 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feldtruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.18
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Robert Feldt
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-04-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rinruby
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: json
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: nokogiri
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mongo
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bson_ext
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
60
81
|
- !ruby/object:Gem::Version
|
61
82
|
version: '0'
|
62
83
|
description: Robert Feldt's Common Ruby Code lib
|
@@ -76,6 +97,7 @@ files:
|
|
76
97
|
- TODO
|
77
98
|
- feldtruby.gemspec
|
78
99
|
- lib/feldtruby.rb
|
100
|
+
- lib/feldtruby/annotations.rb
|
79
101
|
- lib/feldtruby/array.rb
|
80
102
|
- lib/feldtruby/array/basic_stats.rb
|
81
103
|
- lib/feldtruby/array/count_by.rb
|
@@ -86,9 +108,12 @@ files:
|
|
86
108
|
- lib/feldtruby/logger.rb
|
87
109
|
- lib/feldtruby/math/rand.rb
|
88
110
|
- lib/feldtruby/minitest_extensions.rb
|
111
|
+
- lib/feldtruby/mongodb.rb
|
112
|
+
- lib/feldtruby/mongodb_logger.rb
|
89
113
|
- lib/feldtruby/net/html_doc_getter.rb
|
90
114
|
- lib/feldtruby/optimize.rb
|
91
115
|
- lib/feldtruby/optimize/differential_evolution.rb
|
116
|
+
- lib/feldtruby/optimize/elite_archive.rb
|
92
117
|
- lib/feldtruby/optimize/max_steps_termination_criterion.rb
|
93
118
|
- lib/feldtruby/optimize/objective.rb
|
94
119
|
- lib/feldtruby/optimize/optimizer.rb
|
@@ -111,6 +136,15 @@ files:
|
|
111
136
|
- lib/feldtruby/version.rb
|
112
137
|
- lib/feldtruby/visualization/circos.rb
|
113
138
|
- lib/feldtruby/word_counter.rb
|
139
|
+
- old/event_logger.rb
|
140
|
+
- spikes/comparing_samplers_on_classic_optimization_functions/analyze_sampler_comparison_results.R
|
141
|
+
- spikes/comparing_samplers_on_classic_optimization_functions/compare_samplers.rb
|
142
|
+
- spikes/comparing_samplers_on_classic_optimization_functions/results_comparing_samplers_130405_175934.csv
|
143
|
+
- spikes/comparing_samplers_on_classic_optimization_functions/results_comparing_samplers_levi13_beale_easom_eggholder.csv
|
144
|
+
- spikes/comparing_samplers_on_classic_optimization_functions/results_comparing_samplers_levi13_beale_easom_eggholder_all_radii_4_to_30.csv
|
145
|
+
- spikes/comparing_samplers_on_classic_optimization_functions/results_comparing_samplers_omnitest.csv
|
146
|
+
- spikes/mongodb_logger.rb
|
147
|
+
- spikes/simple_de_run.rb
|
114
148
|
- spikes/zlib_for_short_strings.rb
|
115
149
|
- test/helper.rb
|
116
150
|
- test/skip_test_array_archive.rb
|
@@ -124,9 +158,12 @@ files:
|
|
124
158
|
- test/test_float.rb
|
125
159
|
- test/test_html_doc_getter.rb
|
126
160
|
- test/test_logger.rb
|
161
|
+
- test/test_mongodb_logger.rb
|
127
162
|
- test/test_normalization.rb
|
163
|
+
- test/test_object_annotations.rb
|
128
164
|
- test/test_optimize.rb
|
129
165
|
- test/test_optimize_differential_evolution.rb
|
166
|
+
- test/test_optimize_elite_archive.rb
|
130
167
|
- test/test_optimize_objective.rb
|
131
168
|
- test/test_optimize_populationbasedoptimizer.rb
|
132
169
|
- test/test_optimize_random_search.rb
|
@@ -139,29 +176,29 @@ files:
|
|
139
176
|
- test/test_vector.rb
|
140
177
|
- test/test_word_counter.rb
|
141
178
|
- test/tmp.csv
|
179
|
+
- test/tmp_shorter.csv
|
142
180
|
homepage: https://github.com/robertfeldt/feldtruby
|
143
181
|
licenses: []
|
182
|
+
metadata: {}
|
144
183
|
post_install_message:
|
145
184
|
rdoc_options: []
|
146
185
|
require_paths:
|
147
186
|
- lib
|
148
187
|
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
-
none: false
|
150
188
|
requirements:
|
151
|
-
- -
|
189
|
+
- - '>='
|
152
190
|
- !ruby/object:Gem::Version
|
153
191
|
version: '0'
|
154
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
|
-
none: false
|
156
193
|
requirements:
|
157
|
-
- -
|
194
|
+
- - '>='
|
158
195
|
- !ruby/object:Gem::Version
|
159
196
|
version: '0'
|
160
197
|
requirements: []
|
161
198
|
rubyforge_project:
|
162
|
-
rubygems_version:
|
199
|
+
rubygems_version: 2.0.0
|
163
200
|
signing_key:
|
164
|
-
specification_version:
|
201
|
+
specification_version: 4
|
165
202
|
summary: Robert Feldt's Common Ruby Code lib
|
166
203
|
test_files:
|
167
204
|
- test/helper.rb
|
@@ -176,9 +213,12 @@ test_files:
|
|
176
213
|
- test/test_float.rb
|
177
214
|
- test/test_html_doc_getter.rb
|
178
215
|
- test/test_logger.rb
|
216
|
+
- test/test_mongodb_logger.rb
|
179
217
|
- test/test_normalization.rb
|
218
|
+
- test/test_object_annotations.rb
|
180
219
|
- test/test_optimize.rb
|
181
220
|
- test/test_optimize_differential_evolution.rb
|
221
|
+
- test/test_optimize_elite_archive.rb
|
182
222
|
- test/test_optimize_objective.rb
|
183
223
|
- test/test_optimize_populationbasedoptimizer.rb
|
184
224
|
- test/test_optimize_random_search.rb
|
@@ -191,3 +231,4 @@ test_files:
|
|
191
231
|
- test/test_vector.rb
|
192
232
|
- test/test_word_counter.rb
|
193
233
|
- test/tmp.csv
|
234
|
+
- test/tmp_shorter.csv
|