File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ check_interface_val <- function(x) {
352352# ' a formula interface, typically some predictor preprocessing must
353353# ' be conducted. `glmnet` is a good example of this.
354354# '
355- # ' There are three options that can be used for the encodings:
355+ # ' There are four options that can be used for the encodings:
356356# '
357357# ' `predictor_indicators` describes whether and how to create indicator/dummy
358358# ' variables from factor predictors. There are three options: `"none"` (do not
@@ -369,10 +369,15 @@ check_interface_val <- function(x) {
369369# ' intercept, `model.matrix()` computes a full set of indicators for the
370370# ' _first_ factor variable, but an incomplete set for the remainder.
371371# '
372- # ' Finally , the option `remove_intercept` will remove the intercept column
372+ # ' Next , the option `remove_intercept` will remove the intercept column
373373# ' _after_ `model.matrix()` is finished. This can be useful if the model
374374# ' function (e.g. `lm()`) automatically generates an intercept.
375375# '
376+ # ' Finally, `allow_sparse_x` specifies whether the model function can natively
377+ # ' accommodate a sparse matrix representation for predictors during fitting
378+ # ' and tuning.
379+ # '
380+ # '
376381# ' @references "How to build a parsnip model"
377382# ' \url{https://www.tidymodels.org/learn/develop/models/}
378383# ' @examples
You can’t perform that action at this time.
0 commit comments