W3cubDocs

/scikit-learn

sklearn.utils.indexable

sklearn.utils.indexable(*iterables) [source]

Make arrays indexable for cross-validation.

Checks consistent length, passes through None, and ensures that everything can be indexed by converting sparse matrices to csr and converting non-interable objects to arrays.

Parameters:
*iterables : lists, dataframes, arrays, sparse matrices

List of objects to ensure sliceability.

© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.utils.indexable.html