MCPcopy Index your code
hub / github.com/PyGCL/PyGCL / test

Function test

examples/DGI_transductive.py:64–69  ·  view source on GitHub ↗
(encoder_model, data)

Source from the content-addressed store, hash-verified

62
63
64def test(encoder_model, data):
65 encoder_model.eval()
66 z, _, _ = encoder_model(data.x, data.edge_index)
67 split = get_split(num_samples=z.size()[0], train_ratio=0.1, test_ratio=0.8)
68 result = LREvaluator()(z, data.y, split)
69 return result
70
71
72def main():

Callers 1

mainFunction · 0.70

Calls 2

get_splitFunction · 0.90
LREvaluatorClass · 0.90

Tested by

no test coverage detected