From ab4098ef44ba4e87f7dfcc79505388601e13a3e1 Mon Sep 17 00:00:00 2001
From: Lars Buitinck <L.J.Buitinck@uva.nl>
Date: Tue, 20 Sep 2011 15:37:23 +0200
Subject: [PATCH] pep8 sklearn/utils/__init__.py

---
 sklearn/utils/__init__.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/sklearn/utils/__init__.py b/sklearn/utils/__init__.py
index 96658c0e9a..5e7a5484f4 100644
--- a/sklearn/utils/__init__.py
+++ b/sklearn/utils/__init__.py
@@ -2,6 +2,7 @@ import numpy as np
 import scipy.sparse as sp
 import warnings
 
+
 def assert_all_finite(X):
     """Throw a ValueError if X contains NaN or infinity.
     Input MUST be an np.ndarray instance or a scipy.sparse matrix."""
@@ -22,12 +23,11 @@ def safe_asanyarray(X, dtype=None, order=None):
 
 
 def as_float_array(X, overwrite_X=False):
-    """
-    Converts a numpy array to type np.float
+    """Converts a numpy array to an array of floats
 
-    The new dtype will be float32 or np.float64, depending on the original type.
-    The function can create a copy or modify the argument depending
-    of the argument overwrite_X
+    The new dtype will be np.float32 or np.float64, depending on the original
+    type. The function can create a copy or modify the argument depending
+    on the argument overwrite_X.
 
     WARNING : If X is not of type float, then a copy of X with the right type
               will be returned
@@ -198,6 +198,7 @@ class deprecated(object):
 
         # FIXME: we should probably reset __new__ for full generality
         init = cls.__init__
+
         def wrapped(*args, **kwargs):
             warnings.warn(msg, category=DeprecationWarning)
             return init(*args, **kwargs)
-- 
GitLab