Skip to content

Commit

Permalink
fix rcf random seed in preview (opendistro-for-elasticsearch#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
wnbts authored Mar 18, 2020
1 parent 56c9025 commit b5d8fd0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ public List<ThresholdingResult> getPreviewResults(double[][] dataPoints) {
int rcfNumFeatures = dataPoints[0].length;
RandomCutForest forest = RandomCutForest
.builder()
.randomSeed(0L)
.dimensions(rcfNumFeatures)
.sampleSize(rcfNumSamplesInTree)
.numberOfTrees(rcfNumTrees)
Expand Down

0 comments on commit b5d8fd0

Please sign in to comment.