MCPcopy Create free account
hub / github.com/THUDM/GLM / output_prediction

Method output_prediction

tasks/superglue/dataset.py:1311–1315  ·  view source on GitHub ↗
(self, predictions, examples, output_file)

Source from the content-addressed store, hash-verified

1309 return examples
1310
1311 def output_prediction(self, predictions, examples, output_file):
1312 with open(output_file, "w") as output:
1313 for prediction, example in zip(predictions, examples):
1314 data = {"idx": example.guid, "prediction_text": prediction}
1315 output.write(json.dumps(data) + "\n")
1316
1317
1318class LamaProcessor(DataProcessor):

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected