bayesvalidrox.surrogate_models.polynomial_chaos.decorator_deriv_check

bayesvalidrox.surrogate_models.polynomial_chaos.decorator_deriv_check(derivative)

Performs the preprocessing, input checks and general calculations for all function that calculate derivatives.

Parameters

derivative : function

Raises

AttributeError
  • Derivatives do not currently support GPE

  • Derivatives not compatible with PCA at the moment!

  • Derivatives only useable for arbitrary-type polynomials!

  • The evaluation points should be a list or np.array!

ValueError
  • The parameter {par_name} chosen for the derivative is not valid!

Returns

decorator

The decorator.