add acknowledgement
This commit is contained in:
parent
a656e61571
commit
d86cd62415
@ -4,6 +4,7 @@ source("../xgboost.R", chdir=TRUE)
|
|||||||
# helper function to read libsvm format
|
# helper function to read libsvm format
|
||||||
# this is very badly written, load in dense, and convert to sparse
|
# this is very badly written, load in dense, and convert to sparse
|
||||||
# use this only for demo purpose
|
# use this only for demo purpose
|
||||||
|
# adopted from https://github.com/zygmuntz/r-libsvm-format-read-write/blob/master/f_read.libsvm.r
|
||||||
read.libsvm <- function(fname, maxcol) {
|
read.libsvm <- function(fname, maxcol) {
|
||||||
content <- readLines(fname)
|
content <- readLines(fname)
|
||||||
nline <- length(content)
|
nline <- length(content)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user