Module compute::validation[][src]

Methods for validating models.

Functions

bootstrap

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.

jackknife

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

Shuffle an array.

shuffle_two

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.