biopsy 0.1.5.alpha → 0.1.6.alpha
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/biopsy/experiment.rb +3 -2
- data/lib/biopsy/version.rb +1 -1
- metadata +50 -32
- checksums.yaml +0 -7
data/lib/biopsy/experiment.rb
CHANGED
@@ -19,7 +19,7 @@ module Biopsy
|
|
19
19
|
attr_reader :inputs, :outputs, :retain_intermediates, :target, :start, :algorithm
|
20
20
|
|
21
21
|
# Returns a new Experiment
|
22
|
-
def initialize(target, start=nil, algorithm=nil)
|
22
|
+
def initialize(target, options={}, start=nil, algorithm=nil)
|
23
23
|
@start = start
|
24
24
|
@algorithm = algorithm
|
25
25
|
if target.is_a? Target
|
@@ -27,6 +27,7 @@ module Biopsy
|
|
27
27
|
else
|
28
28
|
self.load_target target
|
29
29
|
end
|
30
|
+
@options = options
|
30
31
|
@objective = ObjectiveHandler.new @target
|
31
32
|
self.select_algorithm
|
32
33
|
self.select_starting_point
|
@@ -91,7 +92,7 @@ module Biopsy
|
|
91
92
|
# create temp dir
|
92
93
|
Dir.chdir(self.create_tempdir) do
|
93
94
|
# run the target
|
94
|
-
raw_output = @target.run @current_params
|
95
|
+
raw_output = @target.run @current_params.merge(@options)
|
95
96
|
# evaluate with objectives
|
96
97
|
param_key = @current_params.to_s
|
97
98
|
result = nil
|
data/lib/biopsy/version.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: biopsy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6.alpha
|
5
|
+
prerelease: 6
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Richard Smith
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-19 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rake
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,90 +30,103 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: threach
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- - '>='
|
35
|
+
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: '0'
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- - '>='
|
43
|
+
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: '0'
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: rubystats
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
|
-
- - '>='
|
51
|
+
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
|
-
- - '>='
|
59
|
+
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: statsample
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
|
-
- - '>='
|
67
|
+
- - ! '>='
|
60
68
|
- !ruby/object:Gem::Version
|
61
69
|
version: '0'
|
62
70
|
type: :runtime
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
|
-
- - '>='
|
75
|
+
- - ! '>='
|
67
76
|
- !ruby/object:Gem::Version
|
68
77
|
version: '0'
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: turn
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
|
-
- - '>='
|
83
|
+
- - ! '>='
|
74
84
|
- !ruby/object:Gem::Version
|
75
85
|
version: '0'
|
76
86
|
type: :development
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
|
-
- - '>='
|
91
|
+
- - ! '>='
|
81
92
|
- !ruby/object:Gem::Version
|
82
93
|
version: '0'
|
83
94
|
- !ruby/object:Gem::Dependency
|
84
95
|
name: simplecov
|
85
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
86
98
|
requirements:
|
87
|
-
- - '>='
|
99
|
+
- - ! '>='
|
88
100
|
- !ruby/object:Gem::Version
|
89
101
|
version: '0'
|
90
102
|
type: :development
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
93
106
|
requirements:
|
94
|
-
- - '>='
|
107
|
+
- - ! '>='
|
95
108
|
- !ruby/object:Gem::Version
|
96
109
|
version: '0'
|
97
110
|
- !ruby/object:Gem::Dependency
|
98
111
|
name: shoulda-context
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
100
114
|
requirements:
|
101
|
-
- - '>='
|
115
|
+
- - ! '>='
|
102
116
|
- !ruby/object:Gem::Version
|
103
117
|
version: '0'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
107
122
|
requirements:
|
108
|
-
- - '>='
|
123
|
+
- - ! '>='
|
109
124
|
- !ruby/object:Gem::Version
|
110
125
|
version: '0'
|
111
126
|
- !ruby/object:Gem::Dependency
|
112
127
|
name: coveralls
|
113
128
|
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
114
130
|
requirements:
|
115
131
|
- - ~>
|
116
132
|
- !ruby/object:Gem::Version
|
@@ -118,6 +134,7 @@ dependencies:
|
|
118
134
|
type: :development
|
119
135
|
prerelease: false
|
120
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
121
138
|
requirements:
|
122
139
|
- - ~>
|
123
140
|
- !ruby/object:Gem::Version
|
@@ -129,50 +146,51 @@ extensions: []
|
|
129
146
|
extra_rdoc_files: []
|
130
147
|
files:
|
131
148
|
- Rakefile
|
132
|
-
- lib/biopsy/version.rb
|
133
|
-
- lib/biopsy/objective_handler.rb
|
134
|
-
- lib/biopsy/settings.rb
|
135
149
|
- lib/biopsy/base_extensions.rb
|
136
|
-
- lib/biopsy/target.rb
|
137
|
-
- lib/biopsy/objectives/fastest_optimum.rb
|
138
150
|
- lib/biopsy/experiment.rb
|
139
|
-
- lib/biopsy/opt_algorithm.rb
|
140
151
|
- lib/biopsy/objective_function.rb
|
141
|
-
- lib/biopsy/
|
142
|
-
- lib/biopsy/
|
152
|
+
- lib/biopsy/objective_handler.rb
|
153
|
+
- lib/biopsy/objectives/fastest_optimum.rb
|
154
|
+
- lib/biopsy/opt_algorithm.rb
|
143
155
|
- lib/biopsy/optimisers/genetic_algorithm.rb
|
156
|
+
- lib/biopsy/optimisers/parameter_sweeper.rb
|
157
|
+
- lib/biopsy/optimisers/tabu_search.rb
|
158
|
+
- lib/biopsy/settings.rb
|
159
|
+
- lib/biopsy/target.rb
|
160
|
+
- lib/biopsy/version.rb
|
144
161
|
- lib/biopsy.rb
|
145
|
-
- test/test_settings.rb
|
146
|
-
- test/test_string.rb
|
147
162
|
- test/helper.rb
|
148
|
-
- test/
|
163
|
+
- test/test_experiment.rb
|
149
164
|
- test/test_file.rb
|
150
|
-
- test/test_target.rb
|
151
165
|
- test/test_hash.rb
|
152
|
-
- test/
|
166
|
+
- test/test_objective_handler.rb
|
167
|
+
- test/test_settings.rb
|
168
|
+
- test/test_string.rb
|
169
|
+
- test/test_target.rb
|
153
170
|
- README.md
|
154
171
|
- LICENSE.txt
|
155
172
|
homepage: https://github.com/Blahah/biopsy
|
156
173
|
licenses: []
|
157
|
-
metadata: {}
|
158
174
|
post_install_message:
|
159
175
|
rdoc_options: []
|
160
176
|
require_paths:
|
161
177
|
- lib
|
162
178
|
required_ruby_version: !ruby/object:Gem::Requirement
|
179
|
+
none: false
|
163
180
|
requirements:
|
164
|
-
- - '>='
|
181
|
+
- - ! '>='
|
165
182
|
- !ruby/object:Gem::Version
|
166
183
|
version: '0'
|
167
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
168
186
|
requirements:
|
169
|
-
- - '>'
|
187
|
+
- - ! '>'
|
170
188
|
- !ruby/object:Gem::Version
|
171
189
|
version: 1.3.1
|
172
190
|
requirements: []
|
173
191
|
rubyforge_project:
|
174
|
-
rubygems_version:
|
192
|
+
rubygems_version: 1.8.24
|
175
193
|
signing_key:
|
176
|
-
specification_version:
|
194
|
+
specification_version: 3
|
177
195
|
summary: framework for optimising any computational pipeline or program
|
178
196
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 1d4544c6a2d8d0cb504f8d3b13a98fe839a24028
|
4
|
-
data.tar.gz: ecfa59d64bbdd54f4ad5e591f0c7769deaa11d51
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 6eb3456ed9f915a72d777a38c188687c9435ab229209c20cc7b010ae0fbac26b6de44f4e42ca285886dd3e98bc5d71c8c41deb27ff0ccc91a1abf2db08de3522
|
7
|
-
data.tar.gz: dbc8a5f7b1f748a7cb2e3965f518f34ed7c34d5fd902781f7f4a712d255c3812afa632e9555100835b6e97ab387f7760d6bef52c999747f2a344b295932c2a6b
|