in clearbox/models/probabilistic.py [0:0]
def new(self) -> base.ModelImpl:
"""Creates and returns a new Bayesian Optimization model.
Returns:
`_BayesOptLinearModelImpl` instance which implements `base.ModelImpl`
interface.
"""
return _BayesOptLinearModelImpl(
surrogate_model=self._surrogate_model,
acquisition_function=self._acquisition_function,
metric=self._metric,
n_opt_steps=self._n_opt_steps,
batch_size=self._batch_size,
seed_batch_size=self._seed_batch_size,
grid_size=self._grid_size,
print_progress=self._print_progress,
)