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

Function test

examples/GRACE.py:67–72  ·  view source on GitHub ↗
(encoder_model, data)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 2

get_splitFunction · 0.90
LREvaluatorClass · 0.90

Tested by

no test coverage detected