sklearn.utils.safe_indexing(X, indices)
[source]
Return items or rows from X using indices.
Allows simple indexing of lists or arrays.
Parameters: |
|
---|---|
Returns: |
|
CSR, CSC, and LIL sparse matrices are supported. COO sparse matrices are not supported.
© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.utils.safe_indexing.html