From 93d0766e1f679d39dfb712315c6fd210869e68cf Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Thu, 20 Jul 2017 14:10:46 +0200 Subject: [PATCH] [MRG] DOC add non support of COO safe indexing (#9423) --- sklearn/utils/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sklearn/utils/__init__.py b/sklearn/utils/__init__.py index fc71c387903a3..332e856c641db 100644 --- a/sklearn/utils/__init__.py +++ b/sklearn/utils/__init__.py @@ -135,6 +135,11 @@ def safe_indexing(X, indices): ------- subset Subset of X on first axis + + Notes + ----- + CSR, CSC, and LIL sparse matrices are supported. COO sparse matrices are + not supported. """ if hasattr(X, "iloc"): # Pandas Dataframes and Series