} finally {
org.apache.commons.io.IOUtils.closeQuietly(stream);
}
return trees;
}
<BUG>private float[] sampleWeights() {

float[] sampleWeights;

if(this.treeNum == 1 || (this.isGBDT && !this.gbdtSampleWithReplacement)) {</BUG>
sampleWeights = new float[1];

} finally {
org.apache.commons.io.IOUtils.closeQuietly(stream);
}
return trees;
}
private float[] sampleWeights(float label) {
float[] sampleWeights = null;
double sampleRate = modelConfig.getTrain().getSampleNegOnly() ? 1d : modelConfig.getTrain()
.getBaggingSampleRate();
int classValue = (int) (label + 0.01f);
if(this.treeNum == 1 || (this.isGBDT && !this.gbdtSampleWithReplacement)) {
