From eb2582799bb5a05e053e2709db47880430f80a78 Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Tue, 17 May 2011 16:40:12 +0200 Subject: Add debug --- lib/algorithm.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/algorithm.rb') 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 } -- cgit v1.2.3