Skip to content

tune

2.1.0

Tidy Tuning Tools

35packages dependsuggested by 21
418Kdownloads / year
87.6%test coverage
13/13flavors OK

Overview

About

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.

Changes in 2.1.0
  • 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 NULL results 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 using last_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() and val_class_or_null() are now deprecated (#1161).
  • check_metrics() is deprecated in favor of check_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

CRAN checks
13OK
Slowest check: 4.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.1.0
READMEYes · 252 wordsVignettes· In the repository, left out of the releaseNEWSYes · 100% structured · mentions 2.1.0Citation fileNoWebsiteYes · pkgdown
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

418K
CRAN downloads in the past year
Rank #681 · ~1.1K/day · ~34.8K/mo
Daily download trend is not available in this view yet.
24.2K30 days
79.4K90 days
418K1 year
Compare downloads with other packages →
Also on9.7K r2u7 autocran37.1K conda_forge227 c2d4u

Repository

344Stars
55Forks
110Open issues
7Open PRs
21Releases
1,540Commits
36Commit identities
1,540 commits · Last activity 2026-10-07 · +0.3% stars, 30d · Default branch at 2.1.0.9000, ahead of CRAN 2.1.0 (checked 2026-10-11)
Responsiveness
How these are sampled
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

2025-10-15 · 3162026-09-28 · 344
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (3)
Code of conductContributing guideCODEOWNERS
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-07 · The repository has a site deploy workflow

pkgdown site last built 2026-04-17

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 2 practices
CRAN release process (1)
revdep/
Lint, format, editor (4)
Lint workflowAirVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-03-19
    Seen in the repository: .claude, .claude/skills
    Named in .Rbuildignore: .claude
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
39 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none

Datasets

People & History

People (2)
Author, Maintainer since 0.0.1 (2020)
Copyright holder, Funder · added in 1.1.0
Listed in earlier versions (1)
RStudio
no longer listed · 0.0.1 to 1.0.1
Releases (20)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.1.0Latest
    record
    2026-04-17 · current release · diff ↗ ·
    removed 1 export
    par_fns
    added 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.1
    record
    2025-10-17 · diff ↗
  • 2.0.0
    record
    2025-09-01 · diff ↗ ·
    removed 2 exports
    .catch_and_log_fit, extract_model
    added 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
  • R
    R 4.5.0 released · 2025-04-11
  • 1.3.0
    record
    2025-02-21 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.1
    record
    2024-04-18 · diff ↗
  • 1.2.0
    record
    2024-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.2
    record
    2023-08-24 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.1.1
    record
    2023-04-11 · diff ↗
  • 1.1.0
    record
    2023-04-05 · diff ↗ ·
    added 4 exports
    .config_key_from_metrics, collect_extracts, fit_best, initialize_catalog
  • 1.0.1
    record
    2022-10-09 · diff ↗ ·
    added 2 exports
    check_parameters, new_backend_options
  • 1.0.0
    record
    2022-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
  • R
    R 4.2.0 released · 2022-04-22
Show 12 earlier eventsHide 12 earlier events
  • 0.2.0
    record
    2022-03-19 · diff ↗ ·
    added 2 exports
    collect_notes, extract_parameter_set_dials
  • 0.1.6
    record
    2021-07-21 · diff ↗ ·
    added 6 exports
    extract_fit_engine, extract_fit_parsnip, extract_mold, extract_preprocessor, extract_spec_parsnip, extract_workflow
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.5
    record
    2021-04-23 · diff ↗
  • 0.1.4
    record
    2021-04-20 · diff ↗
  • 0.1.3
    record
    2021-02-28 · diff ↗ ·
    added 1 export
    .get_fingerprint
  • 0.1.2
    record
    2020-11-17 · diff ↗ ·
    removed 1 export
    no_param
    added 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.1
    record
    2020-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
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.0
    record
    2020-04-02 · diff ↗
  • 0.0.1
    record
    2020-02-11
  • R
    R 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")
Kuhn, M., & Posit Software, PBC. (2026). tune: Tidy Tuning Tools (Version 2.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for tune version 2.1.0 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy