gp_saveload {gplite}R 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)



[Package gplite version 0.13.0 Index]