0

Does anyone know whether the scaling functions mentioned here https://neo4j.com/docs/graph-data-science/current/alpha-algorithms/scale-properties/ exist within the python library, if so how can I call them?

1 Answers1

0

All the functions should be available through GDS python client. The following code should work:

G, metadata = gds.graph.project(
  'myGraph',
  'Hotel',
  '*',
  { nodeProperties: ['avgReview', 'buildYear', 'storyCapacity'] }
)


gds.alpha.scaleProperties.stream(G, {
  'nodeProperties': ['buildYear', 'avgReview'],
  'scaler': 'MinMax'
})
Tomaž Bratanič
  • 6,319
  • 2
  • 18
  • 31