Closed tomasonjo closed 1 year ago
If the node property you want to project needs a default value other than the one we define, you need to specify that in the node projection, like so:
CALL gds.graph.project('test', {Node: { properties: { degree : { defaultValue: 0.0 }}}}, 'REL')
GDS version: 2.1.4 Neo4j version: 4.4.8 Operating system: Ubuntu 20.04
When you load a value with default value, which is set to negative really small, the standard scaler with return NaN values:
Create graph:
Create some property for not all nodes
Project the graph:
Scale the property:
Results:
This error happened to me on a much larger graph where only a couple of nodes had the default value. Since the algo doesn't mention any problems, you only find out about it in a downstream task. Other scalers return weird results as well due to default value being such a big negative number. IDK what's the solution, but the user should know that the results contain NaN values