Skip to content

Commit f26bbc2

Browse files
committed
Merge branch '1.0'
2 parents 1b9dedd + cc27290 commit f26bbc2

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- 2.0.2
2+
- Fix Decision Tree max height terminating condition
3+
14
- 2.0.1
25
- Compensate for PHP 8.1 backward compatibility issues
36

@@ -32,6 +35,9 @@
3235
- Change RBX serializer constructor argument from base to level
3336
- Rename Writeable extractor interface to Exporter
3437

38+
- 1.3.4
39+
- Fix Decision Tree max height terminating condition
40+
3541
- 1.3.3
3642
- Forego unnecessary logistic computation in Logit Boost
3743

src/Graph/Trees/DecisionTree.php

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

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

145-
$stack = [[$this->root, 1]];
145+
$stack = [[$this->root, 0]];
146146

147147
while ($stack) {
148148
[$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 = '2.0.1';
12+
const VERSION = '2.0.2';
1313

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

0 commit comments

Comments
 (0)