change getinfo Rd
This commit is contained in:
parent
efe8b38a35
commit
6d36e8460d
@ -17,6 +17,6 @@ Get information of an xgb.DMatrix object
|
|||||||
data(iris)
|
data(iris)
|
||||||
iris[,5] <- as.numeric(iris[,5])
|
iris[,5] <- as.numeric(iris[,5])
|
||||||
dtrain <- xgb.DMatrix(as.matrix(iris[,1:4]), label=iris[,5])
|
dtrain <- xgb.DMatrix(as.matrix(iris[,1:4]), label=iris[,5])
|
||||||
labels <- getinfo(dtest, "label")
|
labels <- getinfo(dtrain, "label")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user