The ensemble feature ranking algorithm is another form of feature ranking and as such provides the following method to determine the rank of a feature. Lower ranks are better.
public int rank(int attIndex);
/* Load the iris data set */ /* Create a feature ranking algorithm */ RecursiveFeatureEliminationSVM[] svmrfes = new RecursiveFeatureEliminationSVM[10]; for (int i = 0; i < svmrfes.length; i++) svmrfes[i] = new RecursiveFeatureEliminationSVM(0.2); LinearRankingEnsemble ensemble = new LinearRankingEnsemble(svmrfes); /* Build the ensemble */ ensemble.build(data); /* Get rank of i-th feature */ int rank=ensemble.rank(i)