summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-05-17 16:40:12 +0200
committerAndreas Maunz <andreas@maunz.de>2011-05-17 16:40:12 +0200
commit4372e80a38c5228f3b7d0372f92195e62500b743 (patch)
treed50012cd09e019cb95c400d1276438176e95a641
parent0e49be4d0ed4752d5988ed651d813f001e42c05b (diff)
Add debug
-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 }