compile Rd files, i.e. R documents

This commit is contained in:
hetong
2014-08-28 08:12:48 -07:00
parent df6cd25fd5
commit 73419f6cd7
14 changed files with 292 additions and 21 deletions

21
R-package/man/xgb.load.Rd Normal file
View File

@@ -0,0 +1,21 @@
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{xgb.load}
\alias{xgb.load}
\title{Load xgboost model from binary file}
\usage{
xgb.load(modelfile)
}
\arguments{
\item{modelfile}{the name of the binary file.}
}
\description{
Load xgboost model from the binary model file
}
\examples{
data(iris)
bst <- xgboost(as.matrix(iris[,1:4]),as.numeric(iris[,5]), nrounds = 2)
xgb.save(bst, 'iris.xgb.model')
bst <- xgb.load('iris.xgb.model')
pred <- predict(bst, as.matrix(iris[,1:4]))
}