change getinfo Rd

This commit is contained in:
hetong 2014-08-30 11:28:10 -07:00
parent efe8b38a35
commit 6d36e8460d

View File

@ -17,6 +17,6 @@ Get information of an xgb.DMatrix object
data(iris)
iris[,5] <- as.numeric(iris[,5])
dtrain <- xgb.DMatrix(as.matrix(iris[,1:4]), label=iris[,5])
labels <- getinfo(dtest, "label")
labels <- getinfo(dtrain, "label")
}