From 812b41ca443a28165fac0258b006ee77bf26c217 Mon Sep 17 00:00:00 2001 From: Mathieu Blondel <mathieu@mblondel.org> Date: Fri, 13 Jan 2012 19:28:55 +0900 Subject: [PATCH] Typos. --- doc/developers/utilities.rst | 2 +- sklearn/utils/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/developers/utilities.rst b/doc/developers/utilities.rst index 7ff6c330da..d7f5331ebc 100644 --- a/doc/developers/utilities.rst +++ b/doc/developers/utilities.rst @@ -257,7 +257,7 @@ Helper Functions a 1-d numpy.ndarray. Currently used in ``sklearn.datasets._svmlight_format.pyx``. -- :func:`safe_mask`: Help function to convert a mask to the format expected +- :func:`safe_mask`: Helper function to convert a mask to the format expected by the numpy array or scipy sparse matrix on which to use it (sparse matrices support integer indices only while numpy arrays support both boolean masks and integer indices). diff --git a/sklearn/utils/__init__.py b/sklearn/utils/__init__.py index 8499e1b9ab..7d4abe38a4 100644 --- a/sklearn/utils/__init__.py +++ b/sklearn/utils/__init__.py @@ -84,12 +84,12 @@ class deprecated(object): def safe_mask(X, mask): - """Return a mask which is safe for X. + """Return a mask which is safe to use on X. Parameters ---------- X : {array-like, sparse matrix} - Data on which to apply X. + Data on which to apply mask. mask: array Mask to be used on X. -- GitLab