Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
acefb9a9
Unverified
Commit
acefb9a9
authored
May 07, 2019
by
Da Zheng
Committed by
GitHub
May 07, 2019
Browse files
[BUGFIX] fix the problems in the sampling tutorial. (#523)
* add index. * update. * update tutorial.
parent
edf3951c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
docs/source/index.rst
docs/source/index.rst
+2
-0
tutorials/models/5_giant_graph/1_sampling_mx.py
tutorials/models/5_giant_graph/1_sampling_mx.py
+2
-2
tutorials/models/5_giant_graph/README.txt
tutorials/models/5_giant_graph/README.txt
+1
-1
No files found.
docs/source/index.rst
View file @
acefb9a9
...
@@ -158,6 +158,8 @@ The model tutorials are categorized based on the way they utilize DGL APIs.
...
@@ -158,6 +158,8 @@ The model tutorials are categorized based on the way they utilize DGL APIs.
* :ref:`Generative models <tutorials3-index>`: Learn how to deal with **dynamically-changing graphs**.
* :ref:`Generative models <tutorials3-index>`: Learn how to deal with **dynamically-changing graphs**.
* :ref:`Old (new) wines in new bottle <tutorials4-index>`: Learn how to combine DGL with tensor-based
* :ref:`Old (new) wines in new bottle <tutorials4-index>`: Learn how to combine DGL with tensor-based
DGL framework in a flexible way. Explore new perspective on traditional models by graphs.
DGL framework in a flexible way. Explore new perspective on traditional models by graphs.
* :ref:`Training on giant graphs <tutorials5-index>`: Learn how to train graph neural networks
on giant graphs.
Or go through all of them :doc:`here <tutorials/models/index>`.
Or go through all of them :doc:`here <tutorials/models/index>`.
...
...
tutorials/models/5_giant_graph/sampling_mx.py
→
tutorials/models/5_giant_graph/
1_
sampling_mx.py
View file @
acefb9a9
...
@@ -389,8 +389,8 @@ if have_large_memory:
...
@@ -389,8 +389,8 @@ if have_large_memory:
# computation flow underlying a DAG can be executed in one sweep, by
# computation flow underlying a DAG can be executed in one sweep, by
# calling ``prop_flows``.
# calling ``prop_flows``.
#
#
# ``prop_flows`` accepts a list of UDFs. The code defines node update UDFs
# ``prop_flows`` accepts a list of UDFs. The code
below
defines node update UDFs
# for each layer.
# for each layer
and computes a simplified version of GCN with neighbor sampling
.
#
#
apply_node_funcs
=
[
apply_node_funcs
=
[
...
...
tutorials/models/5_giant_graph/README.txt
View file @
acefb9a9
...
@@ -5,7 +5,7 @@ Training on giant graphs
...
@@ -5,7 +5,7 @@ Training on giant graphs
=============================
=============================
* **Sampling** `[paper] <https://arxiv.org/abs/1710.10568>`__ `[tutorial]
* **Sampling** `[paper] <https://arxiv.org/abs/1710.10568>`__ `[tutorial]
<5_giant_graph/1_sampling.html>`__ `[MXNet code]
<5_giant_graph/1_sampling
_mx
.html>`__ `[MXNet code]
<https://github.com/dmlc/dgl/tree/master/examples/mxnet/sampling>`__ `[Pytorch code]
<https://github.com/dmlc/dgl/tree/master/examples/mxnet/sampling>`__ `[Pytorch code]
<https://github.com/dmlc/dgl/tree/master/examples/pytorch/sampling>`__:
<https://github.com/dmlc/dgl/tree/master/examples/pytorch/sampling>`__:
we can perform neighbor sampling and control-variate sampling to train
we can perform neighbor sampling and control-variate sampling to train
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment