diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-06-29 17:18:14 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-06-29 17:18:14 +0200 |
commit | 7c0d46613a9ce5b0bc2228db61b6f1274cde56f5 (patch) | |
tree | ec28d4c82c2406405b8ed74a4e1701eb3e341274 /lib/ot_predictions.rb | |
parent | a90cbcfcbe352d12920f15fd6ce0469793ea7828 (diff) |
fix bug when performing regression
Diffstat (limited to 'lib/ot_predictions.rb')
-rw-r--r-- | lib/ot_predictions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ot_predictions.rb b/lib/ot_predictions.rb index 2e3e927..641fd8f 100644 --- a/lib/ot_predictions.rb +++ b/lib/ot_predictions.rb @@ -58,7 +58,7 @@ module Lib @compounds = test_dataset.compounds LOGGER.debug "test dataset size: "+@compounds.size.to_s raise "test dataset is empty" unless @compounds.size>0 - class_values = OpenTox::Feature.domain(prediction_feature) + class_values = is_classification ? OpenTox::Feature.domain(prediction_feature) : nil actual_values = [] @compounds.each do |c| |