Package: tune 2.1.0.9000

Max Kuhn

tune: Tidy Tuning Tools

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.

Authors:Max Kuhn [aut, cre], Posit Software, PBC [cph, fnd]

tune_2.1.0.9000.tar.gz
tune_2.1.0.9000.zip(r-4.7)tune_2.1.0.9000.zip(r-4.6)tune_2.1.0.9000.zip(r-4.5)
tune_2.1.0.9000.tgz(r-4.6-any)tune_2.1.0.9000.tgz(r-4.5-any)
tune_2.1.0.9000.tar.gz(r-4.7-any)tune_2.1.0.9000.tar.gz(r-4.6-any)
tune_2.1.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
tune/json (API)
NEWS

# Install 'tune' in R:
install.packages('tune', repos = c('https://tidymodels.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/tidymodels/tune/issues

Pkgdown/docs site:https://tune.tidymodels.org

Datasets:

On CRAN:

Conda:

14.73 score 334 stars 50 packages 1.2k scripts 38k downloads 8 mentions 152 exports 101 dependencies

Last updated from:db9702f2a1. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK218
source / vignettesOK216
linux-release-x86_64OK188
macos-release-arm64OK126
macos-oldrel-arm64OK140
windows-develOK208
windows-releaseOK200
windows-oldrelOK144
wasm-releaseOK211

Exports:.catch_and_log.check_grid.check_param_objects.config_key_from_metrics.create_weight_mapping.determine_pred_types.effective_sample_size.estimate_metrics.filter_perf_metrics.get_config_key.get_data_subsets.get_extra_col_names.get_fingerprint.get_resample_weights.get_tune_eval_time_target.get_tune_eval_times.get_tune_metric_names.get_tune_metrics.get_tune_outcome_names.get_tune_parameter_names.get_tune_parameters.get_tune_workflow.has_preprocessor.has_preprocessor_formula.has_preprocessor_recipe.has_preprocessor_variables.has_spec.is_cataclysmic.load_namespace.loop_over_all_stages.loop_over_all_stages2.make_static.needs_finalization.par_fns.set_workflow.set_workflow_recipe.set_workflow_spec.stash_last_result.update_model.update_parallel_over.update_recipe.use_case_weights_with_yardstick.validate_resample_weights.weighted_sdadd_resample_weightsaugmentautoplotcalculate_resample_weightscheck_eval_time_argcheck_initialcheck_metric_in_tune_resultscheck_metricscheck_metrics_argcheck_parameterscheck_rsetcheck_timecheck_workflowchoose_eval_timechoose_frameworkchoose_metriccollect_extractscollect_metricscollect_notescollect_predictionscompute_metricsconf_boundconf_mat_resampledcontrol_bayescontrol_gridcontrol_last_fitcontrol_resamplescoord_obs_predempty_ellipsesencode_setestimate_tune_resultseval_miraiexp_improveexpo_decayextract_fit_engineextract_fit_parsnipextract_moldextract_parameter_set_dialsextract_preprocessorextract_recipeextract_resample_weightsextract_spec_parsnipextract_workflowfilter_parametersfinalize_modelfinalize_recipefinalize_tailorfinalize_workflowfinalize_workflow_preprocessorfirst_eval_timefirst_metricfit_bestfit_max_valuefit_resamplesforge_from_workflowfuture_installedget_future_workersget_metric_timeget_mirai_workersget_parallel_seedsget_tune_colorshas_non_par_pkgsinitialize_catalogint_pctlis_preprocessoris_recipeis_workflowlast_fitload_pkgsloop_callmaybe_choose_eval_timemessage_wrapmetrics_infomin_gridmin_grid.boost_treemin_grid.C5_rulesmin_grid.cubist_rulesmin_grid.linear_regmin_grid.logistic_regmin_grid.marsmin_grid.multinom_regmin_grid.nearest_neighbormin_grid.plsmin_grid.poisson_regmin_grid.proportional_hazardsmin_grid.rule_fitmirai_installednew_backend_optionsnew_bare_tibblenew_iteration_resultsoutcome_namesparametersprob_improvepull_rset_attributesrequired_pkgsschedule_gridselect_bestselect_by_one_std_errselect_by_pct_lossshow_bestshow_notestunabletunetune_argstune_bayestune_gridval_class_and_singleval_class_or_null

Dependencies:base64encbslibcachemclasscliclockcodetoolscpp11data.tablediagramdialsDiceDesigndigestdplyrevaluatefarverfastmapfontawesomefsfurrrfuturefuture.applyGauProgenericsggplot2globalsgluegowergtablehardhathighrhtmltoolsipredisobandjquerylibjsonliteKernSmoothknitrlabelinglatticelavalbfgslifecyclelistenvlubridatemagrittrMASSMatrixmemoisemimemixoptmodelenvnnetnumDerivparallellyparsnippillarpkgconfigprettyunitsprodlimprogressrpurrrR6rappdirsRColorBrewerRcppRcppArmadillorecipesrlangrmarkdownrpartrsampleS7sassscalessfdshapeslidersparsevctrssplitfngrSQUAREMstringistringrsurvivaltailortibbletidyrtidyselecttimechangetimeDatetinytextzdbutf8vctrsviridisLitewarpwithrworkflowsxfunyamlyardstick

Readme and manuals

Help Manual

Help pageTopics
Save most recent results to search path.stash_last_result
Determine if case weights should be passed on to yardstick.use_case_weights_with_yardstick .use_case_weights_with_yardstick.hardhat_frequency_weights .use_case_weights_with_yardstick.hardhat_importance_weights
Add resample weights to an rset objectadd_resample_weights
Augment data with holdout predictionsaugment.last_fit augment.resample_results augment.tune_results
Plot tuning search resultsautoplot.tune_results
Calculate resample weights from resample sizescalculate_resample_weights
Obtain and format results produced by tuning functionscollect_extracts collect_extracts.tune_results collect_metrics collect_metrics.tune_results collect_notes collect_notes.tune_results collect_predictions collect_predictions.default collect_predictions.tune_results
Calculate and format metrics from tuning functionscompute_metrics compute_metrics.default compute_metrics.tune_results
Compute average confusion matrix across resamplesconf_mat_resampled
Control aspects of the Bayesian search processcontrol_bayes
Control aspects of the last fit processcontrol_last_fit
Use same scale for plots of observed vs predicted valuescoord_obs_pred
Example Analysis of Ames Housing Dataames_grid_search ames_iter_search ames_wflow example_ames_knn
Exponential decay functionexpo_decay
Extract resample weights from rset or tuning objectsextract_resample_weights
Extract elements of 'tune' objectsextract-tune extract_fit_engine.tune_results extract_fit_parsnip.tune_results extract_mold.tune_results extract_preprocessor.tune_results extract_recipe.tune_results extract_spec_parsnip.tune_results extract_workflow.last_fit extract_workflow.tune_results
Remove some tuning parameter resultsfilter_parameters
Splice final parameters into objectsfinalize_model finalize_recipe finalize_tailor finalize_workflow
Fit a model to the numerically optimal configurationfit_best fit_best.default fit_best.tune_results
Fit multiple models via resamplingfit_resamples fit_resamples.model_spec fit_resamples.workflow
Bootstrap confidence intervals for performance metricsint_pctl.tune_results
Fit the final best model to the training set and evaluate the test setlast_fit last_fit.model_spec last_fit.workflow
Write a message that respects the line widthmessage_wrap
Support for parallel processing in tuneparallelism
Acquisition function for scoring parameter combinationsconf_bound exp_improve prob_improve
Investigate best tuning parametersselect_best select_best.default select_best.tune_results select_by_one_std_err select_by_one_std_err.default select_by_one_std_err.tune_results select_by_pct_loss select_by_pct_loss.default select_by_pct_loss.tune_results show_best show_best.default show_best.tune_results
Display distinct errors from tune objectsshow_notes
Bayesian optimization of model parameters.tune_bayes tune_bayes.model_spec tune_bayes.workflow
Model tuning via grid searchtune_grid tune_grid.model_spec tune_grid.workflow