tune
2.1.0Tidy Tuning Tools
Overview
The ability to tune models is important. 'tune' contains functions and classes to be used in conjunction with other 'tidymodels' packages for finding reasonable values of hyper-parameters in models, preprocessing methods, and post-processing steps.
- Model tuning has been enabled for quantile regression models. (#1125)
- When calculating resampling estimates, we can now use a weighted mean based on the number of rows in the assessment set. You can opt-in to this using the new
add_resample_weights()function. See?calculate_resample_weights(#990) - The warning threshold when check the size of a workflow is now a parameter to the control functions and has a new default of 100MB. (#914)
- Tuning of models with submodel parameters now predicts all submodels at once (again) to speed up the tuning process (#1140).
tune_bayes()now uses an uncertainty sample if all predictions from the Gaussian process model fail (#1167).
Breaking Changes
- The Gaussian process model package was changed from \pkg{GPfit} to \pkg{GauPro} because the former is no longer actively maintained. There are some differences:
- Fit diagnostics are computed and reported. If the fit quality is poor, an "uncertainty sample" that is furthest away from the existing data is used as the new candidate.
- The GP no longer uses binary indicators for qualitative predictors. Instead, a "categorical kernel" is used for those parameter columns. Fewer starting values are required with this change.
- For numeric predictors, the Matern 3/2 kernel is always used.
Bug Fixes
- Fixed a bug where models with submodel parameters would train all calibration models on predictions from a single submodel value instead of the correct value for each submodel (#1144).
Show all changes in 2.1.0Hide the rest of the changes in 2.1.0
- A bug was fixed where
NULLresults generated during simulated annealing would cause errors when logging. - Fixed a bug for cases where we tune a grid without a model parameter but with a postprocessing parameter (#1119)
- Fixed a bug in
augment()when usinglast_fit()objects (#1110) - In
tune_grid(), a bug was fixed that caused inefficiency where preprocessing steps were applied to data being predicted several times (redundantly). We now execute that operation once. (#1101)
Other Changes
- The developer functions
val_class_and_single()andval_class_or_null()are now deprecated (#1161). check_metrics()is deprecated in favor ofcheck_metrics_arg()(#1160).finalize_workflow_preprocessor()is deprecated (#1157).- Prepends a period to the name, and exports the following functions. This is to improve integration with other packages:
check_grid()(e.g., now named.check_grid())determine_pred_types()get_config_key()loop_over_all_stages()update_parallel_over()get_data_subsets()
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 45 (16 internal)includes a package overview page
- Examples that run
- 96%25 run in a plain check (17 of them under a condition) · 1 never run
- Exported functions with examples
- 58%
- Documented parameters
- 94%
- Return-value docs
- 72%
- Help pages citing references
- 7%
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 8
- Median days to close, 50 most recently updated closed PRs
- 3
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
15 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/tidymodels/tune on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-07 · The repository has a site deploy workflow
pkgdown site last built 2026-04-17
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-03-19Seen in the repository: .claude, .claude/skillsNamed in .Rbuildignore: .claude
Dependencies
Installing tune adds 92 packages (45 with compiled code, 71 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.1.0Latest2026-04-17 · current release · diff ↗ ·
removed 1 export
par_fnsadded 33 exports
.check_grid, .check_param_objects, .create_weight_mapping, .determine_pred_types, .effective_sample_size, .get_config_key, .get_data_subsets, .get_resample_weights, .has_preprocessor, .has_preprocessor_formula, .has_preprocessor_recipe, .has_preprocessor_variables, .has_spec, .is_cataclysmic, .loop_over_all_stages, .loop_over_all_stages2, .make_static, .needs_finalization, .par_fns, .set_workflow, .set_workflow_recipe, .set_workflow_spec, .update_model, .update_parallel_over, .update_recipe, .validate_resample_weights, .weighted_sd, add_resample_weights, calculate_resample_weights, extract_resample_weights and 3 more - 2.0.12025-10-17 · diff ↗
- 2.0.02025-09-01 · diff ↗ ·
removed 2 exports
.catch_and_log_fit, extract_modeladded 11 exports
choose_framework, eval_mirai, finalize_tailor, future_installed, get_future_workers, get_mirai_workers, get_parallel_seeds, has_non_par_pkgs, mirai_installed, par_fns, schedule_grid - RR 4.5.0 released · 2025-04-11
- 1.3.02025-02-21 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.2.12024-04-18 · diff ↗
- 1.2.02024-03-20 · diff ↗ ·
added 15 exports
.filter_perf_metrics, .get_extra_col_names, .get_tune_eval_time_target, .get_tune_eval_times, check_eval_time_arg, check_metric_in_tune_results, check_metrics_arg, choose_eval_time, choose_metric, compute_metrics, first_eval_time, first_metric, get_metric_time, int_pctl, maybe_choose_eval_time - 1.1.22023-08-24 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.1.12023-04-11 · diff ↗
- 1.1.02023-04-05 · diff ↗ ·
added 4 exports
.config_key_from_metrics, collect_extracts, fit_best, initialize_catalog - 1.0.1
- 1.0.02022-07-07 · diff ↗ ·
added 10 exports
.catch_and_log, .catch_and_log_fit, .estimate_metrics, .load_namespace, .stash_last_result, .use_case_weights_with_yardstick, control_last_fit, finalize_workflow_preprocessor, forge_from_workflow, show_notes - RR 4.2.0 released · 2022-04-22
Show 12 earlier eventsHide 12 earlier events
- 0.2.0
- 0.1.62021-07-21 · diff ↗ ·
added 6 exports
extract_fit_engine, extract_fit_parsnip, extract_mold, extract_preprocessor, extract_spec_parsnip, extract_workflow - RR 4.1.0 released · 2021-05-18
- 0.1.52021-04-23 · diff ↗
- 0.1.42021-04-20 · diff ↗
- 0.1.3
- 0.1.22020-11-17 · diff ↗ ·
removed 1 export
no_paramadded 9 exports
augment, fit_max_value, message_wrap, min_grid.C5_rules, min_grid.cubist_rules, min_grid.pls, min_grid.poisson_reg, min_grid.rule_fit, required_pkgs - 0.1.12020-07-08 · diff ↗ ·
added 26 exports
.get_tune_metric_names, .get_tune_metrics, .get_tune_outcome_names, .get_tune_parameter_names, .get_tune_parameters, .get_tune_workflow, check_initial, check_metrics, check_rset, check_time, check_workflow, conf_mat_resampled, coord_obs_pred, empty_ellipses, encode_set, estimate_tune_results, filter_parameters, get_tune_colors, is_preprocessor, is_recipe, is_workflow, metrics_info, new_iteration_results, pull_rset_attributes, val_class_and_single, val_class_or_null - RR 4.0.0 released · 2020-04-24
- 0.1.02020-04-02 · diff ↗
- 0.0.12020-02-11
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2020-02-11
- Total releases
- 20 / 6 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Bundled data
- 101 KB / 2 files
- Download size
- 1.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("tune")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.