Skip to content

Commit 2e3c264

Browse files
hfricktopepo
andauthored
Update man/rmd/boost-tree.Rmd
Co-authored-by: Max Kuhn <mxkuhn@gmail.com>
1 parent 328404c commit 2e3c264

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

man/rmd/boost-tree.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ mod_param <-
4141
For this engine, tuning over `trees` is very efficient since the same model
4242
object can be used to make predictions over multiple values of `trees`.
4343

44-
Finally, 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. In the classification mode, non-numeric outcomes (i.e., factors) are converted to numeric. For binary classification, the `event_level` argument of `set_engine()` can be set to either `"first"` or `"second"` to specify which level should be used as the event.
44+
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.
45+
46+
Finally, in the classification mode, non-numeric outcomes (i.e., factors) are converted to numeric. For binary classification, the `event_level` argument of `set_engine()` can be set to either `"first"` or `"second"` to specify which level should be used as the event. This can be helpful when a watchlist is used to monitor performance from with the xgboost training process.
4547

4648

4749
## C5.0

0 commit comments

Comments
 (0)