-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust panic #398
Comments
This is likely the same issue as #374 Would you be able to drop in the cut.rs from the current PR (just changing that one file should not affect anything else)? Or is this arising in the current PR itself? The current PR performs the check against the length. |
And one of the main instigations for the new PR was to not have panics but at least enable the capability of propagating errors (but there are still ways to go in terms of messages and error details -- hopefully they can be handled iteratively) |
Amusingly, I just converted the logic from the Java version. I'll try your update. The RCF v4 update is interesting, I'm trying to understand everything you are saying. We currently struggle with 10gb heap running many multi dimensional trcf's. The way I read that is that we can have a single forest handling many? |
"we can have a single forest handling many" -> yes, with a price. If the time series are very different then precision/recall (measured via implanted anomalies) will reduce because the model can get confounded. This is ameliorated slightly based on the late detection (relative_index field) -- but again, mileage may vary. |
I get a new error now, could there be some dependent code elsewhere? deleting wrong node; looking for 4511 found 5311 |
What is happening is that the code is looking for (want) a specific value to delete and finding something else in that position |
I upgraded to your rcfv4 branch. I'm pleased to report:
well done. |
Thanks and thanks for trying the new branch. I am happy that it worked for you. |
Hi,
I get the following panic:
thread panicked at 'index out of bounds: the len is 32 but the index is 32', deps/rcf/Rust/src/samplerplustree/cut.rs:72:24
Seems the while loop doesn't break and dim is still incremented. I noticed that the Java code has additional code to handle this case.
Is it just appropriate in the Rust version to check if dim == points.len() and decrement? Or would implementing the additional logic
found in the Java version be required?
The text was updated successfully, but these errors were encountered: