Skip to content

Commit 93c9a08

Browse files
committed
Don't yield probabilityDistribution unnecessary
1 parent 492f189 commit 93c9a08

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

proc/machine-learning/src/test/java/org/neo4j/gds/ml/linkmodels/pipeline/predict/LinkPredictionPipelineMutateProcTest.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,18 @@ void setup() throws Exception {
116116
@MethodSource("topNConcurrencyLabelCombinations")
117117
void shouldPredictWithTopN(int topN, int concurrency, String nodeLabel) {
118118
runQuery(
119-
"CALL gds.beta.pipeline.linkPrediction.predict.mutate('g', {" +
120-
" modelName: 'model'," +
121-
" sourceNodeLabel: $sourceNodeLabel," +
122-
" targetNodeLabel: $targetNodeLabel," +
123-
" mutateRelationshipType: 'PREDICTED'," +
124-
" threshold: 0," +
125-
" topN: $topN," +
126-
" concurrency:" +
127-
" $concurrency" +
128-
"})",
119+
"""
120+
CALL gds.beta.pipeline.linkPrediction.predict.mutate('g', {
121+
modelName: 'model',
122+
sourceNodeLabel: $sourceNodeLabel,
123+
targetNodeLabel: $targetNodeLabel,
124+
mutateRelationshipType: 'PREDICTED',
125+
threshold: 0,
126+
topN: $topN,
127+
concurrency:
128+
$concurrency
129+
})
130+
YIELD computeMillis""",
129131
Map.of(
130132
"sourceNodeLabel", nodeLabel,
131133
"targetNodeLabel", nodeLabel,

0 commit comments

Comments
 (0)