MCPcopy Create free account
hub / github.com/PRIME-RL/PRIME / default

Method default

eval/Math/math/evaluate_math.py:311–314  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

309 }
310 class JSONEncoder(json.JSONEncoder):
311 def default(self, obj):
312 if isinstance(obj, np.int64):
313 return int(obj)
314 return super(JSONEncoder, self).default(obj)
315 with open(os.path.join(args.save_dir, "results.json"), "w") as jf:
316 json.dump(output_dict, jf, cls=JSONEncoder)
317

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected