summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-05-05 07:17:04 +0200
committerAndreas Maunz <andreas@maunz.de>2011-05-05 07:17:04 +0200
commit435540f4be8787e0c34a64a2d2d7ed3118be9de9 (patch)
tree4cd4d35e10042b9e2d124ebcfe8ad0222d741aaa /lib/algorithm.rb
parent612db56ce522a632414158917c2462fe40c242dc (diff)
Fixed activity output
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r--lib/algorithm.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb
index 54ca064..008e7fe 100644
--- a/lib/algorithm.rb
+++ b/lib/algorithm.rb
@@ -215,7 +215,7 @@ module OpenTox
LOGGER.debug "Predicting ..."
@r.eval "p<-predict(model,sims)[1,1]"
prediction = 10**(@r.p.to_f)
- LOGGER.debug "Prediction is: '" + @prediction.to_s + "'."
+ LOGGER.debug "Prediction is: '" + prediction.to_s + "'."
@r.quit # free R
end
confidence = conf/neighbors.size if neighbors.size > 0