Based on the maximum a' posteriori (MAP)
treed partition extracted from a "tgp"
class object,
calculate independent sequential treed DOptimal designs in each of the regions.
1  tgp.design(howmany, Xcand, out, iter = 5000, verb = 0)

howmany 
Number of new points in the design. Must
be less than the number of candidates contained in

Xcand 

out 

iter 
number of iterations of stochastic accent algorithm,
default 
verb 
positive integer indicating after how many rounds of
stochastic approximation in 
This function partitions Xcand
and out$X
based on
the MAP tree (obtained on "tgp"
class out
with
partition
) and calls
dopt.gp
in order to obtain a Doptimal design under
independent stationary Gaussian processes models defined in each
region. The aim is to obtain a design where new points from Xcand
are spaced out relative to themselves, and relative to
the existing locations (out$X
) in the region.
The number of new points from each region of the partition is
proportional to the number of candidates Xcand
in the region.
Output is a list of data.frame
s containing XX
design
points for each region of the MAP tree in out
Input Xcand
containing NaN, NA, Inf
are discarded with nonfatal
warnings
DOptimal computation in each region is preceded by a print statement
indicated the number of new locations to be chosen and the number of candidates
in the region. Other than that, there are no other indicators of progress.
You will have to be patient.
Creating treed sequential Doptimal designs is no speedy task. At least it
faster than the nontreed version (see dopt.gp
).
The example below is also part of vignette("tgp")
.
Please see vignette("tgp2")
for a similar example based on
optimization using the optim.step.tgp
Robert B. Gramacy, rbgramacy@chicagobooth.edu, and Matt Taddy, taddy@chicagobooth.edu
Gramacy, R. B. (2007). tgp: An R Package for Bayesian Nonstationary, Semiparametric Nonlinear Regression and Design by Treed Gaussian Process Models. Journal of Statistical Software, 19(9). http://www.jstatsoft.org/v19/i09
Robert B. Gramacy, Matthew Taddy (2010). Categorical Inputs, Sensitivity Analysis, Optimization and Importance Tempering with tgp Version 2, an R Package for Treed Gaussian Process Models. Journal of Statistical Software, 33(6), 1–48. http://www.jstatsoft.org/v33/i06/.
Gramacy, R. B., Lee, H. K. H. (2006). Adaptive design and analysis of supercomputer experiments. Technometrics, to appear. Also avaliable on ArXiv article 0805.4359 http://arxiv.org/abs/0805.4359
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.
http://bobby.gramacy.com/r_packages/tgp
bgpllm
, btlm
, blm
,
bgp
, btgpllm
, plot.tgp
,
dopt.gp
, lhs
,
partition
, optim.step.tgp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26  #
# 2d 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 DOptimal design
# with 10 more points. It is interesting to
# contrast this design with one obtained via
# the dopt.gp function
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)

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.