This function returns a hash (or NA) for an attribute that is created when the rset was initially constructed. This can be used to compare with other resampling objects to see if they are the same.

.get_fingerprint(x, ...)

# S3 method for default
.get_fingerprint(x, ...)

# S3 method for rset
.get_fingerprint(x, ...)

Arguments

x

An rset or tune_results object.

...

Not currently used.

Value

A character value or NA_character_ if the object was created prior to rsample version 0.1.0.

Examples

set.seed(1) .get_fingerprint(vfold_cv(mtcars))
#> [1] "07cbecb64d2cb81754bec72883f752f9"
set.seed(1) .get_fingerprint(vfold_cv(mtcars))
#> [1] "07cbecb64d2cb81754bec72883f752f9"
set.seed(2) .get_fingerprint(vfold_cv(mtcars))
#> [1] "1a882b99451cb9dca9655ac01adcf23a"
set.seed(1) .get_fingerprint(vfold_cv(mtcars, repeats = 2))
#> [1] "2db13a880a04fd3c170115f64b9b68d0"