diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-05-21 15:21:46 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-05-21 15:21:46 +0200 |
commit | 65b2b8fc258abb64f6189c831d95b815db7621c9 (patch) | |
tree | 533c871da63f798a5b216befacb6e81b1d8a1464 | |
parent | 768580ea96d1e6bc355d4874adf341783a2953d7 (diff) |
Corrected LAST effect calculation
-rw-r--r-- | fminer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |