Skip to content

Commit a30a15e

Browse files
topepo‘topepo’
and
‘topepo’
authored
RC 1.2.0 (#1070)
* version bumps * missing exports * stop unicode characters from creeping in * stop unicode characters from creeping in * remove surv_reg details files * fix broken link --------- Co-authored-by: ‘topepo’ <‘mxkuhn@gmail.com’>
1 parent 6d4100f commit a30a15e

27 files changed

+97
-474
lines changed

DESCRIPTION

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: parsnip
22
Title: A Common API to Modeling and Analysis Functions
3-
Version: 1.1.1.9008
3+
Version: 1.2.0
44
Authors@R: c(
55
person("Max", "Kuhn", , "max@posit.co", role = c("aut", "cre")),
66
person("Davis", "Vaughan", , "davis@posit.co", role = "aut"),
@@ -17,7 +17,7 @@ URL: https://github.com/tidymodels/parsnip,
1717
https://parsnip.tidymodels.org/
1818
BugReports: https://github.com/tidymodels/parsnip/issues
1919
Depends:
20-
R (>= 3.5)
20+
R (>= 3.6)
2121
Imports:
2222
cli,
2323
dplyr (>= 1.1.0),
@@ -76,4 +76,4 @@ Config/testthat/edition: 3
7676
Encoding: UTF-8
7777
LazyData: true
7878
Roxygen: list(markdown = TRUE)
79-
RoxygenNote: 7.3.0
79+
RoxygenNote: 7.3.1

NAMESPACE

+4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ S3method(predict_linear_pred,model_fit)
7676
S3method(predict_numeric,"_elnet")
7777
S3method(predict_numeric,"_glmnetfit")
7878
S3method(predict_numeric,model_fit)
79+
S3method(predict_predint,model_fit)
7980
S3method(predict_quantile,model_fit)
8081
S3method(predict_raw,"_elnet")
8182
S3method(predict_raw,"_glmnetfit")
@@ -283,12 +284,15 @@ export(pred_value_template)
283284
export(predict.model_fit)
284285
export(predict_class.model_fit)
285286
export(predict_classprob.model_fit)
287+
export(predict_confint)
286288
export(predict_confint.model_fit)
287289
export(predict_hazard.model_fit)
288290
export(predict_linear_pred)
289291
export(predict_linear_pred.model_fit)
290292
export(predict_numeric)
291293
export(predict_numeric.model_fit)
294+
export(predict_predint)
295+
export(predict_predint.model_fit)
292296
export(predict_quantile.model_fit)
293297
export(predict_raw)
294298
export(predict_raw.model_fit)

NEWS.md

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,38 @@
1-
# parsnip (development version)
1+
# parsnip 1.2.0
22

3-
* We no longer add `eval_time` arguments to the prediction specification for the engine (#1039).
4-
5-
* parsnip now lets the engines for [mlp()] check for acceptable values of the activation function (#1019)
3+
## Bug Fixes
64

75
* Tightened logic for outcome checking. This resolves issues—some errors and some silent failures—when atomic outcome variables have an attribute (#1060, #1061).
86

9-
* `rpart_train()` has been deprecated in favor of using `decision_tree()` with the `"rpart"` engine or `rpart::rpart()` directly (#1044).
10-
117
* Fixed bug in fitting some model types with the `"spark"` engine (#1045).
128

139
* Fixed issues in metadata for the `"brulee"` engine where several arguments were mistakenly protected. (#1050, #1054)
1410

11+
* Fixed documentation for `mlp(engine = "brulee")`: the default values for `learn_rate` and `epochs` were swapped (#1018).
12+
13+
* Fixed a bug in the integration with workflows where using a model formula with a formula preprocessor could result in a double intercept (#1033).
14+
15+
## Other Changes
16+
17+
* We no longer add `eval_time` arguments to the prediction specification for the engine (#1039).
18+
19+
* parsnip now lets the engines for [mlp()] check for acceptable values of the activation function (#1019)
20+
21+
* `rpart_train()` has been deprecated in favor of using `decision_tree()` with the `"rpart"` engine or `rpart::rpart()` directly (#1044).
22+
1523
* `.filter_eval_time()` was moved to the survival standalone file.
1624

1725
* Improved errors and documentation related to special terms in formulas. See `?model_formula` to learn more. (#770, #1014)
1826

1927
* Improved errors in cases where the outcome column is mis-specified. (#1003)
2028

21-
* Fixed documentation for `mlp(engine = "brulee")`: the default values for `learn_rate` and `epochs` were swapped (#1018).
22-
2329
* The `new_data` argument for the `predict()` method for `censoring_model_reverse_km` objects has been deprecated (#965).
2430

2531
* When computing censoring weights, the resulting vectors are no longer named (#1023).
2632

27-
* Fixed a bug in the integration with workflows where using a model formula with a formula preprocessor could result in a double intercept (#1033).
28-
2933
* The `predict()` method for `censoring_model_reverse_km` objects now checks that `...` are empty (#1029).
3034

35+
3136
# parsnip 1.1.1
3237

3338
* Fixed bug where prediction on rank deficient `lm()` models produced `.pred_res` instead of `.pred`. (#985)

R/engine_docs.R

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
#' @keywords internal
88
#' @export
99
knit_engine_docs <- function(pattern = NULL) {
10+
old_cli_opt <- options()$cli.unicode
11+
on.exit(options(cli.unicode = old_cli_opt))
12+
options(cli.unicode = FALSE)
13+
1014
rmd_files <- list.files("man/rmd", pattern = "\\.Rmd", full.names = TRUE)
1115

1216
if (!is.null(pattern)) {

R/predict_interval.R

+22-14
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,29 @@ predict_confint.model_fit <- function(object, new_data, level = 0.95, std_error
4040
res
4141
}
4242

43-
# @export
44-
# @keywords internal
45-
# @rdname other_predict
46-
# @inheritParams predict.model_fit
43+
#' @export
44+
#' @keywords internal
45+
#' @rdname other_predict
46+
#' @inheritParams predict.model_fit
4747
predict_confint <- function(object, ...)
4848
UseMethod("predict_confint")
4949

5050
# ------------------------------------------------------------------------------
5151

52-
# @keywords internal
53-
# @rdname other_predict
54-
# @inheritParams predict.model_fit
55-
# @method predict_predint model_fit
56-
# @export predict_predint.model_fit
57-
# @export
52+
#' @export
53+
#' @keywords internal
54+
#' @rdname other_predict
55+
#' @inheritParams predict.model_fit
56+
predict_predint <- function(object, ...)
57+
UseMethod("predict_predint")
58+
59+
60+
#' @keywords internal
61+
#' @rdname other_predict
62+
#' @inheritParams predict.model_fit
63+
#' @method predict_predint model_fit
64+
#' @export predict_predint.model_fit
65+
#' @export
5866
predict_predint.model_fit <- function(object, new_data, level = 0.95, std_error = FALSE, ...) {
5967

6068
check_spec_pred_type(object, "pred_int")
@@ -88,10 +96,10 @@ predict_predint.model_fit <- function(object, new_data, level = 0.95, std_error
8896
res
8997
}
9098

91-
# @export
92-
# @keywords internal
93-
# @rdname other_predict
94-
# @inheritParams predict.model_fit
99+
#' @export
100+
#' @keywords internal
101+
#' @rdname other_predict
102+
#' @inheritParams predict.model_fit
95103
predict_predint <- function(object, ...)
96104
UseMethod("predict_predint")
97105

R/surv_reg_flexsurv.R

-9
This file was deleted.

R/surv_reg_survival.R

-9
This file was deleted.

man/details_gen_additive_mod_mgcv.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/details_mlp_brulee.Rd

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/details_proportional_hazards_glmnet.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/details_surv_reg_flexsurv.Rd

-67
This file was deleted.

man/details_surv_reg_survival.Rd

-91
This file was deleted.

0 commit comments

Comments
 (0)