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(' ');

 采纳的回答

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

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Testing Frameworks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by