Skip to content

Commit 67cf5d3

Browse files
committed
document tailor() arguments
1 parent 5fe6fd3 commit 67cf5d3

File tree

2 files changed

+32
-18
lines changed

2 files changed

+32
-18
lines changed

R/tailor.R

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,22 @@
1818
#' with the [tidymodels](https://tidymodels.org) framework; for greatest ease
1919
#' of use, situate tailors in model workflows with [workflows::add_tailor()].
2020
#'
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`.
3037
#' @examplesIf rlang::is_installed("modeldata")
3138
#' library(modeldata)
3239
#'

man/tailor.Rd

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

0 commit comments

Comments
 (0)