diff --git a/DESCRIPTION b/DESCRIPTION index 446d0904f..37dff5bd9 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: parsnip Title: A Common API to Modeling and Analysis Functions -Version: 1.1.1.9006 +Version: 1.1.1.9007 Authors@R: c( person("Max", "Kuhn", , "max@posit.co", role = c("aut", "cre")), person("Davis", "Vaughan", , "davis@posit.co", role = "aut"), diff --git a/NAMESPACE b/NAMESPACE index cf2cff73d..9562ecdc2 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -2,7 +2,6 @@ S3method(.censoring_weights_graf,default) S3method(.censoring_weights_graf,model_fit) -S3method(.censoring_weights_graf,workflow) S3method(augment,model_fit) S3method(autoplot,glmnet) S3method(autoplot,model_fit) diff --git a/R/survival-censoring-weights.R b/R/survival-censoring-weights.R index 39ab2626d..2b7b48df8 100644 --- a/R/survival-censoring-weights.R +++ b/R/survival-censoring-weights.R @@ -178,19 +178,6 @@ graf_weight_time_vec <- function(surv_obj, eval_time, eps = 10^-10) { rlang::abort(msg) } - -#' @export -#' @rdname censoring_weights -.censoring_weights_graf.workflow <- function(object, - predictions, - cens_predictors = NULL, - trunc = 0.05, eps = 10^-10, ...) { - if (is.null(object$fit$fit)) { - rlang::abort("The workflow does not have a model fit object.") - } - .censoring_weights_graf(object$fit$fit, predictions, cens_predictors, trunc, eps) -} - #' @export #' @rdname censoring_weights .censoring_weights_graf.model_fit <- function(object, diff --git a/man/censoring_weights.Rd b/man/censoring_weights.Rd index 91051e9d9..85e7907c8 100644 --- a/man/censoring_weights.Rd +++ b/man/censoring_weights.Rd @@ -4,7 +4,6 @@ \alias{censoring_weights} \alias{.censoring_weights_graf} \alias{.censoring_weights_graf.default} -\alias{.censoring_weights_graf.workflow} \alias{.censoring_weights_graf.model_fit} \title{Calculations for inverse probability of censoring weights (IPCW)} \usage{ @@ -12,15 +11,6 @@ \method{.censoring_weights_graf}{default}(object, ...) -\method{.censoring_weights_graf}{workflow}( - object, - predictions, - cens_predictors = NULL, - trunc = 0.05, - eps = 10^-10, - ... -) - \method{.censoring_weights_graf}{model_fit}( object, predictions,