LEzGP_fit {EzGP} | R Documentation |
The Fitting Function of LEzGP
Model
Description
Fits a Localized Easy-to-Interpret Gaussian process (LEzGP) model to a dataset as described in reference 1
.
The input variables are mixed (with both quantitative and qualitative inputs)
The output variable is quantitative and scalar.
Usage
LEzGP_fit(
X,
Y,
p,
q,
m,
tar_z,
ns,
models = 1,
tau = 0,
lb = "T",
ub = "T",
x0 = "T",
xtol_rel = 1e-05,
maxeval = 100,
algorithm = "NLOPT_LD_LBFGS"
)
Arguments
X |
Matrix or data frame containing the inputs of training data. Each row represents the input setting of a data point and the columns are values of quantitative variables and qualitative variables. |
Y |
Vector containing the outputs of training data points. |
p |
Number of quantitative factors in the given dataset |
q |
Number of qualitative factors in the given dataset |
m |
A vector containing numbers of levels in qualitative factors. |
tar_z |
A vector containing the qualitative part of the chosen target input (described in |
ns |
The chosen tuning parameter (described in |
models |
The model for fitting the selected proper subset of the dataset |
tau |
Nugget if needed. The default nugget is 0, otherwise it has to be a non-negative real value. |
lb |
Vector with lower bounds of the parameter estimation. "T" for applying the default setting of lb (a vector of length number of parameters whose elements are all 0.1), otherwise one must provide a vector with the length being the number of parameters. |
ub |
Vector with upper bounds of the parameter estimation. "T" for applying the default setting of ub (a vector of length number of parameters whose first |
x0 |
Vector with starting values for the optimization. "T" for applying the default setting of x0 (a vector made by |
xtol_rel |
Stopping criterion for relative change reached. |
maxeval |
Termination condition by specifying a maximum number of function. |
algorithm |
Optimization algorithm. See NLopt Algorithms for more availiable algorithms. |
Value
A model of class "LEzGP model" list of the following items:
param
A list containing the estimated parametersdata
A list containing the fitted dataset and the information for fitting
References
"EzGP: Easy-to-Interpret Gaussian Process Models for Computer Experiments with Both Quantitative and Qualitative Factors", Qian Xiao, Abhyuday Mandal, C. Devon Lin, and Xinwei Deng (doi:10.1137/19M1288462)
See Also
EzGP_predict
to use the fitted EzGP model for prediction if your LEzGP model is fitted based on the EzGP model.
EEzGP_predict
to use the fitted EEzGP model for prediction if your LEzGP model is fitted based on the EEzGP model.
Examples
# Example with 9 quantitative and 9 qualitative variables (dataset included in the package):
# Fit a LEzGP model based on the EEzGP/EzGP model(with default settings), and then
# perform the prediction.
p = 9
q = 9
m=rep(3,9)
tau = 0
X = LEzGP_data[1:60, 1:(p+q)]
Y = LEzGP_data[1:60, p+q+1]
X_new = LEzGP_data[61:70, 1:(p+q)]
tar_z = X_new[1, (p+1):(p+q)]
ns = 7
# LEzGP Model Based on EEzGP Model
model <- LEzGP_fit(X, Y, p, q, m, tar_z, ns)
y_hat <- EEzGP_predict(X_new, model)
# Results showing
model
y_hat