FIX small inaccuracies in _safe_split docstring
@@ -152,7 +152,7 @@ def _safe_split(estimator, X, y, indices, train_indices=None):
we slice rows using ``indices`` (assumed the test set) and columns
using ``train_indices``, indicating the training set.
- Labels y will always be sliced only along the last axis.
+ Labels y will always be indexed only along the first axis.
Parameters
----------
@@ -161,11 +161,11 @@ def _safe_split(estimator, X, y, indices, train_indices=None):
columns.
X : array-like, sparse matrix or iterable
- Data to be sliced. If ``estimator._pairwise is True``,
+ Data to be indexed. If ``estimator._pairwise is True``,
this needs to be a square array-like or sparse matrix.
y : array-like, sparse matrix or iterable
- Targets to be sliced.
+ Targets to be indexed.
indices : array of int
Rows to select from X and y.
@@ -178,11 +178,11 @@ def _safe_split(estimator, X, y, indices, train_indices=None):
Returns
-------
- X_sliced : array-like, sparse matrix or list
- Sliced data.
+ X_subset : array-like, sparse matrix or list
+ Indexed data.
- y_sliced : array-like, sparse matrix or list
- Sliced targets.
+ y_subset : array-like, sparse matrix or list
+ Indexed targets.
"""
if getattr(estimator, "_pairwise", False):
