summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-05-25 13:37:06 +0200
committermr <mr@mrautenberg.de>2011-05-25 13:37:06 +0200
commitd5bf9fd2b7f4401c36d00ab6afb1a003fdb07d2f (patch)
treedb88d9b1a7f01f7a24a597a05b293d9307dc1d3f /lib/algorithm.rb
parent796ef9b86fcdcf5f9520b958c09cb37ae1374bf4 (diff)
parent52e73a3da8e99da9a0a973b6ef9934297bc6511e (diff)
Merge branch 'development' of github.com:opentox/opentox-ruby into development
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r--lib/algorithm.rb2
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}"