Remove inefficient debug code previously missed.
This commit is contained in:
parent
5f280d09a1
commit
df35a2007a
1 changed files with 0 additions and 5 deletions
|
@ -59,9 +59,6 @@ public class TreeTrainer<Y> {
|
|||
Double bestSplitScore = 0.0; // may be null
|
||||
boolean first = true;
|
||||
|
||||
// temporary
|
||||
final List<SplitRule> previousRules = new ArrayList<>();
|
||||
|
||||
for(final String covariate : covariatesToTry){
|
||||
|
||||
final List<Row<Y>> shuffledData;
|
||||
|
@ -90,8 +87,6 @@ public class TreeTrainer<Y> {
|
|||
final SplitRule possibleRule = shuffledData.get(tries).getCovariate(covariate).generateSplitRule(covariate);
|
||||
final Split<Y> possibleSplit = possibleRule.applyRule(data);
|
||||
|
||||
previousRules.add(possibleRule);
|
||||
|
||||
final Double score = groupDifferentiator.differentiate(
|
||||
possibleSplit.leftHand.stream().map(row -> row.getResponse()).collect(Collectors.toList()),
|
||||
possibleSplit.rightHand.stream().map(row -> row.getResponse()).collect(Collectors.toList())
|
||||
|
|
Loading…
Reference in a new issue