关于嵌入参数,neo4j 文档是否不一致?

Is the neo4j documentation inconsistent regarding embedding parameter?

在本教程中,有以下示例: https://neo4j.com/developer/graph-data-science/applied-graph-embeddings/ 其中 'embeddingSize' 用于指定嵌入的向量长度。

CALL gds.alpha.node2vec.stream({
  nodeProjection: "Place",
  relationshipProjection: {
    eroad: {
      type: "EROAD",
      orientation: "UNDIRECTED"
    }
  },
  embeddingSize: 10,
  iterations: 10,
  walkLength: 10
})
YIELD nodeId, embedding
RETURN gds.util.asNode(nodeId).name AS place, embedding
LIMIT 5;

然而,在node2vec文档的签名中,它使用'embeddingDimension',而不是'embeddingSize'。是一样的东西吗?或者本教程的文档已过时? 'embeddingDimension'见下文: https://neo4j.com/docs/graph-data-science/current/algorithms/node2vec/#alpha-algorithms-embeddings-node2vec

图嵌入是在 1.3 版中引入的,您找到的教程是针对该版本的,它使用了 embeddingSize。然后你找到的第二个 link 是 node2Vec 的最新文档,它适用于 >= 1.4 版本。查看您的第二个 link 的 header,您将在下方看到

Neo4j Graph Data Science >
The Neo4j Graph Data Science Library Manual v1.5  >
Algorithms  >
Node embeddings  >
Node2Vec

Neo4j 文档不是 up-to-date,所以如果您真的很喜欢代码,可以在此处查看 github:https://github.com/neo4j/graph-data-science。它正在以光速变化!