// do positives
double weightMultiplier = Math.pow(Math.E, -predictionValue);
for (Enumeration e = posInstances.enumerateInstances(); e.hasMoreElements(); ) {
Instance inst = (Instance) e.nextElement();
inst.setWeight(inst.weight() * weightMultiplier);
}
// do negatives
weightMultiplier = Math.pow(Math.E, predictionValue);
for (Enumeration e = negInstances.enumerateInstances(); e.hasMoreElements(); ) {
Instance inst = (Instance) e.nextElement();