You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(parkservices): preserve last descriptor fields; mark NaN feature indices in processSequentially (#414)
This PR
- `processSequentially`: before constructing each `AnomalyDescriptor`, scan the
point for `Double.NaN` values and set `missingValues` to the indices of the
missing features. This enables `processSequentially` to handle missing values.
- Preserve `currentInput` and `missingValues` during `ThresholdedRandomCutForest`
serialization so the last processed descriptor survives save/restore. Enables
downstream consumers to surface/impute per-feature missingness.
Testing
- Unit tests for TRCF round-trip serialization and NaN handling.
- Manual verification on sample streams.
Signed-off-by: kaituo <[email protected]>
Copy file name to clipboardExpand all lines: Java/parkservices/src/main/java/com/amazon/randomcutforest/parkservices/state/returntypes/ComputeDescriptorMapper.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ public class ComputeDescriptorMapper implements IStateMapper<RCFComputeDescripto
Copy file name to clipboardExpand all lines: Java/parkservices/src/main/java/com/amazon/randomcutforest/parkservices/state/returntypes/ComputeDescriptorState.java
Copy file name to clipboardExpand all lines: Java/parkservices/src/test/java/com/amazon/randomcutforest/parkservices/ThresholdedRandomCutForestTest.java
0 commit comments