LocalExperimentStore
Thread-safe filesystem mirror for experiments and generations.
Attributes
attributeroot= resolve_log_dir(log_dir)Functions
func__init__(self, log_dir=None) -> Noneparamselfparamlog_dirstr | None= NoneReturns
Nonefunc_exp_dir(self, experiment_id) -> Pathparamselfparamexperiment_idstrReturns
pathlib.Pathfunc_gen_dir(self, generation_id) -> Pathparamselfparamgeneration_idstrReturns
pathlib.Pathfunc_write_json(path, payload) -> NoneparampathPathparampayloaddict[str, Any]Returns
Nonefunc_merge_json(path, patch) -> NoneparampathPathparampatchdict[str, Any]Returns
Nonefunc_append_jsonl(path, row) -> NoneparampathPathparamrowdict[str, Any]Returns
Nonefunccreate_experiment(self, experiment_id, payload) -> Noneparamselfparamexperiment_idstrparampayloaddict[str, Any]Returns
Nonefuncupdate_experiment(self, experiment_id, patch) -> Noneparamselfparamexperiment_idstrparampatchdict[str, Any]Returns
Nonefunccreate_run(self, run_id, payload) -> Noneparamselfparamrun_idstrparampayloaddict[str, Any]Returns
Nonefuncupdate_run(self, run_id, patch) -> Noneparamselfparamrun_idstrparampatchdict[str, Any]Returns
Nonefunclog_step(self, generation_id, body) -> Noneparamselfparamgeneration_idstrparambodydict[str, Any]Returns
Nonefunclog_eval(self, generation_id, body) -> Noneparamselfparamgeneration_idstrparambodydict[str, Any]Returns
Nonefunclog_predictions(self, generation_id, predictions) -> Noneparamselfparamgeneration_idstrparampredictionslist[dict[str, Any]]Returns
None