[R] Construct booster object in load.raw. (#7686)

This commit is contained in:
Jiaming Yuan
2022-02-24 10:06:18 +08:00
committed by GitHub
parent 89aa8ddf52
commit f60d95b0ba
3 changed files with 16 additions and 14 deletions

View File

@@ -4,10 +4,12 @@
\alias{xgb.load.raw}
\title{Load serialised xgboost model from R's raw vector}
\usage{
xgb.load.raw(buffer)
xgb.load.raw(buffer, as_booster = FALSE)
}
\arguments{
\item{buffer}{the buffer returned by xgb.save.raw}
\item{as_booster}{Return the loaded model as xgb.Booster instead of xgb.Booster.handle.}
}
\description{
User can generate raw memory buffer by calling xgb.save.raw