Skip to content

Commit 71e954a

Browse files
committed
Document allow_sparse_x
1 parent a82ed40 commit 71e954a

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

R/aaa_models.R

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

man/set_new_model.Rd

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)