Skip to content

Commit c87e33d

Browse files
authored
RC 2.0.0 (#1095)
* version bump * remove long deprecated functions * small updates * remake test objects again (without deprc function) * updates for new configs * remove long deprecated function
1 parent e9eccb7 commit c87e33d

20 files changed

+150
-733
lines changed

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: tune
22
Title: Tidy Tuning Tools
3-
Version: 1.3.0.9006
3+
Version: 2.0.0
44
Authors@R: c(
55
person("Max", "Kuhn", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2402-136X")),
@@ -26,7 +26,6 @@ Imports:
2626
glue (>= 1.6.2),
2727
GPfit,
2828
hardhat (>= 1.4.2),
29-
lifecycle (>= 1.0.0),
3029
parallel,
3130
parsnip (>= 1.2.1.9003),
3231
purrr (>= 1.0.0),

NAMESPACE

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ S3method(outcome_names,terms)
7373
S3method(outcome_names,tune_results)
7474
S3method(outcome_names,workflow)
7575
S3method(outcome_names,workflow_variables)
76-
S3method(parameters,model_spec)
77-
S3method(parameters,recipe)
78-
S3method(parameters,workflow)
7976
S3method(predict,conf_bound)
8077
S3method(predict,exp_improve)
8178
S3method(predict,last_fit)
@@ -186,7 +183,6 @@ export(exp_improve)
186183
export(expo_decay)
187184
export(extract_fit_engine)
188185
export(extract_fit_parsnip)
189-
export(extract_model)
190186
export(extract_mold)
191187
export(extract_parameter_set_dials)
192188
export(extract_preprocessor)

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# tune (development version)
1+
# tune 2.0.0
22

33
## Changes to `tune_grid()`.
44

@@ -33,6 +33,8 @@
3333

3434
* Post-processing: new `schedule_grid()` for scheduling a grid including post-processing (#988).
3535

36+
* Removed functions deprecated since tune version 1.6.0 (circa 2021-07-21).
37+
3638
# tune 1.3.0
3739

3840
* The package will now warn when parallel processing has been enabled with foreach but not with future. See [`?parallelism`](https://tune.tidymodels.org/dev/reference/parallelism.html) to learn more about transitioning your code to future (#878, #866). The next version of tune will move to a pure future implementation.

R/loop_over_all_stages-helpers.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,3 +567,10 @@ attach_pkgs <- function(pkgs, strategy = "sequential") {
567567

568568
invisible(pkgs)
569569
}
570+
571+
extract_details <- function(object, extractor) {
572+
if (is.null(extractor)) {
573+
return(list())
574+
}
575+
extractor(object)
576+
}

R/param_set.workflows.R

Lines changed: 0 additions & 43 deletions
This file was deleted.

R/pull.R

Lines changed: 0 additions & 29 deletions
This file was deleted.

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ new_bare_tibble <- function(x, ..., class = character()) {
8282
}
8383

8484
# a helper that takes in a .config vector and returns the corresponding `.iter`.
85-
# entries from initial results, e.g. `Model1_Preprocessor3`, are assigned
85+
# entries from initial results, e.g. `pre2_mod1_post0`, are assigned
8686
# `.iter = 0`.
8787
.config_to_.iter <- function(.config) {
8888
.iter <- .config

_pkgdown.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ reference:
6969
- title: Developer functions
7070
contents:
7171
- merge.recipe
72-
- parameters.workflow
7372
- message_wrap
7473
- .use_case_weights_with_yardstick
7574
- .stash_last_result

inst/test_objects.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ cars_wflow <-
303303

304304
cars_set <-
305305
cars_wflow |>
306-
parameters |>
306+
extract_parameter_set_dials() |>
307307
update(degree = degree_int(1:2)) |>
308308
update(deg_free = deg_free(c(2, 10))) |>
309309
update(`wt degree` = degree_int(1:2)) |>
@@ -314,7 +314,6 @@ cars_grid <-
314314
cars_set |>
315315
grid_regular(levels = c(3, 2, 3, 2))
316316

317-
318317
rcv_results <-
319318
tune_grid(
320319
cars_wflow,

man/extract_model.Rd

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)