add nrow to getinfo
This commit is contained in:
parent
a1e188aa75
commit
f295177b1d
@ -39,7 +39,7 @@ setMethod("getinfo", signature = "xgb.DMatrix",
|
||||
if (name != "nrow"){
|
||||
ret <- .Call("XGDMatrixGetInfo_R", object, name, PACKAGE = "xgboost")
|
||||
} else {
|
||||
ret <- .Call("XGDMatrixNumRow_R", object)
|
||||
ret <- .Call("XGDMatrixNumRow_R", object, PACKAGE = "xgboost")
|
||||
}
|
||||
return(ret)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user