diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-07-12 13:02:08 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-07-12 13:02:08 +0200 |
commit | 309f3d5e1ce60c96128b5e13ae22656c6d6eb4be (patch) | |
tree | 1ba09b45b42c4c6455249e17fa450bea32658706 | |
parent | 731e65f87d1ae3c4c8a676202f3fefcb7224159d (diff) |
Fixed effects calculation: Reversed and using internal values for classification
-rw-r--r-- | fminer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -153,8 +153,8 @@ post '/fminer/bbrc/?' do if (!@@bbrc.GetRegression) id_arrs = f[2..-1].flatten - max = OpenTox::Algorithm.effect(f[2..-1].reverse, fminer.db_class_sizes) - effect = @value_map[(f[2..-1].size-max)].to_s + max = OpenTox::Algorithm.effect(f[2..-1], fminer.db_class_sizes) + effect = f[2..-1].size-max else #regression part id_arrs = f[2] # DV: effect calculation @@ -290,7 +290,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 = @value_map[(g.size-max)].to_s + effect = g.size-max end feature_uri = File.join feature_dataset.uri,"feature","last", features.size.to_s unless features.include? smarts |