summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r--lib/algorithm.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb
index 0a5b09f..ec5748d 100644
--- a/lib/algorithm.rb
+++ b/lib/algorithm.rb
@@ -178,7 +178,8 @@ module OpenTox
sims = neighbors.collect{ |n| Algorithm.gauss(n[:similarity]) } # similarity values btwn q and nbors
prediction = local_svm(neighbors, acts, sims, "svr", params)
- prediction = take_logs ? 10**(prediction.to_f) : prediction.to_f
+ LOGGER.debug "Prediction is: '" + prediction.to_s + "'."
+ prediction = (take_logs ? 10**(prediction.to_f) : prediction.to_f)
LOGGER.debug "Prediction is: '" + prediction.to_s + "'."
conf = sims.inject{|sum,x| sum + x }