Showing 2 of 7 files from the diff.

@@ -0,0 +1,34 @@
Loading
1 +
#' Declare tunable parameters
2 +
#'
3 +
#' Returns information on potential hyper-parameters that can be optimized.
4 +
#'
5 +
#' @param x An object, such as a recipe, recipe step, workflow, or model
6 +
#' specification.
7 +
#' @param ... Other arguments passed to methods
8 +
#'
9 +
#'@return A tibble with a column for the parameter `name`, information on the
10 +
#'  _default_ method for generating a corresponding parameter object, the
11 +
#'  `source` of the parameter (e.g. "recipe", etc.), and the `component` within
12 +
#'  the source. For the `component` column, a little more specificity is given
13 +
#'  about the location of the parameter (e.g. "step_normalize" or recipes or
14 +
#'  "boost_tree" for models). The `component_id` column contains the unique step
15 +
#'  `id` field or, for models, a logical for whether the model specification
16 +
#'  argument was a main parameter or one associated with the engine.
17 +
#' @details
18 +
#' For a model specification, an engine must be chosen.
19 +
#'
20 +
#' If the object has no tunable parameters, a tibble with no rows is returned.
21 +
#'
22 +
#' The information about the default parameter object takes the form of a
23 +
#' named list with an element for the function call and an optional element for
24 +
#' the source of the function (e.g. the `dials` package). For model
25 +
#' specifications, If the parameter is unknown to the underlying `tunable`
26 +
#' method, a `NULL` is returned.
27 +
#'
28 +
#' @section Methods:
29 +
#' \Sexpr[stage=render,results=rd]{generics:::methods_rd("tunable")}
30 +
#'
31 +
#' @export
32 +
tunable <- function(x, ...) {
33 +
  UseMethod("tunable")
34 +
}

@@ -0,0 +1,11 @@
Loading
1 +
#' Determine packages required by objects
2 +
#'
3 +
#' @param x An object.
4 +
#' @param ... Other arguments passed to methods
5 +
#' @return A character string of packages that are required.
6 +
#' @section Methods:
7 +
#' \Sexpr[stage=render,results=rd]{generics:::methods_rd("required_pkgs")}
8 +
#' @export
9 +
required_pkgs <- function(x, ...) {
10 +
  UseMethod("required_pkgs")
11 +
}
Files Coverage
R 61.29%
Project Totals (28 files) 61.29%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
    patch:
10
      default:
11
        target: auto
12
        threshold: 1%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading