lgb.Dataset.create.valid.Rd 940 Bytes
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
2
3
4
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lgb.Dataset.R
\name{lgb.Dataset.create.valid}
\alias{lgb.Dataset.create.valid}
wxchan's avatar
wxchan committed
5
\title{Construct validation data}
Guolin Ke's avatar
Guolin Ke committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
\usage{
lgb.Dataset.create.valid(dataset, data, info = list(), ...)
}
\arguments{
\item{dataset}{\code{lgb.Dataset} object, training data}

\item{data}{a \code{matrix} object, a \code{dgCMatrix} object or a character representing a filename}

\item{info}{a list of information of the lgb.Dataset object}

\item{...}{other information to pass to \code{info}.}
}
\value{
constructed dataset
}
\description{
wxchan's avatar
wxchan committed
22
Construct validation data according to training data
Guolin Ke's avatar
Guolin Ke committed
23
24
}
\examples{
25
26
27
28
29
30
31
32
\dontrun{
  data(agaricus.train, package='lightgbm')
  train <- agaricus.train
  dtrain <- lgb.Dataset(train$data, label=train$label)
  data(agaricus.test, package='lightgbm')
  test <- agaricus.test
  dtest <- lgb.Dataset.create.valid(dtrain, test$data, label=test$label)
}
Guolin Ke's avatar
Guolin Ke committed
33
34
}