Skip to content

issue when running the example kge-predict-transe-pyg-train.ipynb #554

@ladwis

Description

@ladwis

Describe the bug
In the Jupyter notebook of "kge-predict-transe-pyg-train.ipynb", the function create_data_from_graph(relationship_type) doesn't produce the result expected. Instead, an error occurs with the message Index contains duplicate entries, cannot reshape when calling the function train_tensor_data = create_data_from_graph(["TRAIN"]. Plus, "TRAIN" must be between square brackets "[]".

To Reproduce

graphdatascience library version: X.Y
GDS plugin version: X.Y.Z
Python version: X.Y.Z
Neo4j version: X.Y.Z
Operating system: (for example Windows 95/Ubuntu 16.04)

Steps to reproduce the behavior:

  • Graph/dataset to reproduce the bug. Alternatively describe as much as possible the data, e.g., graph size and other schema/structure details.
  • Python code
  • Other queries not run through the python client

Expected behavior

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions