summaryrefslogtreecommitdiff
path: root/lib/ot_predictions.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-06-29 17:18:14 +0200
committermguetlein <martin.guetlein@gmail.com>2010-06-29 17:18:14 +0200
commit7c0d46613a9ce5b0bc2228db61b6f1274cde56f5 (patch)
treeec28d4c82c2406405b8ed74a4e1701eb3e341274 /lib/ot_predictions.rb
parenta90cbcfcbe352d12920f15fd6ce0469793ea7828 (diff)
fix bug when performing regression
Diffstat (limited to 'lib/ot_predictions.rb')
-rw-r--r--lib/ot_predictions.rb2
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|