Skip to content

Commit cc27290

Browse files
committed
Fix Decision Tree max height terminating condition
1 parent 25325b3 commit cc27290

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- 1.3.4
2+
- Fix Decision Tree max height terminating condition
3+
14
- 1.3.3
25
- Forego unnecessary logistic computation in Logit Boost
36

src/Graph/Trees/DecisionTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function grow(Labeled $dataset) : void
141141

142142
$this->root = $this->split($dataset);
143143

144-
$stack = [[$this->root, 1]];
144+
$stack = [[$this->root, 0]];
145145

146146
while ($stack) {
147147
[$current, $depth] = array_pop($stack);

src/constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @var string
1111
*/
12-
const VERSION = '1.3.2';
12+
const VERSION = '1.3.3';
1313

1414
/**
1515
* A small number used in substitution of 0.

0 commit comments

Comments
 (0)