blob: dbba19ecf92db0c2c62a6ee52a8743ab8ab1df8d (
plain)
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
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gensvm.grid.R
\name{gensvm.generate.cv.idx}
\alias{gensvm.generate.cv.idx}
\title{Generate a vector of cross-validation indices}
\usage{
gensvm.generate.cv.idx(n, folds)
}
\arguments{
\item{n}{the number of instances}
\item{folds}{the number of cross validation folds}
}
\value{
an array of length \code{n} with values in the range [0, folds-1]
indicating the test fold of each instance.
}
\description{
This function generates a vector of length \code{n} with values from 0 to
\code{folds-1} to mark train and test splits.
}
\references{
Van den Burg, G.J.J. and Groenen, P.J.F. (2016). \emph{GenSVM: A Generalized
Multiclass Support Vector Machine}, Journal of Machine Learning Research,
17(225):1--42. URL \url{http://jmlr.org/papers/v17/14-526.html}.
}
\seealso{
\code{\link{gensvm.grid}}
}
\author{
Gerrit J.J. van den Burg, Patrick J.F. Groenen \cr
Maintainer: Gerrit J.J. van den Burg <gertjanvandenburg@gmail.com>
}
|