boostWith: Boostr implemented versions of arc-fs, arc-x4 and AdaBoost.

Description Usage Arguments Details Value

Description

Perform the Boost algorithm for the algorithms arc-fs, arc-x4, and AdaBoost.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
boostWithArcFs(x, B, data, .procArgs = NULL, metadata = NULL,
  initialWeights = rep.int(1, nrow(data))/nrow(data),
  analyzePerformance = defaultOOBPerformanceAnalysis,
  .boostBackendArgs = NULL)

boostWithArcX4(x, B, data, .procArgs = NULL, metadata = NULL,
  initialWeights = rep.int(1, nrow(data))/nrow(data),
  analyzePerformance = defaultOOBPerformanceAnalysis,
  .boostBackendArgs = NULL)

boostWithAdaBoost(x, B, data, .procArgs = NULL, metadata = NULL,
  initialWeights = rep.int(1, nrow(data))/nrow(data),
  analyzePerformance = defaultOOBPerformanceAnalysis,
  .boostBackendArgs = NULL)

Arguments

x

a list with entries 'train' and 'predict' or a function that satisfies the definition of an estimation procedure given below. The list input will invoke a call to buildEstimationProcedure. Function input will invoke a call to wrapProcedure, unless the function inherits from 'estimationProcedure'. In either event, metadata may be required to properly wrap x. See the appropriate help documentation.

B

number of iterations of boost to perform.

data

a data.frame of matrix to act as the learning set. The columns are assumed to be ordered such that the response variable in the first column and the remaining columns as the predictors. As a convenience, boostBackend comes with a switch, .formatData (defaulted to TRUE) which will look for an argument named formula inside .procArgs and use the value of formula to format data. If you don't want this to happen, or if the data is already properly formatted, include .formatData=FALSE in metadata.

.procArgs

a named list of arguments to pass to the estimation procedure. If x is a list, .procArgs is a named list of lists with entries .trainArgs and .predictArgs and each list is a named list of arguments to pass to x$train and x$predict, respectively. If x is a function, .procArgs is a named list of arguments to pass to x, in addition to data and weights. See 'Examples' below.

initialWeights

a vector of weights used for the first iteration of the ensemble building phase of Boost.

analyzePerformance

a function which accepts an estimator's predictions and the true responses to said predictions (among other arguments) and returns a list of values. If no function is provided, defaultOOBPerformanceAnalysis is used. See wrapPerformanceAnalyzer for metadata that may need to be passed to make analyzePerformance compatible with the boostr framework.

metadata

a named list of additional arguments to be passed to wrapProcedure, buildEstimationProcedure, wrapPerformanceAnalyzer and/or boostBackend.

.boostBackendArgs

a named list of additional arguments to pass to boostBackend.

Details

These functions call boost with the appropriate reweighters, aggregators, and metadata.

Value

a "boostr" object that is the output of boostBackend.


boostr documentation built on May 2, 2019, 1:42 p.m.