File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ Imports:
41
41
Suggests:
42
42
C50,
43
43
covr,
44
- dials (>= 0. 1.0),
44
+ dials (>= 1.0.0.9001 ),
45
45
earth,
46
46
ggrepel,
47
47
keras,
@@ -76,3 +76,5 @@ LazyData: true
76
76
Roxygen: list(markdown = TRUE)
77
77
Config/testthat/edition: 3
78
78
RoxygenNote: 7.2.1.9000
79
+ Remotes:
80
+ tidymodels/dials#256
Original file line number Diff line number Diff line change 2
2
3
3
* The matrix interface for fitting ` fit_xy() ` now works for the ` "censored regression" ` mode (#829 ).
4
4
5
+ * The ` num_leaves ` argument of ` boost_tree() ` s ` lightgbm ` engine (via the bonsai package) is now tunable.
6
+
7
+
5
8
# parsnip 1.0.2
6
9
7
10
* A bagged neural network model was added (` bag_mlp() ` ). Engine implementations will live in the baguette package.
Original file line number Diff line number Diff line change @@ -94,6 +94,19 @@ xgboost_engine_args <-
94
94
component_id = " engine"
95
95
)
96
96
97
+ lightgbm_engine_args <-
98
+ tibble :: tibble(
99
+ name = c(
100
+ " num_leaves"
101
+ ),
102
+ call_info = list (
103
+ list (pkg = " dials" , fun = " num_leaves" )
104
+ ),
105
+ source = " model_spec" ,
106
+ component = " boost_tree" ,
107
+ component_id = " engine"
108
+ )
109
+
97
110
ranger_engine_args <-
98
111
tibble :: tibble(
99
112
name = c(
@@ -244,6 +257,7 @@ tunable_boost_tree <- function(x, ...) {
244
257
res $ call_info [res $ name == " sample_size" ] <-
245
258
list (list (pkg = " dials" , fun = " sample_prop" ))
246
259
} else if (x $ engine == " lightgbm" ) {
260
+ res <- add_engine_parameters(res , lightgbm_engine_args )
247
261
res $ call_info [res $ name == " sample_size" ] <-
248
262
list (list (pkg = " dials" , fun = " sample_prop" ))
249
263
}
You can’t perform that action at this time.
0 commit comments