|
18 | 18 | #' with the [tidymodels](https://tidymodels.org) framework; for greatest ease
|
19 | 19 | #' of use, situate tailors in model workflows with [workflows::add_tailor()].
|
20 | 20 | #'
|
21 |
| -#' @param type The model sub-type. Possible values are `"unknown"`, `"regression"`, |
22 |
| -#' `"binary"`, or `"multiclass"`. |
23 |
| -#' @param outcome The name of the outcome variable. |
24 |
| -#' @param estimate The name of the point estimate (e.g. predicted class). In |
25 |
| -#' tidymodels, this corresponds to column names `.pred`, `.pred_class`, or |
26 |
| -#' `.pred_time`. |
27 |
| -#' @param probabilities The names of class probability estimates (if any). For |
28 |
| -#' classification, these should be given in the order of the factor levels of |
29 |
| -#' the `estimate`. |
| 21 | +#' @param type Character. The model sub-mode. Possible values are |
| 22 | +#' `"unknown"`, `"regression"`, `"binary"`, or `"multiclass"`. Only required |
| 23 | +#' when used independently of [workflows::add_tailor()]. |
| 24 | +#' @param outcome <[`tidy-select`][dplyr::dplyr_tidy_select]> Only required |
| 25 | +#' when used independently of [workflows::add_tailor()], and can also be passed |
| 26 | +#' at `fit()` time instead. The column name of the outcome variable. |
| 27 | +#' @param estimate <[`tidy-select`][dplyr::dplyr_tidy_select]> Only required |
| 28 | +#' when used independently of [workflows::add_tailor()], and can also be passed |
| 29 | +#' at `fit()` time instead. The column name of the point estimate (e.g. predicted |
| 30 | +#' class), In tidymodels, this corresponds to column names `.pred`, |
| 31 | +#' `.pred_class`, or `.pred_time`. |
| 32 | +#' @param probabilities <[`tidy-select`][dplyr::dplyr_tidy_select]> Only required |
| 33 | +#' when used independently of [workflows::add_tailor()] for the `"binary"` or |
| 34 | +#' `"multiclass"` types, and can also be passed at `fit()` time instead. |
| 35 | +#' The column names of class probability estimates. These should be given in |
| 36 | +#' the order of the factor levels of the `estimate`. |
30 | 37 | #' @examplesIf rlang::is_installed("modeldata")
|
31 | 38 | #' library(modeldata)
|
32 | 39 | #'
|
|
0 commit comments