All feature scoring algorithms implements the following method. Higher scores are better.
public double score(int attIndex);
Typical usage of a feature scoring algorithm is shown in the snippet below
/* Load the iris data set */ /* Create a feature scoring algorithm */ GainRatio ga = new GainRatio(); /* Apply the algorithm to the data set */ ga.build(data); /* Print out the score of each attribute */ for (int i = 0; i < ga.noAttributes(); i++)