| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/xgb.Booster.R |
| 3 |
\name{variable.names.xgb.Booster} |
| 4 |
\alias{variable.names.xgb.Booster} |
| 5 |
\title{Get Features Names from Booster} |
| 6 |
\usage{ |
| 7 |
\method{variable.names}{xgb.Booster}(object, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{object}{An \code{xgb.Booster} object.} |
| 11 |
|
| 12 |
\item{...}{Not used.} |
| 13 |
} |
| 14 |
\description{ |
| 15 |
Returns the feature / variable / column names from a fitted |
| 16 |
booster object, which are set automatically during the call to \code{\link[=xgb.train]{xgb.train()}} |
| 17 |
from the DMatrix names, or which can be set manually through \code{\link[=setinfo]{setinfo()}}. |
| 18 |
|
| 19 |
If the object doesn't have feature names, will return \code{NULL}. |
| 20 |
|
| 21 |
It is equivalent to calling \code{getinfo(object, "feature_name")}. |
| 22 |
} |