baybe.surrogates.validation.validate_custom_architecture_cls

baybe.surrogates.validation.validate_custom_architecture_cls(model_cls: type)[source]

Validate a custom architecture to have the correct attributes.

Parameters:

model_cls (type) – The user defined model class.

Raises:
  • ValueError – When model_cls does not have _fit or _posterior.

  • ValueError – When _fit or _posterior is not a callable method.

  • ValueError – When _fit does not have the required signature.

  • ValueError – When _posterior does not have the required signature.

Return type:

None