Learn R Programming

funGp (version 0.1.0)

plotX-generic: Diagnostic plot for quality-enhanced models

Description

This method provides plots for assessing the quality of regression models whose structure have been somehow optimized for predictability.

Arguments

x.model

an object containing the model for which the quality plot is to be made.

...

additional arguments affecting the plot.

Value

None.

See Also

* plotX for the diagnostic plot of a quality-enhanced funGp model.

Examples

Run this code
# NOT RUN {
require(funGp) # a package with a plotX method implemented

# generating input and output data
set.seed(100)
n.tr <- 2^5
sIn <- expand.grid(x1 = seq(0,1,length = n.tr^(1/5)), x2 = seq(0,1,length = n.tr^(1/5)),
                   x3 = seq(0,1,length = n.tr^(1/5)), x4 = seq(0,1,length = n.tr^(1/5)),
                   x5 = seq(0,1,length = n.tr^(1/5)))
fIn <- list(f1 = matrix(runif(n.tr*10), ncol = 10), f2 = matrix(runif(n.tr*22), ncol = 22))
sOut <- fgp_BB7(sIn, fIn, n.tr)
# }
# NOT RUN {
# optimizing the model structure with fgpm_factory (~5 seconds)
xm <- fgpm_factory(sIn = sIn, fIn = fIn, sOut = sOut)

# assessing the quality of the model - absolute and w.r.t. the other explored models
plotX(xm)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab