cosapp.utils.surrogate_models.kriging¶
Surrogate model based on Kriging.
Classes
|
Surrogate model based on the simple Kriging interpolation. |
|
Surrogate Modeling method based on the simple Kriging interpolation. |
- class cosapp.utils.surrogate_models.kriging.FloatKrigingSurrogate(nugget=np.float64(2.220446049250313e-15), eval_rmse=False)[source]¶
Bases:
KrigingSurrogateSurrogate model based on the simple Kriging interpolation.
Predictions are returned as floats, which are the mean of the model’s prediction.
- class cosapp.utils.surrogate_models.kriging.KrigingSurrogate(nugget=np.float64(2.220446049250313e-15), eval_rmse=False)[source]¶
Bases:
SurrogateModelSurrogate Modeling method based on the simple Kriging interpolation.
Predictions are returned as a tuple of mean and RMSE. Based on Gaussian Processes for Machine Learning (GPML) by Rasmussen and Williams. (see also: scikit-learn).
- alpha¶
Reduced likelihood parameter: alpha
- Type:
ndarray
- eval_rmse¶
When true, calculate the root mean square prediction error.
- Type:
bool
- L¶
Reduced likelihood parameter: L
- Type:
ndarray
- n_dims¶
Number of independents in the surrogate
- Type:
int
- n_samples¶
Number of training points.
- Type:
int
- nugget¶
Nugget smoothing parameter for smoothing noisy data. Represents the variance of the input values. If nugget is an ndarray, it must be of the same length as the number of training points. Default: 10. * Machine Epsilon
- Type:
double or ndarray, optional
- sigma2¶
Reduced likelihood parameter: sigma squared
- Type:
ndarray
- thetas¶
Kriging hyperparameters.
- Type:
ndarray
- X¶
Training input values, normalized.
- Type:
ndarray
- X_mean¶
Mean of training input values, normalized.
- Type:
ndarray
- X_std¶
Standard deviation of training input values, normalized.
- Type:
ndarray
- Y¶
Training model response values, normalized.
- Type:
ndarray
- Y_mean¶
Mean of training model response values, normalized.
- Type:
ndarray
- Y_std¶
Standard deviation of training model response values, normalized.
- Type:
ndarray
- 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