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

Function test_train

tests/test_experiments.py:19–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18
19def test_train():
20 args = get_default_args(dataset="cora", model="gcn", epochs=10, cpu=True)
21 args.dataset = args.dataset[0]
22 args.model = args.model[0]
23 args.seed = args.seed[0]
24 result = train(args)
25
26 assert "test_acc" in result
27 assert result["test_acc"] > 0
28
29
30def test_gen_variants():

Callers 1

Calls 2

get_default_argsFunction · 0.90
trainFunction · 0.90

Tested by

no test coverage detected