botorch.exceptions
Errors
Botorch Errors.
- exception botorch.exceptions.errors.CandidateGenerationError[source]
Bases:
BotorchErrorException raised during generating candidates.
- exception botorch.exceptions.errors.DeprecationError[source]
Bases:
BotorchErrorException raised due to deprecations
- exception botorch.exceptions.errors.InputDataError[source]
Bases:
BotorchErrorException raised when input data does not comply with conventions.
- exception botorch.exceptions.errors.UnsupportedError[source]
Bases:
BotorchErrorCurrently unsupported feature.
- exception botorch.exceptions.errors.BotorchTensorDimensionError[source]
Bases:
BotorchErrorException raised when a tensor violates a botorch convention.
- exception botorch.exceptions.errors.ModelFittingError[source]
Bases:
ExceptionException raised when attempts to fit a model terminate unsuccessfully.
- exception botorch.exceptions.errors.OptimizationTimeoutError(*args, current_x, runtime, **kwargs)[source]
Bases:
BotorchErrorException raised when optimization times out.
- Parameters:
*args (Any) – Standard args to
BotorchError.current_x (ndarray[tuple[Any, ...], dtype[_ScalarT]]) – A numpy array representing the current iterate.
runtime (float) – The total runtime in seconds after which the optimization timed out.
**kwargs (Any) – Standard kwargs to
BotorchError.
- Return type:
None
- exception botorch.exceptions.errors.OptimizationGradientError(*args, current_x, **kwargs)[source]
Bases:
BotorchError,RuntimeErrorException raised when gradient array
gradfcontains NaNs.- Parameters:
*args (Any) – Standard args to
BotorchError.current_x (ndarray[tuple[Any, ...], dtype[_ScalarT]]) – A numpy array representing the current iterate.
**kwargs (Any) – Standard kwargs to
BotorchError.
- Return type:
None
- exception botorch.exceptions.errors.InfeasibilityError[source]
Bases:
BotorchError,ValueErrorException raised when infeasibility occurs.
Warnings
Botorch Warnings.
- exception botorch.exceptions.warnings.BadInitialCandidatesWarning[source]
Bases:
BotorchWarningWarning issued if set of initial candidates for optimization is bad.
- exception botorch.exceptions.warnings.InputDataWarning[source]
Bases:
BotorchWarningWarning raised when input data does not comply with conventions.
- exception botorch.exceptions.warnings.CostAwareWarning[source]
Bases:
BotorchWarningWarning raised in the context of cost-aware acquisition strategies.
- exception botorch.exceptions.warnings.OptimizationWarning[source]
Bases:
BotorchWarningOptimization-related warnings.
- exception botorch.exceptions.warnings.SamplingWarning[source]
Bases:
BotorchWarningSampling related warnings.
- exception botorch.exceptions.warnings.BotorchTensorDimensionWarning[source]
Bases:
BotorchWarningWarning raised when a tensor possibly violates a botorch convention.
- exception botorch.exceptions.warnings.UserInputWarning[source]
Bases:
BotorchWarningWarning raised when a potential issue is detected with user provided inputs.
- exception botorch.exceptions.warnings.NumericsWarning[source]
Bases:
BotorchWarningWarning raised when numerical issues are detected.
- botorch.exceptions.warnings.legacy_ei_numerics_warning(legacy_name)[source]
Raises a warning for legacy EI acquisition functions that are known to have numerical issues and should be replaced with the LogEI version for virtually all use-cases except for explicit benchmarking of the numerical issues of legacy EI.
- Parameters:
legacy_name (str) – The name of the legacy EI acquisition function.
- Return type:
None