Skip to content

Commit

Permalink
new style class
Browse files Browse the repository at this point in the history
  • Loading branch information
fdtomasi committed Feb 17, 2017
1 parent 19af529 commit 998cd32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion adenine/utils/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@

if sys.version_info >= (3, 0):
imap = map

def map(*args, **kwargs):
"""Forward compatibility with python3."""
return list(imap(*args, **kwargs))

class DummyNone:

class DummyNone(object):
"""Dummy class that does nothing.
It is a sklearn 'transforms', it implements both a fit and a transform
Expand Down Expand Up @@ -213,6 +216,7 @@ class GridSearchCV(GridSearchCV):
Automatically detects the optimal number of clusters for centroid-based
algorithms like KMeans and Affinity Propagation.
"""

def __init__(self, estimator, param_grid, scoring=None, fit_params=None,
n_jobs=1, iid=True, refit=True, cv=None, verbose=0,
pre_dispatch='2*n_jobs', error_score='raise',
Expand Down

0 comments on commit 998cd32

Please sign in to comment.