Closed zuoxiang95 closed 1 year ago
Thanks for letting us know. The failure is that the random cut was outside the bounding box. One is guessing there is some intervening data? Just the following test did not produce the error (because it does not invoke line 172 in RandomCutTree). Given that the seed is fixed, the error should be reproducible with the intervening data.
(on an orthogonal note, 150 trees may be more than you need ... given it is only 3 dimensional data)
@Test
public void Issue374(){
RandomCutForest forest = RandomCutForest.builder() .numberOfTrees(150) .dimensions(3) .sampleSize(256) .timeDecay(0.8) .outputAfter(256) .randomSeed(123) .build();
forest.update(new float[] {2.026634f, 2.2139728f, 0.0f});
}
Hopefully PR 376 will resolve this specific issue.
@sudiptoguha Thanks, I will try this version.
hello @sudiptoguha , I can't find new version "3.5.1" jar package in maven repository website. Could you please upload the new version code?
Hi @zuoxiang95, 3.5.1 should be posted to maven now.
Thanks Amit!
Thanks, guys!
hello, i get an error when updating the tree, here is my tree's config
RandomCutForest.builder() .numberOfTrees(150) .dimensions(3) .sampleSize(256) .timeDecay(0.8) .outputAfter(256) .randomSeed(123) .build()
the data point is Array(2.026634, 2.2139728, 0.0), and get the following exception: