qxmt.experiment.schema module#
- class qxmt.experiment.schema.ExperimentDB(*, name, desc, working_dirc, experiment_dirc, runs)
Bases:
BaseModel
- Parameters:
name (str)
desc (str)
working_dirc (Path)
experiment_dirc (Path)
runs (list[RunRecord])
- desc: str
- experiment_dirc: Path
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: str
- runs: list[RunRecord]
- working_dirc: Path
- class qxmt.experiment.schema.RealMachine(*, provider, backend, job_ids)
Bases:
BaseModel
- Parameters:
provider (str)
backend (str)
job_ids (list[str])
- backend: str
- job_ids: list[str]
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- provider: str
- class qxmt.experiment.schema.RunArtifact(*, run_id, dataset, model)
Bases:
BaseModel
- Parameters:
run_id (int)
dataset (Dataset)
model (BaseMLModel)
- dataset: Dataset
- model: BaseMLModel
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- run_id: int
- class qxmt.experiment.schema.RunRecord(*, run_id, desc, real_machine=None, commit_id, config_file_name, execution_time, runtime, evaluation)
Bases:
BaseModel
- Parameters:
run_id (int)
desc (str)
real_machine (RealMachine | None)
commit_id (str)
config_file_name (Path)
execution_time (str)
runtime (RunTime)
evaluation (dict[str, float])
- commit_id: str
- config_file_name: Path
- desc: str
- evaluation: dict[str, float]
- execution_time: str
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- real_machine: RealMachine | None
- run_id: int
- runtime: RunTime
- class qxmt.experiment.schema.RunTime(*, fit_seconds, predict_seconds)
Bases:
BaseModel
- Parameters:
fit_seconds (float)
predict_seconds (float)
- fit_seconds: float
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- predict_seconds: float