nnai-bench / example_adapter.py
vynly's picture
Publish NNAI-Bench v0.1 and non-neural leaderboard
ba82887 verified
Raw History Blame Contribute Delete
406 Bytes
"""Adapter example: fixed A control. Replace predict() with your non-neural model."""
import json
import sys
def predict(question):
# Only prompt / choices / task metadata are provided. Never read gold labels.
return "A"
if __name__ == "__main__":
for line in sys.stdin:
question = json.loads(line)
print(json.dumps({"id": question["id"], "prediction": predict(question)}))