Skip to content

Commit

Permalink
Some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Mar 30, 2022
1 parent d84b96d commit 1018230
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- Neural net-based learners can now train for 0 epochs
- Rename Labeled `stratify()` to `stratifyByLabel()`
- Added Sparse Cosine distance kernel
- Cosine distance now optimized for dense vectors
- Cosine distance now optimized for dense and sparse vectors
- Word Count Vectorizer now uses min count and max ratio DFs
- Numeric String Converter now handles NAN and INFs
- Numeric String Converter is now Reversible
Expand Down
2 changes: 1 addition & 1 deletion src/AnomalyDetectors/IsolationForest.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function train(Dataset $dataset) : void
? max(self::MIN_SUBSAMPLE, (int) round($this->ratio * $n))
: min(self::DEFAULT_SUBSAMPLE, $n);

$maxHeight = (int) max(1, round(log($p, 2)));
$maxHeight = (int) max(1, round(log($p, 2.0)));

$this->trees = [];

Expand Down

0 comments on commit 1018230

Please sign in to comment.