From 65b2b8fc258abb64f6189c831d95b815db7621c9 Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Mon, 21 May 2012 15:21:46 +0200 Subject: Corrected LAST effect calculation --- fminer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3