Skip to content

Commit

Permalink
added optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
athawk81 committed Jul 10, 2015
1 parent e9e28fe commit 05ed22c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public boolean isInvalidSplit(double score) {

@Override
public boolean canTryAddingChildren(Branch<VC> parent, VC totals){
return (parent==null || parent.getDepth() < maxDepth-1);// && totals.getTotal() > 2 * minLeafInstances;
return (parent==null || parent.getDepth() < maxDepth-1 && totals.getTotal() >= 2 * minLeafInstances);
}

@Override
Expand Down

0 comments on commit 05ed22c

Please sign in to comment.