RunContext
Everything an algorithm needs to execute one training run.
Held loosely on purpose: an algorithm only consumes the fields it needs. Backends construct this from the parsed ExperimentConfig.
Attributes
attributerun_idstrStable id for this run; used for output paths and log keys.
attributeoutput_dirstrLocal filesystem dir where the run can write checkpoints, logs, etc.
attributeconfigAnyThe full parsed ExperimentConfig (kept generic to avoid circular import).
attributedata_storeDataStoreDatastore handle (read inputs, write outputs).
attributelog_storeLogStoreLog store (metrics, scalars, artifacts).
attributebackendBackendBackend handle (Tinker / Local / Mock).
attributeextrasdict[str, Any]= field(default_factory=dict)Free-form bag for backend-specific bits (e.g. tinker training_client).
Functions
func__init__(self, run_id, output_dir, config, data_store, log_store, backend, extras=dict()) -> Noneparamselfparamrun_idstrparamoutput_dirstrparamconfigAnyparamdata_storeDataStoreparamlog_storeLogStoreparambackendBackendparamextrasdict[str, Any]= dict()Returns
None