aws / random-cut-forest-by-aws

An implementation of the Random Cut Forest data structure for sketching streaming data, with support for anomaly detection, density estimation, imputation, and more.
https://github.com/aws/random-cut-forest-by-aws
Apache License 2.0
211 stars 34 forks source link

Add serde for RCFCaster #360

Closed kaituo closed 1 year ago

kaituo commented 1 year ago

Description of changes:

This PR adds state and mapper class for RCFCaster.

This PR also formats CPUTest and V2TRCFToV3StateConverterTest using spotless. The content of those two files are not changed.

Testing done:

  1. added unit tests.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.