Skip to contents

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("classif.bart")
lrn("classif.bart")

Meta Information

  • Task type: “classif”

  • Predict Types: “response”, “prob”

  • Feature Types: “integer”, “numeric”, “factor”, “ordered”

  • Required Packages: mlr3extralearners, dbarts

Parameters

IdTypeDefaultLevelsRange
ntreeinteger200\([1, \infty)\)
knumeric2\([0, \infty)\)
powernumeric2\([0, \infty)\)
basenumeric0.95\([0, 1]\)
binaryOffsetnumeric0\((-\infty, \infty)\)
ndpostinteger1000\([1, \infty)\)
nskipinteger100\([0, \infty)\)
printeveryinteger100\([0, \infty)\)
keepeveryinteger1\([1, \infty)\)
keeptrainfitslogicalTRUETRUE, FALSE\((-\infty, \infty)\)
usequantslogicalFALSETRUE, FALSE\((-\infty, \infty)\)
numcutinteger100\([1, \infty)\)
printcutoffsinteger0\((-\infty, \infty)\)
verboselogicalTRUETRUE, FALSE\((-\infty, \infty)\)
keepcalllogicalTRUETRUE, FALSE\((-\infty, \infty)\)
sampleronlylogicalFALSETRUE, FALSE\((-\infty, \infty)\)
offsetnumeric0\((-\infty, \infty)\)
offset.testlogicalFALSETRUE, FALSE\((-\infty, \infty)\)

See also

Author

ck37

Super classes

mlr3::Learner -> mlr3::LearnerClassif -> LearnerClassifBart

Methods

Inherited methods


Method new()

Creates a new instance of this R6 class.

Usage


Method clone()

The objects of this class are cloneable with this method.

Usage

LearnerClassifBart$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (requireNamespace("dbarts", quietly = TRUE)) {
  learner = mlr3::lrn("classif.bart")
  print(learner)

  # available parameters:
  learner$param_set$ids()
}
#> <LearnerClassifBart:classif.bart>
#> * Model: -
#> * Parameters: list()
#> * Packages: mlr3, mlr3extralearners, dbarts
#> * Predict Type: response
#> * Feature types: integer, numeric, factor, ordered
#> * Properties: twoclass, weights
#>  [1] "ntree"         "k"             "power"         "base"         
#>  [5] "binaryOffset"  "ndpost"        "nskip"         "printevery"   
#>  [9] "keepevery"     "keeptrainfits" "usequants"     "numcut"       
#> [13] "printcutoffs"  "verbose"       "keepcall"      "sampleronly"  
#> [17] "offset"        "offset.test"