Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dmlc/dgl
/ shuffle
Method
shuffle
python/dgl/dataloading/dataloader.py:221–223 ·
view source on GitHub ↗
Shuffle the dataset.
(self)
Source
from the content-addressed store, hash-verified
219
self._shuffle = shuffle
220
221
def
shuffle(self):
222
""
"Shuffle the dataset."
""
223
np.random.shuffle(self._indices.numpy())
224
225
def
__iter__(self):
226
indices = _divide_by_worker(
Callers
15
shuffle
Method · 0.45
__iter__
Method · 0.45
rand_shuffle
Function · 0.45
rand_shuffle
Function · 0.45
add_nodepred_split
Function · 0.45
forward
Method · 0.45
_prepare_test_data
Function · 0.45
_chunk_graph
Function · 0.45
_test_construct_graphs_node_ids
Function · 0.45
_test_construct_graphs_homo
Function · 0.45
_test_construct_graphs_hetero
Function · 0.45
generate_raw_data_for_hetero_dataset
Function · 0.45
Calls
no outgoing calls
Tested by
6
_prepare_test_data
Function · 0.36
_chunk_graph
Function · 0.36
_test_construct_graphs_node_ids
Function · 0.36
_test_construct_graphs_homo
Function · 0.36
_test_construct_graphs_hetero
Function · 0.36
generate_raw_data_for_hetero_dataset
Function · 0.36