diff options
author | mr <mr@mrautenberg.de> | 2011-05-25 13:37:06 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-05-25 13:37:06 +0200 |
commit | d5bf9fd2b7f4401c36d00ab6afb1a003fdb07d2f (patch) | |
tree | db88d9b1a7f01f7a24a597a05b293d9307dc1d3f /lib/algorithm.rb | |
parent | 796ef9b86fcdcf5f9520b958c09cb37ae1374bf4 (diff) | |
parent | 52e73a3da8e99da9a0a973b6ef9934297bc6511e (diff) |
Merge branch 'development' of github.com:opentox/opentox-ruby into development
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r-- | lib/algorithm.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb index 5b41cbf..96b9df1 100644 --- a/lib/algorithm.rb +++ b/lib/algorithm.rb @@ -202,7 +202,7 @@ module OpenTox acts_f = acts.collect {|v| v == true ? 1.0 : 0.0} sims = neighbors.collect{ |n| Algorithm.gauss(n[:similarity]) } # similarity values btwn q and nbors begin - prediction = local_svm (neighbors, acts_f, sims, "C-bsvc", params) + prediction = local_svm(neighbors, acts_f, sims, "C-bsvc", params) LOGGER.debug "Prediction is: '" + prediction.to_s + "'." rescue Exception => e LOGGER.debug "#{e.class}: #{e.message} #{e.backtrace}" |