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

Function test_diffpool_imdb_binary

tests/tasks/test_graph_classification.py:108–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106
107
108def test_diffpool_imdb_binary():
109 args = get_default_args_graph_clf(dataset="imdb-b", model="diffpool")
110 args = add_diffpool_args(args)
111 args.batch_size = 100
112 args.train_ratio = 0.6
113 args.test_ratio = 0.2
114 ret = train(args)
115 assert ret["test_acc"] > 0
116
117
118def test_sortpool_mutag():

Callers 1

Calls 3

trainFunction · 0.90
add_diffpool_argsFunction · 0.85

Tested by

no test coverage detected