Showing 1 of 8 files from the diff.
Newly tracked file
R/model-evaluation.R changed.
Other files ignored by Codecov

@@ -45,6 +45,21 @@
Loading
45 45
#'   rather than predictive power)
46 46
#' @param ... further arguments passed to the underlying method (e.g. `metrics`,
47 47
#'   `v`, `repeats`).
48 +
#' 
49 +
#' @examples 
50 +
#' x <- rnorm(100, mean = 0)
51 +
#' y <- rpois(n = 100, lambda = exp(x + 1))
52 +
#' dat <- data.frame(x = x, y = y)
53 +
#' 
54 +
#' model <- trending::glm_model(y ~ x, poisson)
55 +
#' evaluate_resampling(model, dat)
56 +
#' evaluate_aic(model, dat)
57 +
#' 
58 +
#' models <- list(
59 +
#'   poisson_model = trending::glm_model(y ~ x, poisson),
60 +
#'   linear_model = trending::lm_model(y ~ x)
61 +
#' )
62 +
#' evaluate_models(models, dat)
48 63
#'
49 64
#' @importFrom stats predict
50 65
#' @export
@@ -84,7 +99,7 @@
Loading
84 99
#' @export
85 100
#' @rdname evaluate_models
86 101
#' @aliases evaluate_models
87 -
evaluate_models <- function(data, models, method = evaluate_resampling, ...) {
102 +
evaluate_models <- function(models, data, method = evaluate_resampling, ...) {
88 103
  ellipsis::check_dots_used()
89 104
  out <- lapply(
90 105
    models,
Files Coverage
R 81.48%
Project Totals (2 files) 81.48%

No yaml found.

Create your codecov.yml to customize your Codecov experience

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