Package: rsample 1.2.1.9000

Hannah Frick

rsample: General Resampling Infrastructure

Classes and functions to create and summarize different types of resampling objects (e.g. bootstrap, cross-validation).

Authors:Hannah Frick [aut, cre], Fanny Chow [aut], Max Kuhn [aut], Michael Mahoney [aut], Julia Silge [aut], Hadley Wickham [aut], Posit Software, PBC [cph, fnd]

rsample_1.2.1.9000.tar.gz
rsample_1.2.1.9000.zip(r-4.5)rsample_1.2.1.9000.zip(r-4.4)rsample_1.2.1.9000.zip(r-4.3)
rsample_1.2.1.9000.tgz(r-4.4-any)rsample_1.2.1.9000.tgz(r-4.3-any)
rsample_1.2.1.9000.tar.gz(r-4.5-noble)rsample_1.2.1.9000.tar.gz(r-4.4-noble)
rsample_1.2.1.9000.tgz(r-4.4-emscripten)rsample_1.2.1.9000.tgz(r-4.3-emscripten)
rsample.pdf |rsample.html
rsample/json (API)
NEWS

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

Peer review:

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

Pkgdown site:https://rsample.tidymodels.org

On CRAN:

16.85 score 341 stars 77 packages 4.8k scripts 81k downloads 3 mentions 61 exports 30 dependencies

Last updated 3 months agofrom:f799dba0aa. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 26 2024
R-4.5-winOKDec 26 2024
R-4.5-linuxOKDec 26 2024
R-4.4-winOKDec 26 2024
R-4.4-macOKDec 26 2024
R-4.3-winOKDec 26 2024
R-4.3-macOKDec 26 2024

Exports:.get_fingerprint.get_split_argsadd_resample_idall_ofanalysisany_ofapparentassessmentbootstrapscaret2rsampleclustering_cvcomplementcontainsends_witheverythingform_predget_rsplitgroup_bootstrapsgroup_initial_splitgroup_initial_validation_splitgroup_mc_cvgroup_validation_splitgroup_vfold_cvinitial_splitinitial_time_splitinitial_validation_splitinitial_validation_time_splitinner_splitint_bcaint_pctlint_tlast_colloo_cvmake_splitsmake_stratamanual_rsetmatchesmc_cvnested_cvnew_rsetnum_rangepermutationspopulatereg_intervalsreshuffle_rsetreverse_splitsrolling_originrsample2caretrset_reconstructsliding_indexsliding_periodsliding_windowstarts_withtestingtidytrainingvalidationvalidation_setvalidation_splitvalidation_time_splitvfold_cv

Dependencies:clicodetoolscpp11digestdplyrfansifurrrfuturegenericsglobalsgluelifecyclelistenvmagrittrparallellypillarpkgconfigpurrrR6rlangsliderstringistringrtibbletidyrtidyselectutf8vctrswarpwithr

Common Resampling Patterns

Rendered fromCommon_Patterns.Rmdusingknitr::rmarkdownon Dec 26 2024.

Last update: 2024-09-04
Started: 2022-07-15

Introduction to rsample

Rendered fromrsample.Rmdusingknitr::rmarkdownon Dec 26 2024.

Last update: 2023-02-09
Started: 2020-10-09

Working with resampling sets

Rendered fromWorking_with_rsets.Rmdusingknitr::rmarkdownon Dec 26 2024.

Last update: 2024-09-04
Started: 2017-04-29

Readme and manuals

Help Manual

Help pageTopics
Obtain a identifier for the resamples.get_fingerprint .get_fingerprint.default .get_fingerprint.rset
Augment a data set with resampling identifiersadd_resample_id
Sampling for the Apparent Error Rateapparent
Convert an 'rsplit' object to a data frameanalysis analysis.default analysis.rsplit as.data.frame.rsplit assessment assessment.default assessment.rsplit
Bootstrap Samplingbootstraps
Cluster Cross-Validationclustering_cv
Determine the Assessment Samplescomplement complement.apparent_split complement.rof_split complement.rsplit complement.sliding_index_split complement.sliding_period_split complement.sliding_window_split
Extract Predictor Names from Formula or Termsform_pred
Retrieve individual rsplits objects from an rsetget_rsplit get_rsplit.default get_rsplit.rset
Group Bootstrapsgroup_bootstraps
Group Monte Carlo Cross-Validationgroup_mc_cv
Group V-Fold Cross-Validationgroup_vfold_cv
Simple Training/Test Set Splittinggroup_initial_split initial_split initial_time_split testing testing.default testing.rsplit training training.default training.rsplit
Create an Initial Train/Validation/Test Splitgroup_initial_validation_split initial_validation_split initial_validation_time_split testing.initial_validation_split training.initial_validation_split validation validation.default validation.initial_validation_split
Bootstrap confidence intervalsint_bca int_bca.bootstraps int_pctl int_pctl.bootstraps int_t int_t.bootstraps
Find Labels from rset Objectlabels.rset labels.vfold_cv
Find Labels from rsplit Objectlabels.rsplit
Leave-One-Out Cross-Validationloo_cv
Constructors for split objectsmake_splits make_splits.data.frame make_splits.default make_splits.list
Create or Modify Stratification Variablesmake_strata
Manual resamplingmanual_rset
Monte Carlo Cross-Validationmc_cv
Nested or Double Resamplingnested_cv
Permutation samplingpermutations
Add Assessment Indicespopulate
A convenience function for confidence intervals with linear-ish parametric modelsreg_intervals
"Reshuffle" an rset to re-generate a new rset with the same parametersreshuffle_rset
Reverse the analysis and assessment setsreverse_splits reverse_splits.default reverse_splits.permutations reverse_splits.perm_split reverse_splits.rset reverse_splits.rsplit
Rolling Origin Forecast Resamplingrolling_origin
Compatibility with dplyrrsample-dplyr
Convert Resampling Objects to Other Formatscaret2rsample rsample2caret
Extending rsample with new rset subclassesrset_reconstruct
Time-based Resamplingslide-resampling sliding_index sliding_period sliding_window
Tidy Resampling Objecttidy.nested_cv tidy.rset tidy.rsplit tidy.vfold_cv
Create a Validation Split for Tuninganalysis.val_split assessment.val_split testing.val_split training.val_split validation.val_split validation_set
V-Fold Cross-Validationvfold_cv