return (numerator + Constants.EPSILON) / (denomerator + Constants.EPSILON);
}
@Override
protected void adjustOutputs(Tree tree, TreeLeafInstances treeLeafInstances) {
LeafInstances leafInstances = new LeafInstances();
for (int l = 0; l < tree.numLeaves; l++) {
treeLeafInstances.loadLeafInstances(l, leafInstances);
double adjustedOutput = getAdjustedOutput(leafInstances);
((RegressionTree) tree).setLeafOutput(l, adjustedOutput);
}