CGGPvalplot: Plot validation prediction errors for CGGP object

Description Usage Arguments Value See Also Examples

Description

Plot validation prediction errors for CGGP object

Usage

1
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

1
2
3
4
5
6
7
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)

CGGP documentation built on May 8, 2021, 5:06 p.m.