Description Usage Arguments Value Examples
This function allows you to big load sparse numeric CSVs. Loading in chunks allows to not explode the memory as when the data is imported into R, it is typically a dense matrix. Verbosity is automatic and cannot be removed. In case you need this function without verbosity, please compile the package after removing verbose messages.
1 2 |
input |
The input file name. |
iterfeature |
The amount of variables loaded per iteration. The smaller the longer it takes to load the whole dataset in its entireity. |
nfeatures |
The IDs of features to load. Defaults to |
colClasses |
The classes of the columns. Defaults to |
RDS |
Whether to store in a RDS file of that name. Defaults to |
compress_RDS |
Whether to compress RDS file. Defaults to |
NA_sparse |
Whether sparsity is defined as NA. Defaults to |
The sparse matrix
1 2 | #read_sparse_csv("train_numeric.csv", iterfeature = 100, IDs = c(1:500, 601:1000), colClasses = NA,
#RDS = TRUE, compress_RDS = FALSE, NA_sparse = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.