Files
dgl/docs/source/api/python/sampling.rst
Quan (Andy) Gan 168a88e570 [Sampling] NodeDataLoader for node classification (#1635)
* neighbor sampler data loader first commit

* more commit

* nodedataloader

* fix

* update RGCN example

* update OGB

* fixes

* fix minibatch RGCN crashing with self loop

* reverting gatconv test code

* fix

* change to new solution that doesn't require tf dataloader

* fix

* lint

* fix

* fixes

* change doc

* fix docstring

* docstring fixes

* return seeds and input nodes from data loader

* fixes

* fix test

* fix windows build problem

* add pytorch wrapper

* fixes

* add pytorch wrapper

* add unit test

* add -1 support to sample_neighbors & fix docstrings

* docstring fix

* lint

* add minibatch rgcn evaluations

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
Co-authored-by: Tong He <hetong007@gmail.com>
2020-07-02 16:31:05 +08:00

48 lines
1.1 KiB
ReStructuredText

.. _api-sampling:
dgl.sampling
=================================
.. automodule:: dgl.sampling
Sampling algorithms on graphs.
Random walk sampling functions
------------------------------
.. autosummary::
:toctree: ../../generated/
random_walk
pack_traces
Neighbor sampling functions
---------------------------
.. autosummary::
:toctree: ../../generated/
sample_neighbors
select_topk
PyTorch DataLoaders with neighborhood sampling
----------------------------------------------
.. autoclass:: pytorch.NeighborSamplerNodeDataLoader
Builtin sampler classes for more complicated sampling algorithms
----------------------------------------------------------------
.. autoclass:: RandomWalkNeighborSampler
.. autoclass:: PinSAGESampler
Neighborhood samplers for multilayer GNNs
-----------------------------------------
.. autoclass:: MultiLayerNeighborSampler
Data loaders for minibatch iteration
------------------------------------
.. autoclass:: NodeCollator
Abstract class for neighborhood sampler
---------------------------------------
.. autoclass:: BlockSampler