www.gusucode.com > stats 源码程序 matlab案例代码 > stats/RankPredictorsByImportanceExample.m
%% Rank Predictors by Importance %% % Load the sample data. % Copyright 2015 The MathWorks, Inc. load ionosphere; %% % Rank the predictors based on importance. [ranked,weights] = relieff(X,Y,10); %% % Create a bar plot of predictor importance weights. bar(weights(ranked)); xlabel('Predictor rank'); ylabel('Predictor importance weight');