cosapp.utils.surrogate_models.response_surface

Surrogate Model based on second order response surface equations.

Classes

ResponseSurface()

Surrogate Model based on second order response surface equations.

class cosapp.utils.surrogate_models.response_surface.ResponseSurface[source]

Bases: SurrogateModel

Surrogate Model based on second order response surface equations.

betas

Vector of response surface equation coefficients.

Type:

ndarray

m

Number of training points.

Type:

int

n

Number of independent variables.

Type:

int

linearize(x)[source]

Calculate the jacobian of the Kriging surface at the requested point.

Parameters:

x (array-like) – Point at which the surrogate Jacobian is evaluated.

Returns:

Jacobian of surrogate output wrt inputs.

Return type:

ndarray

predict(x: ndarray) float[source]

Calculate predicted value of response based on the current response surface model.

Parameters:

x (array-like) – Point at which the surrogate is evaluated.

Returns:

Predicted response.

Return type:

float

train(x, y)[source]

Calculate response surface equation coefficients using least squares regression.

Parameters:
  • x (array-like) – Training input locations

  • y (array-like) – Model responses at given inputs.