MCPcopy Create free account
hub / github.com/PyGCL/PyGCL / test

Function test

examples/GRACE_SupCon.py:83–88  ·  view source on GitHub ↗
(encoder_model, data)

Source from the content-addressed store, hash-verified

81
82
83def test(encoder_model, data):
84 encoder_model.eval()
85 z, _, _ = encoder_model(data.x, data.edge_index, data.edge_attr)
86 split = from_predefined_split(data=data)
87 result = LREvaluator()(z, data.y, split)
88 return result
89
90
91def main():

Callers 1

mainFunction · 0.70

Calls 2

from_predefined_splitFunction · 0.90
LREvaluatorClass · 0.90

Tested by

no test coverage detected