mirror of
https://github.com/dmlc/dgl.git
synced 2026-06-05 19:54:25 +08:00
* 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>
44 lines
993 B
ReStructuredText
44 lines
993 B
ReStructuredText
.. apisampler
|
|
|
|
dgl.contrib.sampling (Deprecating)
|
|
======================
|
|
|
|
.. warning::
|
|
This module is going to be deprecated in favor of :ref:`api-sampling`.
|
|
|
|
Module for sampling algorithms on graph. Each algorithm is implemented as a
|
|
data loader, which produces sampled subgraphs (called Nodeflow) at each
|
|
iteration.
|
|
|
|
.. autofunction:: dgl.contrib.sampling.sampler.NeighborSampler
|
|
.. autofunction:: dgl.contrib.sampling.sampler.LayerSampler
|
|
.. autofunction:: dgl.contrib.sampling.sampler.EdgeSampler
|
|
|
|
Distributed sampler
|
|
------------------------
|
|
|
|
.. currentmodule:: dgl.contrib.sampling.dis_sampler
|
|
.. autoclass:: SamplerPool
|
|
|
|
.. autosummary::
|
|
:toctree: ../../generated/
|
|
|
|
SamplerPool.start
|
|
SamplerPool.worker
|
|
|
|
.. autoclass:: SamplerSender
|
|
|
|
.. autosummary::
|
|
:toctree: ../../generated/
|
|
|
|
SamplerSender.send
|
|
SamplerSender.signal
|
|
|
|
.. autoclass:: SamplerReceiver
|
|
|
|
.. autosummary::
|
|
:toctree: ../../generated/
|
|
|
|
SamplerReceiver.__iter__
|
|
SamplerReceiver.__next__
|