Skip to contents

Gaussian Process regression using the GPfit package. Calls GPfit::GP_fit() for training and predict method for predictions.

References

MacDonald, B., Ranjan, P., Chipman, H. (2015). "GPfit: An R Package for Fitting a Gaussian Process Model to Deterministic Simulator Outputs." Journal of Statistical Software, 64(12), 1-23.

Super classes

mlr3::Learner -> mlr3::LearnerRegr -> LearnerRegrGPfit

Methods

Inherited methods


Method new()

Creates a new instance of this R6 class.

Usage


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerRegrGPfit$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

library(mlr3)

# Create a regression task
task = tsk("mtcars")

# Create the learner
learner = lrn("regr.gpfit")

# Train the model
learner$train(task)
#> Warning: X should be in range (0, 1)

# Make predictions
prediction = learner$predict(task)
print(prediction)
#> 
#> ── <PredictionRegr> for 32 observations: ───────────────────────────────────────
#>  row_ids truth response
#>        1  21.0     21.0
#>        2  21.0     21.0
#>        3  22.8     22.8
#>      ---   ---      ---
#>       30  19.7     19.7
#>       31  15.0     15.0
#>       32  21.4     21.4