egf_control {epigrowthfit} | R Documentation |
Define Control Parameters
Description
Set parameters controlling the behaviour of egf
.
Usage
egf_control(outer_optimizer = egf_optimizer(nlminb),
inner_optimizer = egf_optimizer(newton),
trace = FALSE, profile = FALSE, sparse_X = FALSE,
omp_num_threads = getOption("egf.cores", 1L))
Arguments
outer_optimizer , inner_optimizer |
|
trace |
an integer determining the amount of tracing performed; see ‘Details’. |
profile |
a logical. If |
sparse_X |
a logical. If |
omp_num_threads |
an integer indicating a number of OpenMP threads to be used when evaluating the objective function, provided that epigrowthfit was compiled with OpenMP support. |
Details
trace
affects the amount of information printed during
likelihood evaluations:
0
-
likelihood evaluations are always silent.
1
-
a message is printed whenever a negative log marginal likelihood term is
NaN
or exceeds1e+09
. 2
-
all negative log marginal likelihood terms are printed.
egf
passes silent = trace == 0L
to
MakeADFun
. A corollary is that nonzero values of
trace
have a number of additional side effects:
error messages are printed during function and gradient evaluations;
the maximum absolute gradient element is printed with each gradient evaluation; and
trace flags set by
config
are turned on.
Value
A list inheriting from class egf_control
containing the
validated arguments.
Warning
Setting trace > 0L
and omp_num_threads > 0L
simultaneously
should be avoided, because tracing messages are printed using R API
functions that are not thread-safe.
Examples
control <- egf_control()
str(control)