MCPcopy Create free account
hub / github.com/DropEdge/DropEdge / data_loader

Function data_loader

src/utils.py:162–176  ·  view source on GitHub ↗
(dataset, data_path=datadir, normalization="AugNormAdj", porting_to_torch=True, task_type = "full")

Source from the content-addressed store, hash-verified

160
161
162def data_loader(dataset, data_path=datadir, normalization="AugNormAdj", porting_to_torch=True, task_type = "full"):
163 if dataset == "reddit":
164 return load_reddit_data(normalization, porting_to_torch, data_path)
165 else:
166 (adj,
167 features,
168 labels,
169 idx_train,
170 idx_val,
171 idx_test,
172 degree,
173 learning_type) = load_citation(dataset, normalization, porting_to_torch, data_path, task_type)
174 train_adj = adj
175 train_features = features
176 return adj, train_adj, features, train_features, labels, idx_train, idx_val, idx_test, degree, learning_type
177

Callers 1

__init__Method · 0.90

Calls 2

load_reddit_dataFunction · 0.85
load_citationFunction · 0.85

Tested by

no test coverage detected