Learn R Programming

gplite (version 0.13.0)

gp_saveload: Save and load a GP model

Description

Convenience functions for saving and loading GP models.

Usage

gp_save(gp, filename)

gp_load(filename)

Value

gp_load returns the loaded GP model object.

Arguments

gp

The gp model object to be saved.

filename

Where to save or load from.

Examples

Run this code

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)


Run the code above in your browser using DataLab