plotEvol: Plot for the evolution of model selection algorithm

Description Usage Arguments Value See Also Examples

Description

This method displays the evolution of an iterative algorithm for model selection.

Usage

1
plotEvol(x.model, ...)

Arguments

x.model

an object containing the data structures returned by the model selection algorithm.

...

additional arguments affecting the plot.

Value

None.

See Also

* plotEvol for a plot on the evolution of the model selection algorithm in fgpm_factory.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
require(funGp) # a package with a plotEvol 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 evolution of the algorihtm
plotEvol(xm)

## End(Not run)

funGp documentation built on July 22, 2021, 9:07 a.m.