if(outcomeIndex == -1) continue;
List<String> features = extractor.getFeatures(i);
if(features.size() == 0) continue;
String [] featuresArray = features.toArray(new String[0]);
String [] newFeaturesArray = features.toArray(new String[0]);
double [] baseProbs = gm.eval(featuresArray);
for(int j=0;j<features.size();j++) {
newFeaturesArray[j] = "IGNORETHIS";
double [] newProbs = gm.eval(newFeaturesArray);
double gain = infoLoss(newProbs, outcomeIndex) - infoLoss(baseProbs, outcomeIndex);
if(Double.isNaN(gain)) gain = 0.0;