Skip to content

Commit a55916e

Browse files
breakanalysisadamnschMats-SX
committed
Apply review comments
Co-Authored-By: Adam Schill Collberg <adam.schill.collberg@protonmail.com> Co-Authored-By: Mats Rydberg <mats.rydberg@neotechnology.com>
1 parent 0e6d448 commit a55916e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

algo/src/main/java/org/neo4j/gds/embeddings/hashgnn/BinarizeFeaturesConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.neo4j.gds.annotation.Configuration;
2424

2525
import java.util.Collection;
26-
import java.util.Collections;
26+
import java.util.List;
2727
import java.util.Map;
2828

2929
@Configuration
@@ -47,7 +47,7 @@ default Map<String, Object> toMap() {
4747
@Value.Default
4848
@Value.Parameter(false)
4949
default Collection<String> configKeys() {
50-
return Collections.emptyList();
50+
return List.of();
5151
}
5252

5353
}

algo/src/main/java/org/neo4j/gds/embeddings/hashgnn/GenerateFeaturesConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.neo4j.gds.annotation.Configuration;
2424

2525
import java.util.Collection;
26-
import java.util.Collections;
26+
import java.util.List;
2727
import java.util.Map;
2828

2929
import static org.neo4j.gds.utils.StringFormatting.formatWithLocale;
@@ -47,7 +47,7 @@ default Map<String, Object> toMap() {
4747
@Value.Default
4848
@Value.Parameter(false)
4949
default Collection<String> configKeys() {
50-
return Collections.emptyList();
50+
return List.of();
5151
}
5252

5353
@Value.Check

doc/modules/ROOT/partials/machine-learning/node-embeddings/hashgnn/specific-configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
| heterogeneous | Boolean | false | yes | Whether different relationship types should be treated differently.
55
| neighborInfluence | Float | 1.0 | yes | Controls how often neighbors' features are sampled in each iteration relative to sampling the node's own features. Must be non-negative.
66
| binarizeFeatures | Map | n/a | yes | A map with keys `dimension` and `threshold`. If given, features are transformed into `dimension` binary features via hyperplane rounding. Increasing `threshold` makes the output more sparse, and it defaults to `0`. The value of `dimension` must be at least 1.
7-
| generateFeatures | Map | n/a | yes | A map with keys `dimension` and `densityLevel`. Should be given if and only if `featureProperties` is empty. If given, `dimension` binary features are generated with approximately `densityLevel` active features per node. Both must be at least 1 and `densityLevel` at most `density`.
7+
| generateFeatures | Map | n/a | yes | A map with keys `dimension` and `densityLevel`. Should be given if and only if `featureProperties` is empty. If given, `dimension` binary features are generated with approximately `densityLevel` active features per node. Both must be at least 1 and `densityLevel` at most `dimension`.
88
| outputDimension | Integer | n/a | yes | If given, the embeddings are projected randomly into `outputDimension` dense features. Must be at least 1.
99
| randomSeed | Integer | n/a | yes | A random seed which is used for all randomness in computing the embeddings.

0 commit comments

Comments
 (0)