build_refit_model

build_refit_model(model_type, model_params)

An unfitted model with the same structure as a selected mean model, for refits.

Used by the bootstrap (and the app’s convergence trace) to refit the chosen model to resampled data: the same polynomial degree, or the same Kriging kernel with frozen hyperparameters and input scaling (see build_fixed_kernel_gpr).

Parameters

Name Type Description Default
model_type str 'Polynomial' or 'Kriging'. required
model_params Any The model’s model_params_ (degree, or the Kriging dict). required

Returns

Name Type Description
Any An unfitted Polynomial pipeline or ScaledGaussianProcessRegressor.

Raises

Name Type Description
ValueError If model_type is not 'Polynomial' or 'Kriging'.