简体   繁体   中英

Neo4j, Graph Data Science Python Library Scaling Functions

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?

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'
})

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM