sampler.rst 993 Bytes
Newer Older
1
2
.. apisampler

3
dgl.contrib.sampling (Deprecating)
4
5
======================

6
7
8
.. warning::
   This module is going to be deprecated in favor of :ref:`api-sampling`.

9
10
11
Module for sampling algorithms on graph. Each algorithm is implemented as a
data loader, which produces sampled subgraphs (called Nodeflow) at each
iteration.
12

13
.. autofunction:: dgl.contrib.sampling.sampler.NeighborSampler
Da Zheng's avatar
Da Zheng committed
14
.. autofunction:: dgl.contrib.sampling.sampler.LayerSampler
Da Zheng's avatar
Da Zheng committed
15
.. autofunction:: dgl.contrib.sampling.sampler.EdgeSampler
Da Zheng's avatar
Da Zheng committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

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__