this.trainingData.append(data);
} else {</BUG>
this.validationData.append(data);
<BUG>}
} else {
if(random.nextDouble() >= validationRate) {
this.trainingData.append(data);
} else {
this.validationData.append(data);
}
}
} else {
this.trainingData.append(data);</BUG>
}

this.trainingData.append(data);
if(isPositive(data.label)) {
this.positiveTrainCount += 1L;
} else {
this.negativeTrainCount += 1L;
