MCPcopy
hub / github.com/THUDM/CogDL / build_dataset

Function build_dataset

cogdl/datasets/__init__.py:80–93  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

78
79
80def build_dataset(args):
81 if not hasattr(args, "split"):
82 args.split = 0
83 if not hasattr(args, "pretrain") or not args.pretrain:
84 dataset = build_dataset_from_name(args.dataset, args.split)
85 else:
86 dataset = build_dataset_pretrain(args)
87
88 if hasattr(dataset, "num_classes") and dataset.num_classes > 0:
89 args.num_classes = dataset.num_classes
90 if hasattr(dataset, "num_features") and dataset.num_features > 0:
91 args.num_features = dataset.num_features
92
93 return dataset
94
95
96def build_dataset_from_path(data_path, dataset=None):

Callers 15

test_chameleonFunction · 0.90
test_cornellFunction · 0.90
test_filmFunction · 0.90
test_squirrelFunction · 0.90
test_texasFunction · 0.90
test_wisconsinFunction · 0.90
test_citeseer_geomFunction · 0.90
test_dblp_neFunction · 0.90
test_gcc_kdd_icdmFunction · 0.90
test_rec_datasetFunction · 0.90
test_oagbert_datasetFunction · 0.90
test_fb13Function · 0.90

Calls 2

build_dataset_from_nameFunction · 0.85
build_dataset_pretrainFunction · 0.85

Tested by 15

test_chameleonFunction · 0.72
test_cornellFunction · 0.72
test_filmFunction · 0.72
test_squirrelFunction · 0.72
test_texasFunction · 0.72
test_wisconsinFunction · 0.72
test_citeseer_geomFunction · 0.72
test_dblp_neFunction · 0.72
test_gcc_kdd_icdmFunction · 0.72
test_rec_datasetFunction · 0.72
test_oagbert_datasetFunction · 0.72
test_fb13Function · 0.72