% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gpb.Dataset.R
\name{gpb.Dataset.save}
\alias{gpb.Dataset.save}
\title{Save \code{gpb.Dataset} to a binary file}
\usage{
gpb.Dataset.save(dataset, fname)
}
\arguments{
\item{dataset}{object of class \code{gpb.Dataset}}

\item{fname}{object filename of output file}
}
\value{
the dataset you passed in
}
\description{
Please note that \code{init_score} is not saved in binary file.
             If you need it, please set it again after loading Dataset.
}
\examples{
\donttest{
data(agaricus.train, package = "gpboost")
train <- agaricus.train
dtrain <- gpb.Dataset(train$data, label = train$label)
gpb.Dataset.save(dtrain, tempfile(fileext = ".bin"))
}
}
