Usage
boostBackend(B, reweighter, aggregator, proc, data, initialWeights, .procArgs, analyzePerformance = defaultOOBPerformanceAnalysis, .reweighterArgs = NULL, .aggregatorArgs = NULL, .analyzePerformanceArgs = NULL, .subsetFormula = findFormulaIn(.procArgs), .formatData = !is.null(.subsetFormula), .storeData = FALSE, .calcBoostrPerformance = TRUE)
Arguments
B
the number of iterations to run.
reweighter
a boostr compatible reweighter function.
aggregator
a boostr compatible aggregator function.
proc
a boostr compatible estimation procedure.
data
the learning set to pass to proc
. data
is assumed
to hold the response variable in its first column.
initialWeights
a vector of weights used for the first iteration of
the ensemble building phase of Boost.
.procArgs
a named list of arguments to pass to proc
in
addition to data
.
.reweighterArgs
a named list of arguments to pass to
reweighter
in addition to proc
, data
and
weights
. These are generally initialization values for other
parameters that govern the behaviour of reweighter
.
.aggregatorArgs
a named list of arguments to pass to
aggregator
in addition to the output from reweighter
.
.storeData
a boolean indicating whether the data should be stored in
the returned boostr
object under the attribute "data
".
.calcBoostrPerformance
a boolean indicating whether
analyzePerformance
should be used to monitor the performance of the
returned boostr
object on the learning set. A value of
seq.int(nrow(data))
will be passed to analyzePerformance
as
the oobObs
argument.
.subsetFormula
a formula
object indicating how data
is
to be subsetted. A formula of like "Type ~ ." will rearrange the columns of
data
such that data[,1] == data$Type
. By default, this value
is taken to be the value of the formula
entry in .procArgs
.
If multiple entries have the substring "formula" in their names, the search
will throw an error and you're advised to manually set .subsetFormula
.
.formatData
a boolean indicating whether the data needs to be
reformatted via .subsetFormula
such that the response variable is in
the first column and the remaining columns are all predictor variables. This
is defaulted to !is.null(.subsetFormula)
.
analyzePerformance
a boostr compatible performance analyzer.
.analyzePerformanceArgs
a named list arguments to pass to
analyzePerformance
in addition to prediction
, response
,
and oobPbs
.