Description Usage Arguments Details References Examples
View source: R/mat_2scipy_sparse.R
conversion of an R matrix to a scipy sparse matrix
1 | mat_2scipy_sparse(x, format = "sparse_row_matrix")
|
x |
a data matrix |
format |
a character string. Either "sparse_row_matrix" or "sparse_column_matrix" |
This function allows the user to convert an R matrix to a scipy sparse matrix. This is useful because the Regularized Greedy Forest algorithm accepts only python sparse matrices as input.
https://docs.scipy.org/doc/scipy/reference/sparse.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.