Skip to content

Commit

Permalink
bump rcf version to 4.1
Browse files Browse the repository at this point in the history
Signed-off-by: Kaituo Li <[email protected]>
  • Loading branch information
kaituo committed Jul 15, 2024
1 parent d076571 commit f5a29e6
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 14 deletions.
10 changes: 5 additions & 5 deletions Java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion Java/benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>software.amazon.randomcutforest</groupId>
<artifactId>randomcutforest-parent</artifactId>
<version>4.0.0</version>
<version>4.1.0</version>
</parent>

<artifactId>randomcutforest-benchmark</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Java/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>software.amazon.randomcutforest</groupId>
<artifactId>randomcutforest-parent</artifactId>
<version>4.0.0</version>
<version>4.1.0</version>
</parent>

<artifactId>randomcutforest-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Java/examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>software.amazon.randomcutforest</groupId>
<artifactId>randomcutforest-parent</artifactId>
<version>4.0.0</version>
<version>4.1.0</version>
</parent>

<artifactId>randomcutforest-examples</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Java/parkservices/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>software.amazon.randomcutforest</groupId>
<artifactId>randomcutforest-parent</artifactId>
<version>4.0.0</version>
<version>4.1.0</version>
</parent>

<artifactId>randomcutforest-parkservices</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>software.amazon.randomcutforest</groupId>
<artifactId>randomcutforest-parent</artifactId>
<version>4.0.0</version>
<version>4.1.0</version>
<packaging>pom</packaging>

<name>software.amazon.randomcutforest:randomcutforest</name>
Expand Down
2 changes: 1 addition & 1 deletion Java/serialization/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>software.amazon.randomcutforest</groupId>
<artifactId>randomcutforest-parent</artifactId>
<version>4.0.0</version>
<version>4.1.0</version>
</parent>

<artifactId>randomcutforest-serialization</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Java/testutils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>randomcutforest-parent</artifactId>
<groupId>software.amazon.randomcutforest</groupId>
<version>4.0.0</version>
<version>4.1.0</version>
</parent>

<artifactId>randomcutforest-testutils</artifactId>
Expand Down

0 comments on commit f5a29e6

Please sign in to comment.