baybe.surrogates.validation.get_model_params_validator¶ baybe.surrogates.validation.get_model_params_validator(model_init: Callable | None = None)[source]¶ Construct a validator based on the model class. Parameters: model_init (Optional[Callable]) – The init method for the model. Return type: Callable Returns: A validator function to validate parameters.