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.
Usage
.get_fingerprint(x, ...)
# Default S3 method
.get_fingerprint(x, ...)
# S3 method for class 'rset'
.get_fingerprint(x, ...)
Examples
set.seed(1)
.get_fingerprint(vfold_cv(mtcars))
#> [1] "10edc17b4467d256910fb9dc53c3599a"
set.seed(1)
.get_fingerprint(vfold_cv(mtcars))
#> [1] "10edc17b4467d256910fb9dc53c3599a"
set.seed(2)
.get_fingerprint(vfold_cv(mtcars))
#> [1] "9070fd5cd338c4757f525de2e2a7beaa"
set.seed(1)
.get_fingerprint(vfold_cv(mtcars, repeats = 2))
#> [1] "e2457324f2637e7f0f593755d1592d03"