xgboost (version 0.3-0)

getinfo: Get information of an xgb.DMatrix object

Description

Get information of an xgb.DMatrix object

Usage

getinfo(object, ...)

## S3 method for class 'xgb.DMatrix': getinfo(object, name)

Arguments

object
Object of class "xgb.DMatrix"
name
the name of the field to get
...
other parameters

Examples

Run this code
data(iris)
iris[,5] <- as.numeric(iris[,5])
dtrain <- xgb.DMatrix(as.matrix(iris[,1:4]), label=iris[,5])
labels <- getinfo(dtrain, "label")

Run the code above in your browser using DataLab