summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-07-02 12:34:19 +0200
committerChristoph Helma <helma@in-silico.ch>2010-07-02 12:34:19 +0200
commit59a4c9fba3ca77d9901dad2457fe1c5618a099ca (patch)
tree9858db447bee1cc3e7bf7aeb0dffdb2404c89c81 /lib
parent7c0d46613a9ce5b0bc2228db61b6f1274cde56f5 (diff)
getting regression values from prediction datasets fixed
Diffstat (limited to 'lib')
-rw-r--r--lib/ot_predictions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ot_predictions.rb b/lib/ot_predictions.rb
index 641fd8f..63debc0 100644
--- a/lib/ot_predictions.rb
+++ b/lib/ot_predictions.rb
@@ -107,7 +107,7 @@ module Lib
predicted_values << class_values.index(value)
confidence_values << prediction_dataset.get_prediction_confidence(c, predicted_variable)
else
- value = prediction_dataset.get_value(c, predicted_variable)
+ value = prediction_dataset.get_predicted_regression(c, predicted_variable)
begin
value = value.to_f unless value==nil or value.is_a?(Numeric)
rescue
@@ -137,4 +137,4 @@ module Lib
end
end
-end \ No newline at end of file
+end