Learn R Programming

tgp (version 1.0-1)

tgp.design: Sequential Treed D-Optimal Design for Treed Gaussian Process Models

Description

Based on the maximum a' posteriori (MAP) treed partition in from a "tgp" object, calculate a sequential treed D-Optimal design by subsampling from a set of candidate locations in each of the regions depicted by the tree. The number of D-optimal samples chosen in each region is proportional to the number of candidates in the region.

Usage

tgp.design(howmany, Xcand, out)

Arguments

howmany
Number of new points in the design. Must be less than the number of candidates contained in Xcand, i.e., howmany <= dim(xcand)[1]<="" code="">
Xcand
data.frame, matrix or vector of candidates from which new design points are subsampled. Must have the same dimension as out$X
out
"tgp" class object which is the output of one of the model functions which has tree support, e.g.m btgpllm, btgp,

Value

  • Output is a list of data.frames containing XX design points for each region of the MAP tree in out

Details

This function partitions Xcand and out$X based on the MAP tree in out and calls dopt.gp in order to obtain a D-optimal design with independent stationary Gaussian processes in each region. The aim is to obtain a a design where new points from Xcand are spaced out relative to the existing locations (out$X) in the region. The number of new points from each region is proportional to the number of candidates Xcand in the region.

References

Gramacy, R. B., Lee, H. K. H., & Macready, W. (2004). Parameter space exploration with Gaussian process trees. ICML (pp. 353--360). Omnipress & ACM Digital Library.

Gramacy, R. B., Lee, H. K. H., & Macready, W. (2005). Adaptive Exploration of Computer Experiment Parameter Spaces. submitted to JCGS, available as UCSC Technical Report ams2005-16 http://www.ams.ucsc.edu/reports/trview.php?content=view&name=ams2005-16

Gramacy, R. B. & Lee, H. K. H. (2005). Gaussian Processes and Limiting Linear Models. available as UCSC Technical Report ams2005-17 http://www.ams.ucsc.edu/reports/trview.php?content=view&name=ams2005-17

http://people.ucsc.edu/~boobles/tgp.php

See Also

bgpllm, btlm, blm, bgp, btgpllm, tgp, plot.tgp, dopt.gp tgp.get.partitions

Examples

Run this code
#
# 2-d Exponential data
# (This example is based on random data.  
# It might be fun to run it a few times)
#

# get the data
exp2d.data <- exp2d.rand()
X <- exp2d.data$X; Z <- exp2d.data$Z
Xcand <- exp2d.data$XX

# fit treed GP LLM model to data w/o prediction
# basically just to get MAP tree (and plot it)
out <- btgpllm(X=X, Z=Z, pred.n=FALSE, corr="exp")
tgp.trees(out)

# find a treed sequential D-Optimal design 
# with 10 more points
XX <- tgp.design(10, Xcand, out)

# now fit the model again in order to assess
# the predictive surface at those new design points
dout <- btgpllm(X=X, Z=Z, XX=XX, corr="exp")
plot(dout)

Run the code above in your browser using DataLab