MCPcopy
hub / github.com/dmlc/dgl / graphsage.py

File graphsage.py

examples/sparse/sampling/graphsage.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2This script demonstrate how to use dgl sparse library to sample on graph and
3train model. It trains and tests a GraphSAGE model using the sparse sample and
4compact operators to sample submatrix from the whole matrix.

Callers

nothing calls this directly

Calls 8

AsNodePredDatasetClass · 0.90
SAGEClass · 0.70
trainFunction · 0.70
validateFunction · 0.70
deviceMethod · 0.45
toMethod · 0.45
edgesMethod · 0.45
num_nodesMethod · 0.45

Tested by

no test coverage detected