Skip to content

Commit

Permalink
changed to the right dataset api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
acostadon committed Sep 22, 2023
1 parent 2362b19 commit 3f34f79
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions notebooks/algorithms/link_prediction/similarity_combined.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,25 +83,6 @@
" display_html(df1_styler._repr_html_()+df2_styler._repr_html_()+df3_styler._repr_html_(), raw=True)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import cugraph\n",
"from cugraph.datasets import dining_prefs\n",
"gdf = dining_prefs.get_edgelist()\n",
"G = cugraph.Graph()\n",
"G = cugraph.from_cudf_edgelist(gdf, source='src', destination='dst', edge_attr = 'wgt')\n",
"jdf = cugraph.jaccard(G)\n",
"odf = cugraph.overlap(G)\n",
"sdf = cugraph.sorensen_coefficient(G)\n",
"print(jdf.head())\n",
"print(odf.head())\n",
"print(sdf.head())"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -115,7 +96,7 @@
"metadata": {},
"outputs": [],
"source": [
"G = dining_prefs.get_graph()"
"G = dining_prefs.get_graph(download=True)"
]
},
{
Expand Down

0 comments on commit 3f34f79

Please sign in to comment.