MCPcopy
hub / github.com/dmlc/dgl / test_hgnn

Function test_hgnn

tests/examples/test_sparse_examples.py:64–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63
64def test_hgnn():
65 script = os.path.join(EXAMPLE_ROOT, "hgnn.py")
66 out = subprocess.run(["python", str(script)], capture_output=True)
67 assert (
68 out.returncode == 0
69 ), f"stdout: {out.stdout.decode('utf-8')}\nstderr: {out.stderr.decode('utf-8')}"
70 stdout = out.stdout.decode("utf-8")
71 assert float(stdout[-5:]) >= 0.65
72
73
74def test_hypergraphatt():

Callers

nothing calls this directly

Calls 3

joinMethod · 0.45
runMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected