?? genrulevariantswithgoal.m
字號:
%-------------------------------------------------------------------------------------
%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----------------------------------------------------------------------
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -