Skip to content

Commit

Permalink
AlCatt91 published a site update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCatt91 committed May 24, 2024
1 parent fe05e06 commit 6d88f72
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
16 changes: 8 additions & 8 deletions _sources/notebooks/ogb_biokg_demo.ipynb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -47,7 +47,7 @@
"import seaborn as sns\n",
"\n",
"import ogb.linkproppred\n",
"from kg_topology_toolbox import TopologyToolbox # edit name of class after merging\n",
"from kg_topology_toolbox import KGTopologyToolbox\n",
"\n",
"dataset_directory = \"../../../data/ogb-biokg/\""
]
Expand All @@ -63,7 +63,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -181,7 +181,7 @@
"[5088434 rows x 3 columns]"
]
},
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -207,11 +207,11 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"kgtt = TopologyToolbox() # edit name of class after merging"
"kgtt = KGTopologyToolbox()"
]
},
{
Expand All @@ -231,7 +231,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -385,7 +385,7 @@
"[45085 rows x 6 columns]"
]
},
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
2 changes: 1 addition & 1 deletion _sources/user_guide.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ User guide
Installation and usage
------------------------

1. Pip install :code:`kg-topology-toolbox``:
1. Pip install :code:`kg-topology-toolbox`:

.. code-block::
Expand Down
16 changes: 8 additions & 8 deletions notebooks/ogb_biokg_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h2>Dependencies<a class="headerlink" href="#Dependencies" title="Link to this h
</pre></div></div>
</div>
<div class="nbinput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[1]:
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[2]:
</pre></div>
</div>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span>import numpy as np
Expand All @@ -128,7 +128,7 @@ <h2>Dependencies<a class="headerlink" href="#Dependencies" title="Link to this h
import seaborn as sns

import ogb.linkproppred
from kg_topology_toolbox import TopologyToolbox # edit name of class after merging
from kg_topology_toolbox import KGTopologyToolbox

dataset_directory = &quot;../../../data/ogb-biokg/&quot;
</pre></div>
Expand All @@ -139,7 +139,7 @@ <h2>Dependencies<a class="headerlink" href="#Dependencies" title="Link to this h
<h2>Data preparation<a class="headerlink" href="#Data-preparation" title="Link to this heading"></a></h2>
<p>We load the OGBL-BioKG dataset using the <code class="docutils literal notranslate"><span class="pre">ogb.linkproppred.LinkPropPredDataset</span></code> class and store all (h, r, t) triples in a <code class="docutils literal notranslate"><span class="pre">pandas</span></code> DataFrame.</p>
<div class="nbinput docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[2]:
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[3]:
</pre></div>
</div>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span>dataset = ogb.linkproppred.LinkPropPredDataset(
Expand All @@ -155,7 +155,7 @@ <h2>Data preparation<a class="headerlink" href="#Data-preparation" title="Link t
</div>
</div>
<div class="nboutput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[2]:
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[3]:
</pre></div>
</div>
<div class="output_area rendered_html docutils container">
Expand Down Expand Up @@ -256,10 +256,10 @@ <h2>Data preparation<a class="headerlink" href="#Data-preparation" title="Link t
</div>
<p>Based on this representation of the knowledge graph, we can proceed to compute its topological properties using the <code class="docutils literal notranslate"><span class="pre">KGTopologyToolbox</span></code> class.</p>
<div class="nbinput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[3]:
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[4]:
</pre></div>
</div>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span>kgtt = TopologyToolbox() # edit name of class after merging
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span>kgtt = KGTopologyToolbox()
</pre></div>
</div>
</div>
Expand All @@ -275,7 +275,7 @@ <h2>Node-level analysis<a class="headerlink" href="#Node-level-analysis" title="
<li><p><code class="docutils literal notranslate"><span class="pre">n_loops</span></code> is the number of loop edges around the node.</p></li>
</ul>
<div class="nbinput docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[4]:
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[5]:
</pre></div>
</div>
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span>node_ds = kgtt.node_degree_summary(biokg_df)
Expand All @@ -284,7 +284,7 @@ <h2>Node-level analysis<a class="headerlink" href="#Node-level-analysis" title="
</div>
</div>
<div class="nboutput nblast docutils container">
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[4]:
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[5]:
</pre></div>
</div>
<div class="output_area rendered_html docutils container">
Expand Down
16 changes: 8 additions & 8 deletions notebooks/ogb_biokg_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -47,7 +47,7 @@
"import seaborn as sns\n",
"\n",
"import ogb.linkproppred\n",
"from kg_topology_toolbox import TopologyToolbox # edit name of class after merging\n",
"from kg_topology_toolbox import KGTopologyToolbox\n",
"\n",
"dataset_directory = \"../../../data/ogb-biokg/\""
]
Expand All @@ -63,7 +63,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -181,7 +181,7 @@
"[5088434 rows x 3 columns]"
]
},
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -207,11 +207,11 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"kgtt = TopologyToolbox() # edit name of class after merging"
"kgtt = KGTopologyToolbox()"
]
},
{
Expand All @@ -231,7 +231,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -385,7 +385,7 @@
"[45085 rows x 6 columns]"
]
},
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
Loading

0 comments on commit 6d88f72

Please sign in to comment.