Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
""
"
2
This script demonstrate how to use dgl sparse library to sample on graph and
3
train model. It trains and tests a GraphSAGE model using the sparse sample and
4
compact operators to sample submatrix
from
the whole matrix.
Callers
nothing calls this directly
Calls
8
AsNodePredDataset
Class · 0.90
SAGE
Class · 0.70
train
Function · 0.70
validate
Function · 0.70
device
Method · 0.45
to
Method · 0.45
edges
Method · 0.45
num_nodes
Method · 0.45
Tested by
no test coverage detected