You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,16 @@
11
11
12
12
* The `liquidSVM` engine for `svm_rbf()` was deprecated due to that package's removal from CRAN. (#425)
13
13
14
+
* The xgboost engine for boosted trees was translating `mtry` to xgboost's `colsample_bytree`. We now map `mtry` to `colsample_bynode` since that is more consistent with how random forest works. `colsample_bytree` can still be optimized by passing it in as an engine argument. `colsample_bynode` was added to xgboost after the `parsnip` package code was written. (#495)
15
+
16
+
* For xgboost, `mtry` and `colsample_bytree` can be passed as integer counts or proportions, while `subsample` and `validation` should always be proportions. `xgb_train()` now has a new option `counts` (`TRUE` or `FALSE`) that states which scale for `mtry` and `colsample_bytree` is being used. (#461)
17
+
18
+
r
14
19
## Other Changes
15
20
16
21
* Re-licensed package from GPL-2 to MIT. See [consent from copyright holders here](https://github.com/tidymodels/parsnip/issues/462).
17
22
18
-
*`set_mode()` now checks if `mode` is compatible with the model class, similar to `new_model_spec()` (@jtlandis, #467).
23
+
*`set_mode()` now checks if `mode` is compatible with the model class, similar to `new_model_spec()` (@jtlandis, #467). Both `set_mode()` and `set_engine()` now error for `NULL` or missing arguments (#503).
19
24
20
25
* Re-organized model documentation for `update` methods (#479).
21
26
@@ -27,6 +32,7 @@
27
32
28
33
* xgboost engines now respect the `event_level` option for predictions (#460).
29
34
35
+
30
36
# parsnip 0.1.5
31
37
32
38
* An RStudio add-in is available that makes writing multiple `parsnip` model specifications to the source window. It can be accessed via the IDE addin menus or by calling `parsnip_addin()`.
Copy file name to clipboardExpand all lines: man/rmd/boost-tree.Rmd
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,8 +38,7 @@ mod_param <-
38
38
update(sample_size = sample_prop(c(0.4, 0.9)))
39
39
```
40
40
41
-
For this engine, tuning over `trees` is very efficient since the same model
42
-
object can be used to make predictions over multiple values of `trees`.
41
+
For this engine, tuning over `trees` is very efficient since the same model object can be used to make predictions over multiple values of `trees`.
43
42
44
43
Note that `xgboost` models require that non-numeric predictors (e.g., factors) must be converted to dummy variables or some other numeric representation. By default, when using `fit()` with `xgboost`, a one-hot encoding is used to convert factor predictors to indicator variables.
0 commit comments