assertFalse(this.model.classify(dataPointTrue));
}
public void testTimesDelta() {
double[] values = {-1.0, -1.0, -1.0, -1.0, -1.0};
this.model.addDelta(new DenseVector(values));
double[] dotval = {-1.0, -1.0, -1.0, -1.0, -1.0};
for (int i = 0; i < dotval.length; i++) {
this.model.timesDelta(i, dotval[i]);
}
double[] valuesFalse = {1.0, 0.0, 1.0, 0.0, 1.0};
Vector dataPointFalse = new DenseVector(valuesFalse);
assertTrue(this.model.classify(dataPointFalse));
double[] valuesTrue = {0.0, 1.0, 0.0, 1.0, 0.0};
Vector dataPointTrue = new DenseVector(valuesTrue);
assertFalse(this.model.classify(dataPointTrue));
}