From c988ad77bbcea6307527a051793882cad82a36fe Mon Sep 17 00:00:00 2001 From: Mathieu Blondel <mathieu@mblondel.org> Date: Fri, 13 Jan 2012 19:22:02 +0900 Subject: [PATCH] Add safe_mask to developer doc. --- doc/developers/utilities.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/developers/utilities.rst b/doc/developers/utilities.rst index f1fa601790..7ff6c330da 100644 --- a/doc/developers/utilities.rst +++ b/doc/developers/utilities.rst @@ -257,6 +257,11 @@ 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 + 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). + Warnings and Exceptions ======================= -- GitLab