Calls dbarts::bart from package dbarts.

Dictionary

This Learner can be instantiated via the dictionary mlr_learners or with the associated sugar function lrn():

mlr_learners$get("regr.bart")
lrn("regr.bart")

Traits

  • Packages: dbarts

  • Predict Types: response

  • Feature Types: integer, numeric, factor, ordered

  • Properties: weights

Custom mlr3 defaults

  • Parameter: keeptrees

  • Original: FALSE

  • New: TRUE

  • Reason: Required for prediction

See also

Author

ck37

Super classes

mlr3::Learner -> mlr3::LearnerRegr -> LearnerRegrBart

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

LearnerRegrBart$new()


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerRegrBart$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

# stop example failing with warning if package not installed learner = suppressWarnings(mlr3::lrn("regr.bart")) print(learner)
#> <LearnerRegrBart:regr.bart> #> * Model: - #> * Parameters: keeptrees=TRUE #> * Packages: dbarts #> * Predict Type: response #> * Feature types: integer, numeric, factor, ordered #> * Properties: weights
# available parameters: learner$param_set$ids()
#> [1] "ntree" "sigest" "sigdf" "sigquant" #> [5] "k" "power" "base" "ndpost" #> [9] "nskip" "printevery" "keepevery" "keeptrainfits" #> [13] "usequants" "numcut" "printcutoffs" "verbose" #> [17] "keeptrees" "keepcall" "sampleronly" "offset.test"