this.learningRate = Double.valueOf(validParams.get(NNTrainer.LEARNING_RATE).toString());
Object swrObj = validParams.get("GBTSampleWithReplacement");
if(swrObj != null) {
this.gbdtSampleWithReplacement = Boolean.TRUE.toString().equalsIgnoreCase(swrObj.toString());
}
<BUG>}
if(this.isRF || (this.isGBDT && this.gbdtSampleWithReplacement)) {
this.rng = new PoissonDistribution[treeNum];
for(int i = 0; i < treeNum; i++) {
this.rng[i] = new PoissonDistribution(this.modelConfig.getTrain().getBaggingSampleRate());
}
}</BUG>
this.checkpointOutput = new Path(context.getProps().getProperty(

this.learningRate = Double.valueOf(validParams.get(NNTrainer.LEARNING_RATE).toString());
Object swrObj = validParams.get("GBTSampleWithReplacement");
if(swrObj != null) {
this.gbdtSampleWithReplacement = Boolean.TRUE.toString().equalsIgnoreCase(swrObj.toString());
}
}
this.isStratifiedSampling = this.modelConfig.getTrain().getStratifiedSample();
this.checkpointOutput = new Path(context.getProps().getProperty(
