Many thanks, that actually gives results as the following (couldn't upload the graph image:
βββββββββββββββββββββββββββ
βn β
βββββββββββββββββββββββββββ‘
β(:Image {scene_id: 1.0}) β
βββββββββββββββββββββββββββ€
β(:Image {scene_id: 2.0}) β
βββββββββββββββββββββββββββ€
β(:Image {scene_id: 3.0}) β
βββββββββββββββββββββββββββ€
β(:Image {scene_id: 4.0}) β
βββββββββββββββββββββββββββ€
β(:Image {scene_id: 5.0}) β
βββββββββββββββββββββββββββ€
β(:Image {scene_id: 6.0}) β
βββββββββββββββββββββββββββ€
β(:Object {obj_type: 1.0})β
βββββββββββββββββββββββββββ€
β(:Object {obj_type: 2.0})β
------- so on
Now I am working on next steps and the node properties are unable to be fetched for embeddings. I show below the code and the outputs:
CALL gds.graph.project(
'imgraph1', // Name of the in-memory graph
{
Image: {properties:'scene_id'},
Object: {properties:'obj_type'},
Lane: {properties:'direction'}
},
{
CONTAINS: { type: 'CONTAINS', orientation: 'NATURAL' },
IN_LANE: { type: 'IN_LANE', orientation: 'NATURAL' }
}
)
YIELD
graphName AS graph,
nodeCount AS nodes,
relationshipCount AS rels,
nodeProjection AS nod
The output of the query given above seems fine:
Graph Name: imgraph1
Node Count: 13
Relationship Count: 20
nodeProjection: {'Lane': {'label': 'Lane', 'properties': {'direction': {'property': 'direction', 'defaultValue': None}}}, 'Image': {'label': 'Image', 'properties': {'scene_id': {'property': 'scene_id', 'defaultValue': None}}}, 'Object': {'label': 'Object', 'properties': {'obj_type': {'property': 'obj_type', 'defaultValue': None}}}}
Now, comes the embeddings query:
CALL gds.fastRP.mutate('imgraph1', {
embeddingDimension: 64,
featureProperties : ['scene_id', 'obj_type','direction'],
iterationWeights: [0.1, 0.1, 0.1, 0.1, 0.1, 0.5],
mutateProperty: 'embedding'
})
YIELD nodePropertiesWritten
And for this query, I am getting the following error:
Failed to invoke procedure gds.fastRP.mutate
: Caused by: java.lang.IllegalArgumentException: The feature properties ['direction', 'obj_type', 'scene_id'] are not present for all requested labels. Requested labels: ['Image', 'Lane', 'Object']. Properties available on all requested labels: