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

Method setup_class

tests/datasets/test_data.py:9–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class Test_Data(object):
9 def setup_class(self):
10 self.dataset = build_dataset_from_name("cora")
11 self.data = self.dataset[0]
12 self.num_nodes = self.data.num_nodes
13 self.num_edges = self.data.num_edges
14 self.num_features = self.data.num_features
15 print("Call Setup")
16
17 def test_subgraph_sampling(self):
18 sampled_nodes = np.random.randint(0, self.num_nodes, (100,))

Callers

nothing calls this directly

Calls 1

build_dataset_from_nameFunction · 0.90

Tested by

no test coverage detected