Skip to content

Commit a5fd293

Browse files
authored
- remove bartMachine learner (#2851)
1 parent aece574 commit a5fd293

9 files changed

+1
-22
lines changed

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ Imports:
7575
Suggests:
7676
ada,
7777
adabag,
78-
bartMachine,
7978
batchtools,
8079
bit64,
8180
brnn,
@@ -183,7 +182,7 @@ ByteCompile: yes
183182
Config/testthat/edition: 3
184183
Config/testthat/parallel: true
185184
Config/testthat/start-first: featsel_plotFilterValues,base_plotResiduals,base_generateHyperParsEffect,
186-
classif_bartMachine, tune_tuneIrace, featsel_filters, learners_all*,
185+
tune_tuneIrace, featsel_filters, learners_all*,
187186
regr_h2ogbm
188187
Encoding: UTF-8
189188
LazyData: yes

NAMESPACE

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ S3method(makeRLearner,classif.PART)
159159
S3method(makeRLearner,classif.RRF)
160160
S3method(makeRLearner,classif.ada)
161161
S3method(makeRLearner,classif.adaboostm1)
162-
S3method(makeRLearner,classif.bartMachine)
163162
S3method(makeRLearner,classif.binomial)
164163
S3method(makeRLearner,classif.boosting)
165164
S3method(makeRLearner,classif.bst)
@@ -237,7 +236,6 @@ S3method(makeRLearner,regr.IBk)
237236
S3method(makeRLearner,regr.LiblineaRL2L1SVR)
238237
S3method(makeRLearner,regr.LiblineaRL2L2SVR)
239238
S3method(makeRLearner,regr.RRF)
240-
S3method(makeRLearner,regr.bartMachine)
241239
S3method(makeRLearner,regr.bcart)
242240
S3method(makeRLearner,regr.bgp)
243241
S3method(makeRLearner,regr.bgpllm)
@@ -340,7 +338,6 @@ S3method(predictLearner,classif.PART)
340338
S3method(predictLearner,classif.RRF)
341339
S3method(predictLearner,classif.ada)
342340
S3method(predictLearner,classif.adaboostm1)
343-
S3method(predictLearner,classif.bartMachine)
344341
S3method(predictLearner,classif.binomial)
345342
S3method(predictLearner,classif.boosting)
346343
S3method(predictLearner,classif.bst)
@@ -418,7 +415,6 @@ S3method(predictLearner,regr.IBk)
418415
S3method(predictLearner,regr.LiblineaRL2L1SVR)
419416
S3method(predictLearner,regr.LiblineaRL2L2SVR)
420417
S3method(predictLearner,regr.RRF)
421-
S3method(predictLearner,regr.bartMachine)
422418
S3method(predictLearner,regr.bcart)
423419
S3method(predictLearner,regr.bgp)
424420
S3method(predictLearner,regr.bgpllm)
@@ -586,7 +582,6 @@ S3method(trainLearner,classif.PART)
586582
S3method(trainLearner,classif.RRF)
587583
S3method(trainLearner,classif.ada)
588584
S3method(trainLearner,classif.adaboostm1)
589-
S3method(trainLearner,classif.bartMachine)
590585
S3method(trainLearner,classif.binomial)
591586
S3method(trainLearner,classif.boosting)
592587
S3method(trainLearner,classif.bst)
@@ -664,7 +659,6 @@ S3method(trainLearner,regr.IBk)
664659
S3method(trainLearner,regr.LiblineaRL2L1SVR)
665660
S3method(trainLearner,regr.LiblineaRL2L2SVR)
666661
S3method(trainLearner,regr.RRF)
667-
S3method(trainLearner,regr.bartMachine)
668662
S3method(trainLearner,regr.bcart)
669663
S3method(trainLearner,regr.bgp)
670664
S3method(trainLearner,regr.bgpllm)

tests/testthat/test_learners_all_classif.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11

22
test_that("learners work: classif", {
33

4-
# because of missing rJava for bartMachine
5-
skip_on_os("windows")
6-
74
# settings to make learners faster and deal with small data size
85
hyperpars = list(
96
classif.boosting = list(mfinal = 2L),

tests/testthat/test_learners_all_regr.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,12 @@ test_that("learners work: regr ", {
44
requirePackagesOrSkip("kknn")
55
requirePackagesOrSkip("survival")
66

7-
# because of missing rJava for bartMachine
8-
skip_on_os("windows")
97
# suppressPackageStartupMessages(requirePackagesOrSkip("crs", default.method = "load"))
108

119
# settings to make learners faster and deal with small data size
1210
hyperpars = list(
1311
regr.km = list(nugget = 0.01),
1412
regr.cforest = list(mtry = 1L, minsplit = 1, minbucket = 1),
15-
regr.bartMachine = list(verbose = FALSE, run_in_sample = FALSE,
16-
# see above
17-
replace_missing_data_with_x_j_bar = TRUE,
18-
num_iterations_after_burn_in = 10L),
1913
regr.h2o.deeplearning = list(hidden = 2L),
2014
regr.ranger = list(keep.inbag = TRUE)
2115
)

tests/testthat/test_learners_classiflabelswitch.R

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ mytask3 = makeClassifTask(id = "t3", data = mydata3, target = "y")
2929
mytask4 = makeClassifTask(id = "t4", data = mydata4, target = "y")
3030

3131
hpars = list(
32-
classif.bartMachine = list(verbose = FALSE, run_in_sample = FALSE,
33-
num_iterations_after_burn_in = 10L),
3432
classif.bdk = list(ydim = 2L),
3533
classif.boosting = list(mfinal = 10L),
3634
classif.cforest = list(mtry = 2L),
@@ -46,9 +44,6 @@ hpars = list(
4644

4745
test_that("no labels are switched", {
4846

49-
# because of missing rJava for bartMachine
50-
skip_on_os("windows")
51-
5247
# spurious non-deterministic changes
5348
skip_on_os("linux")
5449

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)