Skip to content

Commit

Permalink
Merge pull request #35 from tonyk7440/master
Browse files Browse the repository at this point in the history
Fixing up R CMD Check
  • Loading branch information
Athospd authored Jul 2, 2021
2 parents bf27cd8 + 722c8df commit 60aade5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/catboost.R
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ add_boost_tree_catboost <- function() {
parsnip::set_model_arg(
model = "boost_tree",
eng = "catboost",
parsnip = "sample_size",
parsnip = "sample_prop",
original = "subsample",
func = list(pkg = "dials", fun = "sample_size"),
has_submodel = FALSE
Expand Down
2 changes: 1 addition & 1 deletion R/lightgbm.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ add_boost_tree_lightgbm <- function() {
parsnip::set_model_arg(
model = "boost_tree",
eng = "lightgbm",
parsnip = "sample_size",
parsnip = "sample_prop",
original = "bagging_fraction",
func = list(pkg = "dials", fun = "sample_size"),
has_submodel = FALSE
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/helper-model.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mtcars_class_binary$vs <- as.factor(mtcars$vs)

expect_all_modes_works <- function(model, engine) {
if(engine == "lightgbm") {
model <- parsnip::set_engine(model, engine, verbosity = -1L)
model <- parsnip::set_engine(model, engine)
} else {
model <- parsnip::set_engine(model, engine)
}
Expand Down
1 change: 1 addition & 0 deletions vignettes/working-with-lightgbm-catboost.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ vignette: >
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
eval = FALSE,
warning = FALSE,
message = FALSE
)
Expand Down

0 comments on commit 60aade5

Please sign in to comment.