image thumbnail

ARMADA Data Mining Tool version 1.4

by

 

13 Feb 2003 (Updated )

An association rule data mining tool for experimentation and analysis.

genRuleVariantsWithGoal(rules,candidates,min_confidence,RHS_goal,LHS_goal)
%-------------------------------------------------------------------------------------
%ARMADA - Association Rule Mining And Deduction Analysis
%Desciprtion:	Data Mining Tool for extraction of association rules and analysis
%					of deduction methods.
%Author& 
%Copyright: 	James Malone
%Date:			14/04/03
%Version:		1.2
%-------------------------------------------------------------------------------------

%-------------------------------------------------------------------------

%Function to generate rule variants for given set of rules if it meets
%either goal criteria.  Returns new_rules as rule variants
function new_rules = genRuleVariantsWithGoal(rules,candidates,min_confidence,RHS_goal,LHS_goal)

%Ensure that preconditions have been properly met, i.e. that neither
%rules nor candidates is empty
if (~isempty(rules) & ~isempty(candidates))
  	%For each set of rules for a given LHS size
	for a = 1:size(rules,2)
   	fprintf('Generating rule variants %g of %g\n',a,size(rules,2));
   	%Generate all variants initially
   	new_rules{a} = gen1RHSWithGoal(rules{a},RHS_goal,LHS_goal);
   	if (~isempty(new_rules{a}))
   		%Now check for minimum coverage of 1RHS variants
   		new_rules{a}{4} = calculateConfidence(rules,candidates,new_rules{a});
   	end %end if  
   end %end for
else
 	new_rules = []; 
end %end if
 
%End----------------------------------------------------------------------

Contact us