diff options
author | Christoph Helma <helma@in-silico.ch> | 2015-09-10 12:54:18 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2015-09-10 12:54:18 +0200 |
commit | 96a476a2331daa4d1d6b5ac444bbdbd2ac221a5f (patch) | |
tree | 70d09c28efc104dee82058058b321e235421fe00 /lib/experiment.rb | |
parent | 5b844250a7d3be05e3139e0ca3c819c3da8ee4f6 (diff) |
tests fixed (crossvalidations may fail due to memory constraints)
Diffstat (limited to 'lib/experiment.rb')
-rw-r--r-- | lib/experiment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/experiment.rb b/lib/experiment.rb index 191e76e..2f51756 100644 --- a/lib/experiment.rb +++ b/lib/experiment.rb @@ -34,7 +34,7 @@ module OpenTox if cv $logger.debug "Creating #{cv} for #{model_algorithm}, dataset #{dataset.name}, with prediction_algorithm #{prediction_algorithm}, neighbor_algorithm #{neighbor_algorithm}, neighbor_algorithm_parameters #{neighbor_algorithm_parameter}." crossvalidation = cv.create model - crossvalidation_ids << crossvalidation.id + self.crossvalidation_ids << crossvalidation.id else $logger.warn "#{dataset.features.first} is neither nominal nor numeric." end @@ -55,7 +55,7 @@ module OpenTox def report # TODO create ggplot2 report - crossvalidation_ids.each do |id| + self.crossvalidation_ids.each do |id| cv = CrossValidation.find(id) file = "/tmp/#{id}.svg" File.open(file,"w+"){|f| f.puts cv.correlation_plot} |