Using Neo4j v4.4 and GDS 2.0. I'm trying to train a model. When I type:
CALL gds.beta.pipeline.nodeClassification.train('individual-graph', {
pipeline: 'pipe',
nodeLabels: ['PERSON'],
modelName: 'xmen-model-fastRP',
targetProperty: 'is_risky',
metrics: ['F1_WEIGHTED','ACCURACY'],
randomSeed: 2
}) YIELD modelInfo
RETURN
modelInfo.bestParameters AS winningModel,
modelInfo.metrics.F1_WEIGHTED.outerTrain AS trainGraphScore,
modelInfo.metrics.F1_WEIGHTED.test AS testGraphScore
I get the following error message:
Failed to invoke procedure gds.beta.pipeline.nodeClassification.train
: Caused by: java.lang.IllegalArgumentException: Target property is_risky
not found in graph with node properties: [[embedding]]
What am I doing wrong? Can you help please?