This is documentation for an old release of Scikit-learn (version 0.23). Try the latest stable release (version 1.6) or development (unstable) versions.
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
- *iterableslists, dataframes, arrays, sparse matrices
List of objects to ensure sliceability.