# Can't proceed with 04\_Predictions.ipynb - Data Science with Neo4j

**URL:** <https://community.neo4j.com/t/cant-proceed-with-04-predictions-ipynb-data-science-with-neo4j/28730>\
**Category:** Graph Academy\
**Created:** [November 10, 2020, 3:24am UTC](https://community.neo4j.com/t/cant-proceed-with-04-predictions-ipynb-data-science-with-neo4j/28730 "2020-11-10T03:24:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dongho](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dongho/32/3279_2.png) [@Dongho](https://community.neo4j.com/u/Dongho)\
**Post date:** [November 10, 2020, 3:24am UTC](https://community.neo4j.com/t/cant-proceed-with-04-predictions-ipynb-data-science-with-neo4j/28730/1 "2020-11-10T03:24:02Z")

</div>

I did follow the training well up to this step in the google jupyter notebook:  
train\_missing\_links = graph.run("""  
MATCH (author:Author)  
WHERE (author)-[:CO\_AUTHOR\_EARLY]-()  
MATCH (author)-[:CO\_AUTHOR\_EARLY\*2..3]-(other)  
WHERE not((author)-[:CO\_AUTHOR\_EARLY]-(other))  
RETURN id(author) AS node1, id(other) AS node2, 0 AS label  
""").to\_data\_frame()

Here it took forever not finished, so I tried it on the sandbox browser but it returned WebSocket fail after long time.

I changed it like this and could get the result within a minute:  
MATCH (author:Author)  
WHERE (author)-[:CO\_AUTHOR\_EARLY]-()  
MATCH p = (author)-[:CO\_AUTHOR\_EARLY\*2..3]-(other)  
WHERE not((author)-[:CO\_AUTHOR\_EARLY]-(other))  
return count(p)

Would you help me to run the original code to proceed the training?

---

<div class="post-metadata">

**Author:** ![elaine\_rosenber](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/elaine_rosenber/32/27409_2.png) [@elaine\_rosenber](https://community.neo4j.com/u/elaine_rosenber)\
**Post date:** [November 10, 2020, 1:07pm UTC](https://community.neo4j.com/t/cant-proceed-with-04-predictions-ipynb-data-science-with-neo4j/28730/2 "2020-11-10T13:07:15Z")

</div>

Hello @Dongho,

From what you are describing, something in the graph went wrong, leading to a transaction that did not complete.

My suggestion is to create a new sandbox/jupyter environment and skip to that exercise.

Please keep in mind that this course uses the older Graph Algorithms Library that is supported with Neo4j 3.5. I strongly recommend that you take this newly-published course which is an update to this course for Neo4j 4.0 and uses the new Graph Data Science Library:

Using a Machine Learning Workflow for Link Prediction: [Data Scientist Courses | Free Neo4j Courses from GraphAcademy](https://neo4j.com/graphacademy/online-training/gds-data-science/)

Elaine

---

<div class="post-metadata">

**Author:** ![Dongho](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dongho/32/3279_2.png) [@Dongho](https://community.neo4j.com/u/Dongho)\
**Post date:** [November 12, 2020, 12:53am UTC](https://community.neo4j.com/t/cant-proceed-with-04-predictions-ipynb-data-science-with-neo4j/28730/3 "2020-11-12T00:53:49Z")

</div>

Thank you for giving the tips. I tried several times but it didn't work but only the modified to get its aggregation like count(p) worked.  
Now I gave it up and start the new training with Neo4j 4.0.

Dongho.
