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

Function test

examples/BGRL_L2L.py:114–120  ·  view source on GitHub ↗
(encoder_model, data)

Source from the content-addressed store, hash-verified

112
113
114def test(encoder_model, data):
115 encoder_model.eval()
116 h1, h2, _, _, _, _ = encoder_model(data.x, data.edge_index)
117 z = torch.cat([h1, h2], dim=1)
118 split = get_split(num_samples=z.size()[0], train_ratio=0.1, test_ratio=0.8)
119 result = LREvaluator()(z, data.y, split)
120 return result
121
122
123def main():

Callers 1

mainFunction · 0.70

Calls 2

get_splitFunction · 0.90
LREvaluatorClass · 0.90

Tested by

no test coverage detected