foldsComposition function

Setting up the Cross Validation

Setting up the Cross Validation

Randomly partitioning the data into folders

foldsComposition(n, K)

Arguments

  • n: number of observations
  • K: number of classes

See Also

crossValidation

Returns

a vector v of length n with v[i] = the class of observation i.

Author(s)

D. Dupuy

  • Maintainer: C. Helbert
  • License: GPL-3
  • Last published: 2023-12-04

Useful links