Learn R Programming

⚠️There's a newer version (1.0.0) of this package.Take me there.

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

26,037

Version

0.1.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Max Kuhn

Last Published

July 8th, 2020

Functions in tune (0.1.1)

filter_parameters

Remove some tuning parameter results
load_pkgs

Quietly load package namespace
coord_obs_pred

Use same scale for plots of observed vs predicted values
show_best

Investigate best tuning parameters
merge.recipe

Merge parameter grid values into objects
last_fit

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

Objects exported from other packages
fit_resamples

Fit multiple models via resampling
prob_improve

Acquisition function for scoring parameter combinations
finalize_model

Splice final parameters into objects
outcome_names

Determine names of the outcome data in a workflow
min_grid

Determine the minimum set of model fits
parameters.workflow

Determination of parameter sets for other objects
tune

A placeholder function for argument values that are to be tuned.
tunable

Find recommended methods for generating parameter values
tune_bayes

Bayesian optimization of model parameters.
.get_tune_parameters

Various accessor functions
tune_grid

Model tuning via grid search
tune_args

Determine arguments tagged for tuning
expo_decay

Exponential decay function
conf_mat_resampled

Compute average confusion matrix across resamples
control_bayes

Control aspects of the Bayesian search process
extract_recipe

Convenience functions to extract model or recipe
check_rset

Get colors for tune text.
autoplot.tune_results

Plot tuning search results
example_ames_knn

Example Analysis of Ames Housing Data
collect_predictions

Obtain and format results produced by tuning functions
control_grid

Control aspects of the grid search process