image thumbnail

ARMADA Data Mining Tool version 1.4

by

 

13 Feb 2003 (Updated )

An association rule data mining tool for experimentation and analysis.

displayAnalysisRuleGraph()
%-------------------------------------------------------------------------------------
%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 display a figure with a bar chart of LHS size vs no. of rules
function displayAnalysisRuleGraph()

rules = get(gcbf,'UserData');
full_object = findobj(gcbf,'Tag','full_no_rules_box');
full_no_rules = get(full_object,'String');
no_full = str2num(full_no_rules);
samp_object = findobj(gcbf,'Tag','samp_no_rules_box');
samp_no_rules = get(samp_object,'String');
no_samp = str2num(samp_no_rules);

%Convert counts to percentage for comparison of sample and full---------
for i=1:size(rules{1},2)
   %Store full data set mined rules
   full_count(i,1) = round((rules{1}(i)/no_full)*100);
   full_count(i,2) = 0;
end  

%Convert counts to percentage for comparison----------------
for i=1:size(rules{2},2)
   %Store full sample mined rules
   full_count(i,2) = round((rules{2}(i)/no_samp)*100);
end   
%-----------------------------------------------------------

Bar_Window = figure('Name','Data Miner - Rule Count Bar Graph','NumberTitle','Off');
set(gcf,'menubar','none');

%Plot bar chart of full_count vs element number
bar(full_count,'grouped'),colormap(cool);
title('Graph of No of Rules Using FULL Data');
xlabel('Size of LHS');
ylabel('No of Rules (%)');
legend('Full Data','Sampled Data');
uicontrol(Bar_Window,'Style','pushbutton','String','Print','Position',[10,50,40,30],'Callback','print'); 
uicontrol(Bar_Window,'Style','pushbutton','String','Close','Position',[10,10,40,30],'Callback','close');

%End----------------------------------------------------------------------

Contact us