summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-05-21 15:21:46 +0200
committerAndreas Maunz <andreas@maunz.de>2012-05-21 15:21:46 +0200
commit65b2b8fc258abb64f6189c831d95b815db7621c9 (patch)
tree533c871da63f798a5b216befacb6e81b1d8a1464
parent768580ea96d1e6bc355d4874adf341783a2953d7 (diff)
Corrected LAST effect calculation
-rw-r--r--fminer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/fminer.rb b/fminer.rb
index 2248ae4..0665372 100644
--- a/fminer.rb
+++ b/fminer.rb
@@ -633,7 +633,7 @@ post '/fminer/last/?' do
@value_map.each { |y,act| g[y-1]=Array.new }
feat_hash.each { |x,y| g[y-1].push(x) }
max = OpenTox::Algorithm.effect(g, fminer.db_class_sizes)
- effect = g.size-max
+ effect = max+1
end
feature_uri = File.join feature_dataset.uri,"feature","last", features.size.to_s
unless features.include? smarts