Skip to content

Commit e9cddde

Browse files
committed
Betafy hashgnn and add beta note
1 parent 34cc1ef commit e9cddde

File tree

7 files changed

+32
-43
lines changed

7 files changed

+32
-43
lines changed

doc/modules/ROOT/pages/machine-learning/node-embeddings/hashgnn.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
:entity: node
55
:result: embedding
66
:algorithm: HashGNN
7-
7+
include::partial$/operations-reference/beta-note.adoc[]
88

99
:directed:
1010
:undirected:
@@ -253,7 +253,7 @@ include::partial$/algorithms/shared/syntax-intro-named-graph.adoc[]
253253
.Run HashGNN in stream mode on a named graph.
254254
[source, cypher, role=noplay]
255255
----
256-
CALL gds.alpha.hashgnn.stream(
256+
CALL gds.beta.hashgnn.stream(
257257
graphName: String,
258258
configuration: Map
259259
) YIELD
@@ -286,7 +286,7 @@ include::partial$/machine-learning/node-embeddings/hashgnn/specific-configuratio
286286
.Run HashGNN in mutate mode on a named graph.
287287
[source, cypher, role=noplay]
288288
----
289-
CALL gds.alpha.hashgnn.mutate(
289+
CALL gds.beta.hashgnn.mutate(
290290
graphName: String,
291291
configuration: Map
292292
) YIELD
@@ -425,7 +425,7 @@ include::partial$/algorithms/shared/examples-estimate-intro.adoc[]
425425
.The following will estimate the memory requirements for running the algorithm:
426426
[source, cypher, role=noplay]
427427
----
428-
CALL gds.alpha.hashgnn.stream.estimate('persons', {nodeLabels: ['Person'], iterations: 3, embeddingDensity: 2, binarizeFeatures: {dimension: 4, threshold: 0}, featureProperties: ['age', 'experience']})
428+
CALL gds.beta.hashgnn.stream.estimate('persons', {nodeLabels: ['Person'], iterations: 3, embeddingDensity: 2, binarizeFeatures: {dimension: 4, threshold: 0}, featureProperties: ['age', 'experience']})
429429
YIELD nodeCount, relationshipCount, bytesMin, bytesMax, requiredMemory
430430
----
431431

@@ -449,7 +449,7 @@ include::partial$/algorithms/shared/examples-stream-intro.adoc[]
449449
.The following will run the algorithm on Person nodes with binarization, and stream results:
450450
[source, cypher, role=noplay]
451451
----
452-
CALL gds.alpha.hashgnn.stream('persons',
452+
CALL gds.beta.hashgnn.stream('persons',
453453
{
454454
nodeLabels: ['Person'],
455455
iterations: 1,
@@ -489,7 +489,7 @@ Due to the random nature of the algorithm the results will vary between the runs
489489
.The following will run the algorithm on Person nodes on binary properties, and stream results:
490490
[source, cypher, role=noplay]
491491
----
492-
CALL gds.alpha.hashgnn.stream('persons',
492+
CALL gds.beta.hashgnn.stream('persons',
493493
{
494494
nodeLabels: ['Person'],
495495
iterations: 1,
@@ -522,7 +522,7 @@ In this example the embedding dimension becomes `1` because without binarization
522522
.The following will run the algorithm on Person nodes on generated features, and stream results:
523523
[source, cypher, role=noplay]
524524
----
525-
CALL gds.alpha.hashgnn.stream('persons',
525+
CALL gds.beta.hashgnn.stream('persons',
526526
{
527527
nodeLabels: ['Person'],
528528
iterations: 1,
@@ -556,7 +556,7 @@ And as we can see, each node has at least one feature active. The density is abo
556556
.The following will run the algorithm in heterogeneous mode, and stream results:
557557
[source, cypher, role=noplay]
558558
----
559-
CALL gds.alpha.hashgnn.stream('persons',
559+
CALL gds.beta.hashgnn.stream('persons',
560560
{
561561
heterogeneous: true,
562562
iterations: 2,
@@ -592,7 +592,7 @@ YIELD nodeId, embedding
592592
.The following will run the algorithm as in the previous example but with output densification, and stream results:
593593
[source, cypher, role=noplay]
594594
----
595-
CALL gds.alpha.hashgnn.stream('persons',
595+
CALL gds.beta.hashgnn.stream('persons',
596596
{
597597
heterogeneous: true,
598598
iterations: 2,
@@ -635,7 +635,7 @@ include::partial$/algorithms/shared/examples-mutate-intro.adoc[]
635635
.The following will run the algorithm in `mutate` mode:
636636
[source, cypher, role=noplay]
637637
----
638-
CALL gds.alpha.hashgnn.mutate(
638+
CALL gds.beta.hashgnn.mutate(
639639
'persons',
640640
{
641641
mutateProperty: 'hashgnn-embedding',

doc/modules/ROOT/pages/operations-reference/algorithm-references.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,6 @@
270270
.2+<.^|xref:algorithms/harmonic-centrality.adoc[Harmonic Centrality]
271271
| `gds.alpha.closeness.harmonic.stream`
272272
| `gds.alpha.closeness.harmonic.write`
273-
.4+<.^|xref:machine-learning/node-embeddings/hashgnn.adoc[HashGNN]
274-
| `gds.alpha.hashgnn.mutate`
275-
| `gds.alpha.hashgnn.mutate.estimate`
276-
| `gds.alpha.hashgnn.stream`
277-
| `gds.alpha.hashgnn.stream.estimate`
278273
.8+<.^|xref:algorithms/hits.adoc[HITS]
279274
| `gds.alpha.hits.mutate`
280275
| `gds.alpha.hits.mutate.estimate`
@@ -324,6 +319,11 @@
324319
| `gds.alpha.influenceMaximization.greedy.stream`
325320
.1+<.^| xref:algorithms/alpha/conductance.adoc[Conductance]
326321
| `gds.alpha.conductance.stream`
322+
.4+<.^|xref:machine-learning/node-embeddings/hashgnn.adoc[HashGNN]
323+
| `gds.beta.hashgnn.mutate`
324+
| `gds.beta.hashgnn.mutate.estimate`
325+
| `gds.beta.hashgnn.stream`
326+
| `gds.beta.hashgnn.stream.estimate`
327327
.8+<.^| xref:algorithms/kmeans.adoc[Kmeans]
328328
| `gds.beta.kmeans.mutate`
329329
| `gds.beta.kmeans.mutate.estimate`

doc/modules/ROOT/pages/operations-reference/machine-learning-references.adoc

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ include::partial$/operations-reference/model-operation-references.adoc[]
118118
| `gds.beta.graphSage.write.estimate`
119119
| `gds.beta.graphSage.train`
120120
| `gds.beta.graphSage.train.estimate`
121+
.4+<.^|xref:machine-learning/node-embeddings/hashgnn.adoc[HashGNN]
122+
| `gds.beta.hashgnn.mutate`
123+
| `gds.beta.hashgnn.mutate.estimate`
124+
| `gds.beta.hashgnn.stream`
125+
| `gds.beta.hashgnn.stream.estimate`
121126
.6+<.^|xref:machine-learning/node-embeddings/node2vec.adoc[Node2Vec]
122127
| `gds.beta.node2vec.mutate`
123128
| `gds.beta.node2vec.mutate.estimate`
@@ -126,19 +131,3 @@ include::partial$/operations-reference/model-operation-references.adoc[]
126131
| `gds.beta.node2vec.write`
127132
| `gds.beta.node2vec.write`.estimate
128133
|===
129-
130-
[[embeddings-alpha-tier]]
131-
=== Alpha tier
132-
133-
.List of all beta node embedding algorithms in the GDS library. Functions are written in _italic_.
134-
[[embeddings-table-alpha]]
135-
[role=procedure-listing]
136-
[opts=header,cols="1, 2"]
137-
|===
138-
|Algorithm name | Operation
139-
.4+<.^|xref:machine-learning/node-embeddings/hashgnn.adoc[HashGNN]
140-
| `gds.alpha.hashgnn.mutate`
141-
| `gds.alpha.hashgnn.mutate.estimate`
142-
| `gds.alpha.hashgnn.stream`
143-
| `gds.alpha.hashgnn.stream.estimate`
144-
|===

open-packaging/src/test/java/org/neo4j/gds/OpenGdsProcedureSmokeTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ class OpenGdsProcedureSmokeTest extends BaseProcTest {
9797
"gds.alpha.modularity.stats",
9898
"gds.alpha.modularity.stream",
9999

100-
"gds.alpha.hashgnn.mutate",
101-
"gds.alpha.hashgnn.mutate.estimate",
102-
"gds.alpha.hashgnn.stream",
103-
"gds.alpha.hashgnn.stream.estimate",
104-
105100
"gds.alpha.hits.mutate",
106101
"gds.alpha.hits.mutate.estimate",
107102
"gds.alpha.hits.stats",
@@ -120,6 +115,11 @@ class OpenGdsProcedureSmokeTest extends BaseProcTest {
120115
"gds.alpha.nodeSimilarity.filtered.write",
121116
"gds.alpha.nodeSimilarity.filtered.write.estimate",
122117

118+
"gds.beta.hashgnn.mutate",
119+
"gds.beta.hashgnn.mutate.estimate",
120+
"gds.beta.hashgnn.stream",
121+
"gds.beta.hashgnn.stream.estimate",
122+
123123
"gds.beta.pipeline.linkPrediction.addFeature",
124124
"gds.beta.pipeline.linkPrediction.addNodeProperty",
125125
"gds.beta.pipeline.linkPrediction.addLogisticRegression",

proc/embeddings/src/main/java/org/neo4j/gds/embeddings/hashgnn/HashGNNMutateProc.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
import static org.neo4j.gds.executor.ExecutionMode.MUTATE_NODE_PROPERTY;
4040
import static org.neo4j.procedure.Mode.READ;
4141

42-
@GdsCallable(name = "gds.alpha.hashgnn.mutate", description = DESCRIPTION, executionMode = MUTATE_NODE_PROPERTY)
42+
@GdsCallable(name = "gds.beta.hashgnn.mutate", description = DESCRIPTION, executionMode = MUTATE_NODE_PROPERTY)
4343
public class HashGNNMutateProc extends MutatePropertyProc<HashGNN, HashGNN.HashGNNResult, HashGNNMutateProc.MutateResult, HashGNNMutateConfig> {
4444

45-
@Procedure(value = "gds.alpha.hashgnn.mutate", mode = READ)
45+
@Procedure(value = "gds.beta.hashgnn.mutate", mode = READ)
4646
@Description(DESCRIPTION)
4747
public Stream<MutateResult> mutate(
4848
@Name(value = "graphName") String graphName,
@@ -55,7 +55,7 @@ public Stream<MutateResult> mutate(
5555
return mutate(computationResult);
5656
}
5757

58-
@Procedure(value = "gds.alpha.hashgnn.mutate.estimate", mode = READ)
58+
@Procedure(value = "gds.beta.hashgnn.mutate.estimate", mode = READ)
5959
@Description(DESCRIPTION)
6060
public Stream<MemoryEstimateResult> estimate(
6161
@Name(value = "graphNameOrConfiguration") Object graphNameOrConfiguration,

proc/embeddings/src/main/java/org/neo4j/gds/embeddings/hashgnn/HashGNNStreamProc.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
import static org.neo4j.gds.executor.ExecutionMode.STREAM;
4242
import static org.neo4j.procedure.Mode.READ;
4343

44-
@GdsCallable(name = "gds.alpha.hashgnn.stream", description = DESCRIPTION, executionMode = STREAM)
44+
@GdsCallable(name = "gds.beta.hashgnn.stream", description = DESCRIPTION, executionMode = STREAM)
4545
public class HashGNNStreamProc extends StreamProc<HashGNN, HashGNN.HashGNNResult, HashGNNStreamProc.StreamResult, HashGNNStreamConfig> {
4646

47-
@Procedure(value = "gds.alpha.hashgnn.stream", mode = READ)
47+
@Procedure(value = "gds.beta.hashgnn.stream", mode = READ)
4848
@Description(DESCRIPTION)
4949
public Stream<StreamResult> stream(
5050
@Name(value = "graphName") String graphName,
@@ -57,7 +57,7 @@ public Stream<StreamResult> stream(
5757
return stream(computationResult);
5858
}
5959

60-
@Procedure(value = "gds.alpha.hashgnn.stream.estimate", mode = READ)
60+
@Procedure(value = "gds.beta.hashgnn.stream.estimate", mode = READ)
6161
@Description(DESCRIPTION)
6262
public Stream<MemoryEstimateResult> estimate(
6363
@Name(value = "graphNameOrConfiguration") Object graphNameOrConfiguration,

proc/embeddings/src/test/java/org/neo4j/gds/embeddings/hashgnn/HashGNNStreamProcTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void shouldComputeNonZeroEmbeddings() {
5555
runQuery(graphCreateQuery);
5656

5757
GdsCypher.ParametersBuildStage queryBuilder = GdsCypher.call(GRAPH_NAME)
58-
.algo("gds.alpha.hashgnn")
58+
.algo("gds.beta.hashgnn")
5959
.streamMode()
6060
.addParameter("featureProperties", List.of("f1", "f2"))
6161
.addParameter("embeddingDensity", 2)

0 commit comments

Comments
 (0)