summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-05-26 14:28:19 +0200
committerAndreas Maunz <andreas@maunz.de>2011-05-26 14:28:19 +0200
commit3922c8e5fcb9fbe6ddedab9f70e114717ff33a60 (patch)
tree0f151c6f6e9d61e2f9b532fdc34efc471878ddd6 /lib/algorithm.rb
parent852eef754518633f4a918aa1876ec3c4ac12ac57 (diff)
8th v
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 91e075a..2652695 100644
--- a/lib/algorithm.rb
+++ b/lib/algorithm.rb
@@ -164,7 +164,7 @@ module OpenTox
# @param [Array] neighbors, each neighbor is a hash with keys `:similarity, :activity, :features`
# @param [Hash] params Keys `:similarity_algorithm,:p_values` are required
# @return [Hash] Hash with keys `:prediction, :confidence`
- def self.local_svm_regression(neighbors, params)
+ def self.local_svm_regression(neighbors, params, props=nil)
take_logs=true
neighbors.each do |n|
if (! n[:activity].nil?) && (n[:activity].to_f < 0.0)