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

Function test_fb13

tests/datasets/test_kg_data.py:5–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def test_fb13():
6 args = build_args_from_dict({"dataset": "fb13"})
7 assert args.dataset == "fb13"
8 dataset = build_dataset(args)
9 data = dataset.data
10 assert len(data.edge_index) == 2
11 assert data.edge_index[0].shape[0] == 345873
12 assert data.edge_attr.shape[0] == 345873
13
14
15def test_fb15k():

Callers 1

test_kg_data.pyFile · 0.85

Calls 2

build_args_from_dictFunction · 0.90
build_datasetFunction · 0.90

Tested by

no test coverage detected