Skip to content

Commit 60aade5

Browse files
authored
Merge pull request #35 from tonyk7440/master
Fixing up R CMD Check
2 parents bf27cd8 + 722c8df commit 60aade5

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

R/catboost.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ add_boost_tree_catboost <- function() {
189189
parsnip::set_model_arg(
190190
model = "boost_tree",
191191
eng = "catboost",
192-
parsnip = "sample_size",
192+
parsnip = "sample_prop",
193193
original = "subsample",
194194
func = list(pkg = "dials", fun = "sample_size"),
195195
has_submodel = FALSE

R/lightgbm.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ add_boost_tree_lightgbm <- function() {
166166
parsnip::set_model_arg(
167167
model = "boost_tree",
168168
eng = "lightgbm",
169-
parsnip = "sample_size",
169+
parsnip = "sample_prop",
170170
original = "bagging_fraction",
171171
func = list(pkg = "dials", fun = "sample_size"),
172172
has_submodel = FALSE

tests/testthat/helper-model.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mtcars_class_binary$vs <- as.factor(mtcars$vs)
55

66
expect_all_modes_works <- function(model, engine) {
77
if(engine == "lightgbm") {
8-
model <- parsnip::set_engine(model, engine, verbosity = -1L)
8+
model <- parsnip::set_engine(model, engine)
99
} else {
1010
model <- parsnip::set_engine(model, engine)
1111
}

vignettes/working-with-lightgbm-catboost.Rmd

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ vignette: >
1111
knitr::opts_chunk$set(
1212
collapse = TRUE,
1313
comment = "#>",
14+
eval = FALSE,
1415
warning = FALSE,
1516
message = FALSE
1617
)

0 commit comments

Comments
 (0)