bayesline.api.DatasetAwareSettings

bayesline.api.DatasetAwareSettings#

model DatasetAwareSettings#

Settings bound to a dataset.

Wraps a Settings subclass with an explicit dataset attribute that scopes the settings to a specific underlying dataset. The wrapper is the unit of save/read through the registry: every registry-stored settings is paired with the dataset it applies to.

Legacy stored JSON with a flat {"dataset": ..., ...fields} shape is reshaped on load to the wrapped {"dataset": ..., "setting": {...}} form by the _reshape_legacy pre-validator.

Fields#

Field

Type

Required

Default

dataset

str

Yes

setting

T_co

Yes

field dataset: str [Required]#

The name of the underlying dataset the settings apply to.

field setting: T_co [Required]#

The settings scoped to dataset.