SparseBatch
¶2D sparse batch, laid out in CSR (Compressed Sparse Row) layout
Hyunsu Cho
SparseBatch
(float[] data, int[] col_ind, long[] row_ptr, int num_row, int num_col)¶Create a sparse batch representing a 2D sparse matrix
data – nonzero (non-missing) entries
col_ind – corresponding column indices, should be of same length as data
row_ptr – offsets to define each instance, should be of length [num_row]+1
num_row – number of rows (data instances) in the matrix
num_row – number of columns (features) in the matrix
TreeliteError –
Created sparse batch