mrmr算法,程序运行时出现此错误:函数或变量 't' 无法识别
2 次查看(过去 30 天)
显示 更早的评论
function [fea] = mrmr_mid_d(d, f, K)
% function [fea] = mrmr_mid_d(d, f, K)
%
% MID scheme according to MRMR
% d-输入N*M矩阵,N个采样值,M个特征,特征向量
% f-输入的N*1向量,分类结果
% K-选择的特征的个数
data=importdata('Iris.data');
d=data(:,1:end-1);
f=data(:,end);
K=3;
bdisp=0;
nd = size(d,2);
nc = size(d,1);
t1=cputime;
for i=1:nd
t(i) = mutualinfo(d(:,i), f);
end
fprintf('calculate the marginal dmi costs %5.1fs.\n', cputime-t1);
[tmp, idxs] = sort(-t);
fea_base = idxs(1:K);
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 COM Component Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!