diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-05-17 16:40:12 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-05-19 09:14:37 +0200 |
commit | eb2582799bb5a05e053e2709db47880430f80a78 (patch) | |
tree | d50012cd09e019cb95c400d1276438176e95a641 /lib | |
parent | cb0cc893c74016425b56424093a6de1b2f795c70 (diff) |
Add debug
Diffstat (limited to 'lib')
-rw-r--r-- | lib/algorithm.rb | 3 |
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 } |