while running apriori algorithm in MATLAB i get the error message " Reference to non-existent field 'T' ".

clc;
clear;
close all;
%%Load Data
data=load('datamatrixx');
T=data.T;
%%Apriori
MST=0.22; % Minimum Support Threshold
MCT=0.6; % Minimum Confidence Threshold
[FinalRules, Rules]=Apriori(T,MST,MCT);
%%Results
disp('Final Rules:');
disp(' ');
DisplayRules(FinalRules);
disp(' ');

 Accepted Answer

Load your data:
data=load('datamatrixx');
and then check what fields it has:
fieldnames(data)
Does it contain a field named T ?

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!