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

Function test

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

Source from the content-addressed store, hash-verified

70
71
72def test(encoder_model, data):
73 encoder_model.eval()
74 z1, z2, _, _, _, _ = encoder_model(data.x, data.edge_index)
75 z = z1 + z2
76 split = get_split(num_samples=z.size()[0], train_ratio=0.1, test_ratio=0.8)
77 result = LREvaluator()(z, data.y, split)
78 return result
79
80
81def main():

Callers 1

mainFunction · 0.70

Calls 2

get_splitFunction · 0.90
LREvaluatorClass · 0.90

Tested by

no test coverage detected