assertTrue(p.predict(getPositiveInstance().getVector()).getValue() > 0.5);
assertTrue(p.predict(getNegativeInstance().getVector()).getValue() < 0.5);
}
public void testInstanceNotModified(UpdateableLinearModel model) {
BinaryLabeledInstance instance = getPositiveInstance();
StringKeyedVector instanceCopy = instance.getVector().copy();
model.update(instance);
assertEquals(instance.getVector().getCoordinate("foo"), instanceCopy.getCoordinate("foo"), 0.0);
assertEquals(instance.getVector().getCoordinate("bar"), instanceCopy.getCoordinate("bar"), 0.0);
}