Module compute::validation [−][src]
Expand description
Methods for validating models.
Functions
Given an array of data, returns n_bootstrap
vectors, where each has elements that are drawn
from the original array with replacement, and the length of each vector is the same as the
length of the original array.
Given a length-n array of data, returns all leave-one-out length n-1 vectors. See https://en.wikipedia.org/wiki/Jackknife_resampling
Shuffle an array.
Shuffle two arrays. The same shuffling is applied to both arrays. That is, a pair (x_i, y_i) will still be paired together as (x_j, y_j) after shuffling.