gensvm.generate.cv.idx: Generate a vector of cross-validation indices

View source: R/gensvm.grid.R

gensvm.generate.cv.idxR Documentation

Generate a vector of cross-validation indices

Description

This function generates a vector of length n with values from 0 to folds-1 to mark train and test splits.

Usage

gensvm.generate.cv.idx(n, folds)

Arguments

n

the number of instances

folds

the number of cross validation folds

Value

an array of length n with values in the range [0, folds-1] indicating the test fold of each instance.

Author(s)

Gerrit J.J. van den Burg, Patrick J.F. Groenen
Maintainer: Gerrit J.J. van den Burg <gertjanvandenburg@gmail.com>

References

Van den Burg, G.J.J. and Groenen, P.J.F. (2016). GenSVM: A Generalized Multiclass Support Vector Machine, Journal of Machine Learning Research, 17(225):1–42. URL https://jmlr.org/papers/v17/14-526.html.

See Also

gensvm.grid


gensvm documentation built on Feb. 16, 2023, 5:58 p.m.