Settings¶
- class baybe.settings.Settings[source]¶
Bases:
_SlottedContextDecoratorBayBE settings.
Public methods
__init__(*[, restore_defaults, ...])Method generated by attrs for class Settings.
activate()Activate the settings globally.
overwrite(target)Overwrite the settings of another
Settingsobject.Restore the previous settings.
Public attributes and properties
Controls if campaigns cache their latest recommendation.
The directory used for caching.
The floating point precision used for NumPy arrays.
The floating point precision used for Torch tensors.
Controls if simulation runs in xyzpy are executed in parallel.
Controls if dataframe content is validated and normalized before used.
The used random seed.
The floating point data type used for NumPy arrays.
The floating point data type used for Torch tensors.
Indicates if fpsample is enabled (i.e., installed and set to be used).
Indicates if Polars is enabled (i.e., installed and set to be used).
- __init__(*, restore_defaults: bool = False, restore_environment: bool = False, cache_campaign_recommendations: bool = NOTHING, cache_directory: str | Path | None = NOTHING, float_precision_numpy=NOTHING, float_precision_torch=NOTHING, parallelize_simulations: bool = NOTHING, preprocess_dataframes: bool = NOTHING, random_seed: int | None = NOTHING, use_fpsample: AutoBool | bool | str | None = NOTHING, use_polars_for_constraints: AutoBool | bool | str | None = NOTHING)¶
Method generated by attrs for class Settings.
For details on the parameters, see Public attributes and properties.