int[] indicesSparse = smo.sparseIndices()[0][1];
double[] weights = new double[trainCopy.numAttributes()];
for (int j = 0; j < weightsSparse.length; j++) {
weights[indicesSparse[j]] = weightsSparse[j] * weightsSparse[j];
}
weights[trainCopy.classIndex()] = Double.MAX_VALUE;
int minWeightIndex;
int[] featArray = new int[numToElim];
boolean[] eliminated = new boolean[origIndices.length];
for (int j = 0; j < numToElim; j++) {
minWeightIndex = Utils.minIndex(weights);