Learn R Programming

tune

Overview

The goal of tune is to facilitate hyperparameter tuning for the tidymodels packages. It relies heavily on recipes, parsnip, and dials.

Installation

Install from CRAN:

install.packages("tune", repos = "http://cran.r-project.org") #or your local mirror

or you can install the current development version using:

devtools::install_github("tidymodels/tune")

Examples

There are several package vignettes, as well as articles available at tidymodels.org, demonstrating how to use tune.

Good places to begin include:

More advanced resources available are:

Contributing

This project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Copy Link

Version

Install

install.packages('tune')

Monthly Downloads

28,762

Version

1.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

July 7th, 2022

Functions in tune (1.0.0)

load_pkgs

Quietly load package namespace
.stash_last_result

Save most recent results to search path
outcome_names

Determine names of the outcome data in a workflow
.use_case_weights_with_yardstick

Determine if case weights should be passed on to yardstick
min_grid.model_spec

Determine the minimum set of model fits
conf_mat_resampled

Compute average confusion matrix across resamples
prob_improve

Acquisition function for scoring parameter combinations
fit_resamples

Fit multiple models via resampling
finalize_model

Splice final parameters into objects
collect_predictions

Obtain and format results produced by tuning functions
parameters.workflow

Determination of parameter sets for other objects
control_last_fit

Control aspects of the last fit process
coord_obs_pred

Use same scale for plots of observed vs predicted values
reexports

Objects exported from other packages
show_best

Investigate best tuning parameters
message_wrap

Write a message that respects the line width
tune_grid

Model tuning via grid search
check_rset

Get colors for tune text.
example_ames_knn

Example Analysis of Ames Housing Data
merge.recipe

Merge parameter grid values into objects
augment.tune_results

Augment data with holdout predictions
extract_model

Convenience functions to extract model
show_notes

Display distinct errors from tune objects
filter_parameters

Remove some tuning parameter results
autoplot.tune_results

Plot tuning search results
.get_tune_parameters

Various accessor functions
tune_bayes

Bayesian optimization of model parameters.
forge_from_workflow

Internal functions used by other tidymodels packages
control_grid

Control aspects of the grid search process
control_bayes

Control aspects of the Bayesian search process
expo_decay

Exponential decay function
extract-tune

Extract elements of tune objects
last_fit

Fit the final best model to the training set and evaluate the test set