biopsy 0.1.3.alpha → 0.1.4.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/biopsy/experiment.rb +6 -3
- data/lib/biopsy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f61f6fe9239f55197ade6e001966297f5b2f02dc
|
4
|
+
data.tar.gz: cc88d6b21123b2f70f4d557d391c7641a619c997
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95e9fd0f17b945202db2eade0633c386d63c1a7a67c0303431d5b037a6bbff27e78c20b1639004b927628bc3400642d90bddc2f42db627f629416c4c8145ba14
|
7
|
+
data.tar.gz: a934aae71cbe3f500f6bf69da3913653daec9fd69b911609953c28eee66eab4f553c39f671101127cfbb9eb4f04d44145d6031e72c2ade761ef1cc6d91439b07
|
data/lib/biopsy/experiment.rb
CHANGED
@@ -19,11 +19,14 @@ module Biopsy
|
|
19
19
|
attr_reader :inputs, :outputs, :retain_intermediates, :target, :start, :algorithm
|
20
20
|
|
21
21
|
# Returns a new Experiment
|
22
|
-
def initialize(
|
22
|
+
def initialize(target, start=nil, algorithm=nil)
|
23
23
|
@start = start
|
24
24
|
@algorithm = algorithm
|
25
|
-
|
26
|
-
|
25
|
+
if target.is_a? Target
|
26
|
+
@target = target
|
27
|
+
else
|
28
|
+
self.load_target target_name
|
29
|
+
end
|
27
30
|
@objective = ObjectiveHandler.new @target
|
28
31
|
self.select_algorithm
|
29
32
|
self.select_starting_point
|
data/lib/biopsy/version.rb
CHANGED