package sklearn
Module Utils.Sparsefuncs_fastSource
Get an attribute of this module as a Py.Object.t. This is useful to pass a Python function to another function.
Source
val assign_rows_csr :
x:Py.Object.t ->
x_rows:Py.Object.t ->
out_rows:Py.Object.t ->
out:Py.Object.t ->
unit ->
Py.Object.tDensify selected rows of a CSR matrix into a preallocated array.
Like outout_rows = XX_rows.toarray() but without copying. No-copy supported for both dtype=np.float32 and dtype=np.float64.
Parameters ---------- X : scipy.sparse.csr_matrix, shape=(n_samples, n_features) X_rows : array, dtype=np.intp, shape=n_rows out_rows : array, dtype=np.intp, shape=n_rows out : array, shape=(arbitrary, n_features)