Files
dgl/docs/source/api/python/nodeflow.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

84 lines
1.8 KiB
ReStructuredText

.. _apinodeflow:
dgl.nodeflow (Deprecating)
==============
.. warning::
This module is going to be deprecated in favor of :ref:`api-sampling`.
.. currentmodule:: dgl
.. autoclass:: NodeFlow
Querying graph structure
------------------------
.. autosummary::
:toctree: ../../generated/
NodeFlow.num_layers
NodeFlow.num_blocks
NodeFlow.layer_size
NodeFlow.block_size
NodeFlow.layer_in_degree
NodeFlow.layer_out_degree
NodeFlow.layer_nid
NodeFlow.layer_parent_nid
NodeFlow.block_eid
NodeFlow.block_parent_eid
NodeFlow.block_edges
Converting to other format
-------------------------------
.. autosummary::
:toctree: ../../generated/
NodeFlow.block_adjacency_matrix
NodeFlow.block_incidence_matrix
Using Node/edge features
------------------------
.. autosummary::
:toctree: ../../generated/
NodeFlow.layers
NodeFlow.blocks
NodeFlow.set_n_initializer
NodeFlow.set_e_initializer
NodeFlow.node_attr_schemes
NodeFlow.edge_attr_schemes
Mapping between NodeFlow and parent graph
-----------------------------------------
.. autosummary::
:toctree: ../../generated/
NodeFlow.map_to_parent_nid
NodeFlow.map_to_parent_eid
NodeFlow.map_from_parent_nid
Synchronize features between NodeFlow and parent graph
------------------------------------------------------
.. autosummary::
:toctree: ../../generated/
NodeFlow.copy_from_parent
NodeFlow.copy_to_parent
Computing with NodeFlow
-----------------------
.. autosummary::
:toctree: ../../generated/
NodeFlow.register_message_func
NodeFlow.register_reduce_func
NodeFlow.register_apply_node_func
NodeFlow.register_apply_edge_func
NodeFlow.apply_layer
NodeFlow.apply_block
NodeFlow.block_compute
NodeFlow.prop_flow