From f5a29e6103ba57753cab7338653766401e93b85b Mon Sep 17 00:00:00 2001 From: Kaituo Li Date: Fri, 12 Jul 2024 15:05:32 -0700 Subject: [PATCH] bump rcf version to 4.1 Signed-off-by: Kaituo Li --- Java/README.md | 10 +++++----- Java/benchmark/pom.xml | 2 +- Java/core/pom.xml | 2 +- .../java/com/amazon/randomcutforest/state/Version.java | 2 ++ .../state/preprocessor/PreprocessorState.java | 4 ++-- Java/examples/pom.xml | 2 +- Java/parkservices/pom.xml | 2 +- Java/pom.xml | 2 +- Java/serialization/pom.xml | 2 +- Java/testutils/pom.xml | 2 +- 10 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Java/README.md b/Java/README.md index 31aea0e0..61c34938 100644 --- a/Java/README.md +++ b/Java/README.md @@ -157,7 +157,7 @@ vector data point, scores the data point, and then updates the model with this point. The program output appends a column of anomaly scores to the input: ```text -$ java -cp core/target/randomcutforest-core-3.5.0.jar com.amazon.randomcutforest.runner.AnomalyScoreRunner < ../example-data/rcf-paper.csv > example_output.csv +$ java -cp core/target/randomcutforest-core-4.1.0.jar com.amazon.randomcutforest.runner.AnomalyScoreRunner < ../example-data/rcf-paper.csv > example_output.csv $ tail example_output.csv -5.0029,0.0170,-0.0057,0.8129401629464965 -4.9975,-0.0102,-0.0065,0.6591046054520615 @@ -176,8 +176,8 @@ read additional usage instructions, including options for setting model hyperparameters, using the `--help` flag: ```text -$ java -cp core/target/randomcutforest-core-3.5.0.jar com.amazon.randomcutforest.runner.AnomalyScoreRunner --help -Usage: java -cp target/random-cut-forest-3.5.0.jar com.amazon.randomcutforest.runner.AnomalyScoreRunner [options] < input_file > output_file +$ java -cp core/target/randomcutforest-core-4.1.0.jar com.amazon.randomcutforest.runner.AnomalyScoreRunner --help +Usage: java -cp target/random-cut-forest-4.1.0.jar com.amazon.randomcutforest.runner.AnomalyScoreRunner [options] < input_file > output_file Compute scalar anomaly scores from the input rows and append them to the output rows. @@ -239,14 +239,14 @@ framework. Build an executable jar containing the benchmark code by running To invoke the full benchmark suite: ```text -% java -jar benchmark/target/randomcutforest-benchmark-3.5.0-jar-with-dependencies.jar +% java -jar benchmark/target/randomcutforest-benchmark-4.1.0-jar-with-dependencies.jar ``` The full benchmark suite takes a long time to run. You can also pass a regex at the command-line, then only matching benchmark methods will be executed. ```text -% java -jar benchmark/target/randomcutforest-benchmark-3.5.0-jar-with-dependencies.jar RandomCutForestBenchmark\.updateAndGetAnomalyScore +% java -jar benchmark/target/randomcutforest-benchmark-4.1.0-jar-with-dependencies.jar RandomCutForestBenchmark\.updateAndGetAnomalyScore ``` [rcf-paper]: http://proceedings.mlr.press/v48/guha16.pdf diff --git a/Java/benchmark/pom.xml b/Java/benchmark/pom.xml index 66fbde34..73d45069 100644 --- a/Java/benchmark/pom.xml +++ b/Java/benchmark/pom.xml @@ -6,7 +6,7 @@ software.amazon.randomcutforest randomcutforest-parent - 4.0.0 + 4.1.0 randomcutforest-benchmark diff --git a/Java/core/pom.xml b/Java/core/pom.xml index 2a977891..6f607062 100644 --- a/Java/core/pom.xml +++ b/Java/core/pom.xml @@ -6,7 +6,7 @@ software.amazon.randomcutforest randomcutforest-parent - 4.0.0 + 4.1.0 randomcutforest-core diff --git a/Java/core/src/main/java/com/amazon/randomcutforest/state/Version.java b/Java/core/src/main/java/com/amazon/randomcutforest/state/Version.java index 5ffdef60..7897243a 100644 --- a/Java/core/src/main/java/com/amazon/randomcutforest/state/Version.java +++ b/Java/core/src/main/java/com/amazon/randomcutforest/state/Version.java @@ -24,4 +24,6 @@ public class Version { public static final String V3_8 = "3.8"; public static final String V4_0 = "4.0"; + + public static final String V4_1 = "4.1"; } diff --git a/Java/core/src/main/java/com/amazon/randomcutforest/state/preprocessor/PreprocessorState.java b/Java/core/src/main/java/com/amazon/randomcutforest/state/preprocessor/PreprocessorState.java index bce00d04..4abe3470 100644 --- a/Java/core/src/main/java/com/amazon/randomcutforest/state/preprocessor/PreprocessorState.java +++ b/Java/core/src/main/java/com/amazon/randomcutforest/state/preprocessor/PreprocessorState.java @@ -15,7 +15,7 @@ package com.amazon.randomcutforest.state.preprocessor; -import static com.amazon.randomcutforest.state.Version.V4_0; +import static com.amazon.randomcutforest.state.Version.V4_1; import java.io.Serializable; @@ -27,7 +27,7 @@ public class PreprocessorState implements Serializable { private static final long serialVersionUID = 1L; - private String version = V4_0; + private String version = V4_1; private double useImputedFraction; private String imputationMethod; private String forestMode; diff --git a/Java/examples/pom.xml b/Java/examples/pom.xml index c01c5f7e..2a8805b0 100644 --- a/Java/examples/pom.xml +++ b/Java/examples/pom.xml @@ -7,7 +7,7 @@ software.amazon.randomcutforest randomcutforest-parent - 4.0.0 + 4.1.0 randomcutforest-examples diff --git a/Java/parkservices/pom.xml b/Java/parkservices/pom.xml index 2e80f8ce..103425f4 100644 --- a/Java/parkservices/pom.xml +++ b/Java/parkservices/pom.xml @@ -6,7 +6,7 @@ software.amazon.randomcutforest randomcutforest-parent - 4.0.0 + 4.1.0 randomcutforest-parkservices diff --git a/Java/pom.xml b/Java/pom.xml index 352dd4d4..af47a502 100644 --- a/Java/pom.xml +++ b/Java/pom.xml @@ -4,7 +4,7 @@ software.amazon.randomcutforest randomcutforest-parent - 4.0.0 + 4.1.0 pom software.amazon.randomcutforest:randomcutforest diff --git a/Java/serialization/pom.xml b/Java/serialization/pom.xml index 7c53e59d..fa070062 100644 --- a/Java/serialization/pom.xml +++ b/Java/serialization/pom.xml @@ -7,7 +7,7 @@ software.amazon.randomcutforest randomcutforest-parent - 4.0.0 + 4.1.0 randomcutforest-serialization diff --git a/Java/testutils/pom.xml b/Java/testutils/pom.xml index d4c10738..7de80649 100644 --- a/Java/testutils/pom.xml +++ b/Java/testutils/pom.xml @@ -4,7 +4,7 @@ randomcutforest-parent software.amazon.randomcutforest - 4.0.0 + 4.1.0 randomcutforest-testutils