Skip to content

Commit 2ec47c7

Browse files
Fixes #81
1 parent d50059e commit 2ec47c7

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

tests/testthat/test-rule-fit-binomial.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test_that("formula method", {
1111
Class ~ .,
1212
data = ad_data$ad_mod,
1313
family = "binomial",
14-
xgb_control = list(nrounds = 3, min_child_weight = 3, penalty = 1),
14+
xgb_control = list(nrounds = 3, min_child_weight = 3),
1515
verbose = 0
1616
)
1717
rf_pred_exp <- predict(rf_fit_exp, ad_data$ad_pred, lambda = 1)[, 1]
@@ -118,7 +118,7 @@ test_that("non-formula method", {
118118
Class ~ .,
119119
data = ad_data$ad_mod,
120120
family = "binomial",
121-
xgb_control = list(nrounds = 3, min_child_weight = 3, penalty = 1),
121+
xgb_control = list(nrounds = 3, min_child_weight = 3),
122122
verbose = 0
123123
)
124124
rf_pred_exp <- predict(rf_fit_exp, ad_data$ad_pred, lambda = 1)[, 1]

tests/testthat/test-rule-fit-multinomial.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ test_that("formula method", {
1414
xgb_control = list(
1515
nrounds = 3,
1616
min_child_weight = 3,
17-
penalty = 1,
1817
num_class = 4
1918
),
2019
verbose = 0
@@ -127,7 +126,6 @@ test_that("non-formula method", {
127126
xgb_control = list(
128127
nrounds = 3,
129128
min_child_weight = 3,
130-
penalty = 1,
131129
num_class = 4
132130
),
133131
verbose = 0

tests/testthat/test-rule-fit-regression.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test_that("formula method", {
1111
ridership ~ .,
1212
data = chi_data$chi_mod,
1313
family = "gaussian",
14-
xgb_control = list(nrounds = 3, min_child_weight = 3, penalty = 1),
14+
xgb_control = list(nrounds = 3, min_child_weight = 3),
1515
verbose = 0
1616
)
1717
rf_pred_exp <- predict(rf_fit_exp, chi_data$chi_pred, lambda = 1)[, 1]
@@ -72,7 +72,7 @@ test_that("non-formula method", {
7272
ridership ~ .,
7373
data = chi_data$chi_mod,
7474
family = "gaussian",
75-
xgb_control = list(nrounds = 3, min_child_weight = 3, penalty = 1),
75+
xgb_control = list(nrounds = 3, min_child_weight = 3),
7676
verbose = 0
7777
)
7878
rf_pred_exp <- predict(rf_fit_exp, chi_data$chi_pred, lambda = 1)[, 1]

0 commit comments

Comments
 (0)