CGGPvalplot {CGGP}R Documentation

Plot validation prediction errors for CGGP object

Description

Plot validation prediction errors for CGGP object

Usage

CGGPvalplot(CGGP, Xval, Yval, d = NULL)

Arguments

CGGP

CGGP object that has been fitted

Xval

X validation data

Yval

Y validation data

d

If output is multivariate, which column to use. Will do all if left as NULL.

Value

None, makes a plot

See Also

Other CGGP plot functions: CGGPplotblocks(), CGGPplotcorr(), CGGPplotheat(), CGGPplothist(), CGGPplotsamplesneglogpost(), CGGPplotslice(), CGGPplottheta(), CGGPplotvariogram()

Examples

SG <- CGGPcreate(d=3, batchsize=100)
f1 <- function(x){x[1]+x[2]^2}
y <- apply(SG$design, 1, f1)
SG <- CGGPfit(SG, y)
Xval <- matrix(runif(3*100), ncol=3)
Yval <- apply(Xval, 1, f1)
CGGPvalplot(CGGP=SG, Xval=Xval, Yval=Yval)

[Package CGGP version 1.0.4 Index]