cosapp.utils.surrogate_models.nn_interpolators.rbf_interpolator

Define the RBFInterpolator class.

Classes

RBFInterpolator(training_points, training_values)

Compactly Supported Radial Basis Function.

class cosapp.utils.surrogate_models.nn_interpolators.rbf_interpolator.RBFInterpolator(training_points, training_values, num_leaves=2, num_neighbors=5, rbf_family=2)[source]

Bases: NNBase

Compactly Supported Radial Basis Function.

rbf_family

Specifies the order of the radial basis function to be used. <-2> uses an 11th order, <-1> uses a 9th order, and any value from <0> to <4> uses an order equal to <floor((dimensions-1)/2) + (3*comp) +1>.

Type:

int

N

The number of neighbors used for interpolation.

Type:

int

weights

Weights for each interpolation point.

Type:

ndarray

gradient(prediction_points)[source]

Find the gradient at each location of a set of supplied predicted points.

Parameters:

prediction_points (ndarray) – Points at which interpolation is done.

Returns:

Gradient value at prediction points.

Return type:

ndarray