Skip to content

Commit 9ca04f1

Browse files
committed
Add hyperparameter tuning to node embeddings
1 parent bcfac5d commit 9ca04f1

File tree

5 files changed

+638
-30
lines changed

5 files changed

+638
-30
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Creates a smaller projection by sampling the original graph using "Common Neighbour Aware Random Walk"
2+
3+
CALL gds.graph.sample.cnarw(
4+
$dependencies_projection + '-sampled-cleaned',
5+
$dependencies_projection,
6+
{
7+
samplingRatio: toFloat($dependencies_projection_sampling_ratio)
8+
}
9+
)
10+
YIELD graphName, fromGraphName, nodeCount, relationshipCount, startNodeCount, projectMillis
11+
RETURN graphName, fromGraphName, nodeCount, relationshipCount, startNodeCount, projectMillis

cypher/Node_Embeddings/Node_Embeddings_1d_Fast_Random_Projection_Stream.cypher

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CALL gds.fastRP.stream(
44
$dependencies_projection + '-cleaned', {
55
embeddingDimension: toInteger($dependencies_projection_embedding_dimension)
66
,randomSeed: 30
7+
,normalizationStrength: 0.3
78
,relationshipWeightProperty: $dependencies_projection_weight_property
89
}
910
)

0 commit comments

Comments
 (0)