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
5967d817
Unverified
Commit
5967d817
authored
Jan 26, 2020
by
Minjie Wang
Committed by
GitHub
Jan 26, 2020
Browse files
[Doc] Re-organize API docs and tutorials (#1222)
* reorg tutorials and api docs * fix
parent
f1a8f926
Changes
28
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
57 additions
and
166 deletions
+57
-166
docs/source/index.rst
docs/source/index.rst
+49
-141
tutorials/README.txt
tutorials/README.txt
+0
-0
tutorials/basics/2_basics.py
tutorials/basics/2_basics.py
+2
-2
tutorials/basics/3_pagerank.py
tutorials/basics/3_pagerank.py
+2
-2
tutorials/basics/4_batch.py
tutorials/basics/4_batch.py
+2
-2
tutorials/basics/5_hetero.py
tutorials/basics/5_hetero.py
+2
-2
tutorials/hetero/README.txt
tutorials/hetero/README.txt
+0
-1
tutorials/models/README.txt
tutorials/models/README.txt
+0
-16
No files found.
docs/source/index.rst
View file @
5967d817
...
...
@@ -34,168 +34,60 @@ Relationship of DGL to other frameworks
---------------------------------------
DGL is designed to be compatible and agnostic to the existing tensor
frameworks. It provides a backend adapter interface that allows easy porting
to other tensor-based, autograd-enabled frameworks. Currently, our prototype
works with MXNet/Gluon and PyTorch.
to other tensor-based, autograd-enabled frameworks.
Get Started
-----------
Get
ting
Started
-----------
----
.. toctree::
:maxdepth: 1
:caption: Get Started
:hidden:
:glob:
install/index
install/backend
Follow the :doc:`instructions<install/index>` to install DGL. The :doc:`DGL at a glance<tutorials/basics/1_first>`
is the most common place to get started with. Each tutorial is accompanied with a runnable
python script and jupyter notebook that can be downloaded.
.. ================================================================================================
(start) MANUALLY INCLUDE THE GENERATED TUTORIALS/BASIC/INDEX.RST HERE TO EMBED THE EXAMPLES
================================================================================================
.. raw:: html
<div class="sphx-glr-thumbcontainer">
.. only:: html
.. figure:: /tutorials/basics/images/thumb/sphx_glr_1_first_thumb.png
:ref:`sphx_glr_tutorials_basics_1_first.py`
.. raw:: html
</div>
.. toctree::
:hidden:
/tutorials/basics/1_first
.. raw:: html
<div class="sphx-glr-thumbcontainer">
.. only:: html
.. figure:: /tutorials/basics/images/thumb/sphx_glr_2_basics_thumb.png
:ref:`sphx_glr_tutorials_basics_2_basics.py`
.. raw:: html
</div>
.. toctree::
:hidden:
/tutorials/basics/2_basics
.. raw:: html
<div class="sphx-glr-thumbcontainer">
.. only:: html
.. figure:: /tutorials/basics/images/thumb/sphx_glr_3_pagerank_thumb.png
:ref:`sphx_glr_tutorials_basics_3_pagerank.py`
.. raw:: html
</div>
.. toctree::
:hidden:
/tutorials/basics/3_pagerank
.. raw:: html
</div>
.. raw:: html
<div class="sphx-glr-thumbcontainer">
.. only:: html
.. figure:: /tutorials/basics/images/thumb/sphx_glr_4_batch_thumb.png
:ref:`sphx_glr_tutorials_basics_4_batch.py`
.. raw:: html
</div>
.. toctree::
:hidden:
/tutorials/basics/4_batch
.. raw:: html
<div class="sphx-glr-thumbcontainer">
.. only:: html
.. figure:: /tutorials/hetero/images/thumb/sphx_glr_1_basics_thumb.png
:ref:`sphx_glr_tutorials_hetero_1_basics.py`
Follow the :doc:`instructions<install/index>` to install DGL.
:doc:`DGL at a glance<tutorials/basics/1_first>` is the most common place to get started with.
It offers a broad experience of using DGL for deep learning on graph data.
You can learn other basic concepts of DGL through the dedicated tutorials.
.. raw:: html
* Learn constructing graphs and set/get node and edge features :doc:`here<tutorials/basics/2_basics>`.
* Learn performing computation on graph using message passing :doc:`here<tutorials/basics/3_pagerank>`.
* Learn processing multiple graph samples in a batch :doc:`here<tutorials/basics/4_batch>`.
* Learn working with heterogeneous graph data :doc:`here<tutorials/basics/5_hetero>`.
</div>
.. toctree::
:hidden:
/tutorials/hetero/1_basics
.. raw:: html
<div style='clear:both'></div>
.. ================================================================================================
(end) MANUALLY INCLUDE THE GENERATED TUTORIALS/BASIC/INDEX.RST HERE TO EMBED THE EXAMPLES
================================================================================================
Learning DGL through examples
-----------------------------
The model tutorials are categorized based on the way they utilize DGL APIs.
End-to-end model tutorials are other good starting points for learning DGL and popular
models on graphs. The model tutorials are categorized based on the way they utilize DGL APIs.
* :ref:`Graph Neural Network and its variant <tutorials1-index>`: Learn how to use DGL to train
popular **GNN models** on one input graph.
* :ref:`Dealing with many small graphs <tutorials2-index>`: Learn how to
**batch** many
graph samples
for max efficiency
.
* :ref:`Dealing with many small graphs <tutorials2-index>`: Learn how to
train models for
many
graph samples
such as sentence parse trees
.
* :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
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>`.
Each tutorial is accompanied with a runnable python script and jupyter notebook that
can be downloaded. If you would like the tutorials improved, please raise a github issue.
API reference document lists more endetailed specifications of each API and GNN modules,
a useful manual for in-depth developers.
.. toctree::
:maxdepth: 1
:caption:
Features
:caption:
Installation
:hidden:
:glob:
features/builtin
features/nn
install/index
install/backend
.. toctree::
:maxdepth: 1
:caption: Get Started
:hidden:
:glob:
tutorials/basics/index
.. toctree::
:maxdepth: 3
:caption:
Model
Tutorials
:caption: Tutorials
:hidden:
:glob:
...
...
@@ -204,9 +96,25 @@ Or go through all of them :doc:`here <tutorials/models/index>`.
.. toctree::
:maxdepth: 2
:caption: API Reference
:hidden:
:glob:
api/python/index
api/python/graph
api/python/heterograph
api/python/batch
api/python/batch_heterograph
api/python/nn
api/python/function
api/python/udf
api/python/subgraph
api/python/traversal
api/python/propagate
api/python/transform
api/python/sampler
api/python/data
api/python/nodeflow
api/python/random
api/python/model_zoo
.. toctree::
:maxdepth: 1
...
...
tutorials/README.txt
0 → 100644
View file @
5967d817
tutorials/basics/2_basics.py
View file @
5967d817
"""
.. currentmodule:: dgl
DGL
Basic
s
==========
DGL
Graph and Node/edge Feature
s
=====================
==========
**Author**: `Minjie Wang <https://jermainewang.github.io/>`_, Quan Gan, Yu Gai,
Zheng Zhang
...
...
tutorials/basics/3_pagerank.py
View file @
5967d817
"""
.. currentmodule:: dgl
PageRank with DGL m
essage
p
assing
========================
=========
M
essage
P
assing
Tutorial
========================
**Author**: `Minjie Wang <https://jermainewang.github.io/>`_, Quan Gan, Yu Gai,
Zheng Zhang
...
...
tutorials/basics/4_batch.py
View file @
5967d817
"""
.. currentmodule:: dgl
Tutorial: Batched g
raph
c
lassification
with DGL
=============================
===================
G
raph
C
lassification
Tutorial
=============================
**Author**: `Mufei Li <https://github.com/mufeili>`_,
`Minjie Wang <https://jermainewang.github.io/>`_,
...
...
tutorials/
hetero/1_basics
.py
→
tutorials/
basics/5_hetero
.py
View file @
5967d817
"""
.. currentmodule:: dgl
Working with Heterogeneous Graphs
in DGL
=================================
=======
Working with Heterogeneous Graphs
=================================
**Author**: Quan Gan, `Minjie Wang <https://jermainewang.github.io/>`_, Mufei Li,
George Karypis, Zheng Zhang
...
...
tutorials/hetero/README.txt
deleted
100644 → 0
View file @
f1a8f926
tutorials/models/README.txt
View file @
5967d817
Model overview
==============
We developed DGL with a broad range of applications in mind. Building
state-of-art models forces us to think hard on the most common and useful APIs,
learn the hard lessons, and push the system design.
We have prototyped altogether 10 different models, all of them are ready to run
out-of-box and some of them are very new graph-based algorithms. In most of the
cases, they demonstrate the performance, flexibility, and expressiveness of
DGL. For where we still fall in short, these exercises point to future
directions.
We categorize the models below, providing links to the original code and
tutorial when appropriate. As will become apparent, these models stress the use
of different DGL APIs.
Prev
1
2
Next
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