From 97e1498130a72f0a081b42759fa386a7460bb75d Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 18 Mar 2014 15:59:19 -0400 Subject: remove FEAST from our source, as our changes went upstream --- FEAST/MIToolbox/demonstration_algorithms/IAMB.m | 56 ------------------------- 1 file changed, 56 deletions(-) delete mode 100644 FEAST/MIToolbox/demonstration_algorithms/IAMB.m (limited to 'FEAST/MIToolbox/demonstration_algorithms/IAMB.m') diff --git a/FEAST/MIToolbox/demonstration_algorithms/IAMB.m b/FEAST/MIToolbox/demonstration_algorithms/IAMB.m deleted file mode 100644 index 1011260..0000000 --- a/FEAST/MIToolbox/demonstration_algorithms/IAMB.m +++ /dev/null @@ -1,56 +0,0 @@ -function [cmb association] = IAMB( data, targetindex, THRESHOLD) -%function [cmb association] = IAMB( data, targetindex, THRESHOLD) -% -%Performs the IAMB algorithm of Tsmardinos et al. (2003) -%from "Towards principled feature selection: Relevancy, filters and wrappers" - -if (nargin == 2) - THRESHOLD = 0.02; -end - -numf = size(data,2); -targets = data(:,targetindex); -data(:,targetindex) = -10; - -cmb = []; - -finished = false; -while ~finished - for n = 1:numf - cmbVector = joint(data(:,cmb)); - if isempty(cmb) - association(n) = mi( data(:,n), targets ); - end - - if ismember(n,cmb) - association(n) = -10; %arbtirary large negative constant - else - association(n) = cmi( data(:,n), targets, cmbVector); - end - end - - [maxval maxidx] = max(association); - if maxval < THRESHOLD - finished = true; - else - cmb = [ cmb maxidx ]; - end -end - -finished = false; -while ~finished && ~isempty(cmb) - association = []; - for n = 1:length(cmb) - cmbwithoutn = cmb; - cmbwithoutn(n)=[]; - association(n) = cmi( data(:,cmb(n)), targets, data(:,cmbwithoutn) ); - end - - [minval minidx] = min(association); - if minval > THRESHOLD - finished = true; - else - cmb(minidx) = []; - end -end - -- cgit v1.2.3