Skip to content

Commit

Permalink
Update to GDS 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasonjo committed Apr 18, 2022
1 parent cf8743d commit f139d75
Showing 1 changed file with 35 additions and 25 deletions.
60 changes: 35 additions & 25 deletions pyg2neo/Movie_recommendations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,19 @@
"<a href=\"https://colab.research.google.com/github/tomasonjo/blogs/blob/master/pyg2neo/Movie_recommendations.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "markdown",
"source": [
"* Updated to GDS 2.0 version\n",
"* Link to original blog post: https://towardsdatascience.com/integrate-neo4j-with-pytorch-geometric-to-create-recommendations-21b0b7bc9aa"
],
"metadata": {
"id": "Vfnh4de0ZSej"
}
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
Expand Down Expand Up @@ -101,7 +111,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"id": "RlHc8p58z6b1",
"outputId": "e792652a-af60-4c21-e004-f747a6dc1f44",
Expand Down Expand Up @@ -160,7 +170,7 @@
},
{
"cell_type": "code",
"execution_count": 68,
"execution_count": null,
"metadata": {
"id": "4ZKcA2wW5K_J"
},
Expand Down Expand Up @@ -192,7 +202,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {
"id": "hzMPQPQZ0Iqs",
"outputId": "77e9eff7-1976-431b-9c4e-f547de0c245f",
Expand Down Expand Up @@ -338,7 +348,7 @@
],
"source": [
"fetch_data(\"\"\"\n",
"CALL gds.graph.create('movies', ['Movie', 'Person'], \n",
"CALL gds.graph.project('movies', ['Movie', 'Person'], \n",
" {ACTED_IN: {orientation:'UNDIRECTED'}, DIRECTED: {orientation:'UNDIRECTED'}})\n",
"\"\"\")"
]
Expand All @@ -354,7 +364,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {
"id": "a4YBjJPk0Iqt",
"outputId": "1ed048d8-7ce7-44ae-c63a-59b359665280",
Expand Down Expand Up @@ -518,7 +528,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {
"id": "bX-Dlugy0Fyu"
},
Expand Down Expand Up @@ -550,7 +560,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {
"id": "b-QNMfvN3tk9"
},
Expand Down Expand Up @@ -584,7 +594,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {
"id": "8xF_x6SZ3wIy"
},
Expand All @@ -605,7 +615,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"metadata": {
"id": "B3MrEGO933bA"
},
Expand All @@ -630,7 +640,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {
"id": "n1QiEzKZ348J"
},
Expand Down Expand Up @@ -660,7 +670,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"metadata": {
"id": "9a3plIYf74tX"
},
Expand All @@ -684,7 +694,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
Expand Down Expand Up @@ -1101,7 +1111,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"metadata": {
"id": "tR4B7auh9_bu"
},
Expand Down Expand Up @@ -1133,7 +1143,7 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
Expand Down Expand Up @@ -1185,7 +1195,7 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": null,
"metadata": {
"id": "wWPosXvc_nYk"
},
Expand Down Expand Up @@ -1216,7 +1226,7 @@
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": null,
"metadata": {
"id": "_9p-mP6wAQ9-"
},
Expand Down Expand Up @@ -1262,7 +1272,7 @@
},
{
"cell_type": "code",
"execution_count": 28,
"execution_count": null,
"metadata": {
"id": "HNT9FX3eAjwt"
},
Expand All @@ -1278,7 +1288,7 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": null,
"metadata": {
"id": "RgPHXNpSAmJ2"
},
Expand All @@ -1289,7 +1299,7 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": null,
"metadata": {
"id": "JLlVrSU8AyxT"
},
Expand All @@ -1305,7 +1315,7 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": null,
"metadata": {
"id": "4dJtEPSuBTDI"
},
Expand All @@ -1325,7 +1335,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": null,
"metadata": {
"id": "cbRPYOIy0Iq5"
},
Expand Down Expand Up @@ -1353,7 +1363,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
Expand Down Expand Up @@ -1689,7 +1699,7 @@
},
{
"cell_type": "code",
"execution_count": 66,
"execution_count": null,
"metadata": {
"id": "MfxjlfZuCSPZ"
},
Expand Down Expand Up @@ -1756,7 +1766,7 @@
"height": 49
}
},
"execution_count": 69,
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
Expand Down

0 comments on commit f139d75

Please sign in to comment.