Using a Machine Learning Workflow for Link Prediction

I am trying to run this tutorial. https://neo4j.com/graphacademy/training-gdsds-40/05-gdsds-predictions/

In this section where I have to run this code

  • test_missing_links = graph.run("""
  • MATCH (author:Author)
  • WHERE (author)-[:CO_AUTHOR_LATE]-()
  • MATCH (author)-[:CO_AUTHOR_LATE*2..3]-(other)
  • WHERE not((author)-[:CO_AUTHOR_LATE]-(other))
  • RETURN id(author) AS node1, id(other) AS node2, 0 AS label""").to_data_frame()

I get a run time error.

The transaction has been terminated. Retry your operation in a new transaction, and you should see a successful result. The transaction has not completed within the specified timeout (dbms.transaction.timeout). You may want to retry with a longer timeout.

I get this error from the neo4j browser as well as jupyter notebook.

I tried increasing the timeout, it did not seem to help, it times out after 30 secs.

Would appreciate any help.

Warm Regards,
Venkat

Hi

Did you see the transaction log. Please see what exception you are getting in transaction log and then apply fix accordingly.

Thanking you
Sameer Sudhir G

Thanks, Sameer.

I am trying to look for transactions log in my sandbox, could not find it. Any suggestions where to look?

Depending on OS you are running you can search for pattern *. log and you can find one
Many thanks
Mr Sameer Sudhir G