File: get_fingerprint.Rd

package info (click to toggle)
r-cran-rsample 1.1.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,872 kB
  • sloc: sh: 13; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/misc.R
\name{.get_fingerprint}
\alias{.get_fingerprint}
\alias{.get_fingerprint.default}
\alias{.get_fingerprint.rset}
\title{Obtain a identifier for the resamples}
\usage{
.get_fingerprint(x, ...)

\method{.get_fingerprint}{default}(x, ...)

\method{.get_fingerprint}{rset}(x, ...)
}
\arguments{
\item{x}{An \code{rset} or \code{tune_results} object.}

\item{...}{Not currently used.}
}
\value{
A character value or \code{NA_character_} if the object was created prior
to \code{rsample} version 0.1.0.
}
\description{
This function returns a hash (or NA) for an attribute that is created when
the \code{rset} was initially constructed. This can be used to compare with other
resampling objects to see if they are the same.
}
\examples{
set.seed(1)
.get_fingerprint(vfold_cv(mtcars))

set.seed(1)
.get_fingerprint(vfold_cv(mtcars))

set.seed(2)
.get_fingerprint(vfold_cv(mtcars))

set.seed(1)
.get_fingerprint(vfold_cv(mtcars, repeats = 2))
}