gp_saveload: Save and load a GP model

gp_saveloadR Documentation

Save and load a GP model

Description

Convenience functions for saving and loading GP models.

Usage

gp_save(gp, filename)

gp_load(filename)

Arguments

gp

The gp model object to be saved.

filename

Where to save or load from.

Value

gp_load returns the loaded GP model object.

Examples


gp <- gp_init()

# fit the model (skipped here)

# save the model
filename <- file.path(tempdir(), 'gp.rda')
gp_save(gp, filename)

# load the model and remove the file
gp <- gp_load(filename)
file.remove(filename)



gplite documentation built on Aug. 24, 2022, 9:07 a.m.