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

Function test_experiment

tests/test_experiments.py:36–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def test_experiment():
37 results = experiment(task="node_classification", dataset="cora", model="gcn", hidden_size=32, epochs=10, cpu=True)
38
39 assert ("cora", "gcn") in results
40 assert results[("cora", "gcn")][0]["test_acc"] > 0
41
42
43def test_auto_experiment():

Callers 1

Calls 1

experimentFunction · 0.90

Tested by

no test coverage detected