The number of derived predictors from models or feature engineering methods.
num_comp(range = c(1L, unknown()), trans = NULL) num_terms(range = c(1L, unknown()), trans = NULL)
range | A two-element vector holding the defaults for the smallest and largest possible values, respectively. |
---|---|
trans | A |
Since the scale of these parameters often depends on the number of columns
in the data set, the upper bound is set to unknown
. For example, the
number of PCA components is limited by the number of columns and so on.
The difference between num_comp()
and num_terms()
is semantics.
num_terms()#> # Model Terms (quantitative) #> Range: [1, ?]#> # Model Terms (quantitative) #> Range: [2, 10]