Skip to content

Commit

Permalink
Remove _set_params call, because scikit-learn#306
Browse files Browse the repository at this point in the history
  • Loading branch information
naught101 committed Apr 7, 2016
1 parent 075982e commit 37f4689
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sklearn/cluster/som_.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __init__(self, size=16, init='random', n_iterations=64,
self.learning_rate = learning_rate
self.callback = callback

def fit(self, X, **params):
def fit(self, X):
"""Perform Self Organising Map clustering from features.
Given an sample of X, we randomly choose one of them for each
Expand All @@ -131,7 +131,6 @@ def fit(self, X, **params):
"""
X = np.asanyarray(X)
self._set_params(**params)
self.centres_ = None
self.dim = X.shape[-1]

Expand Down

0 comments on commit 37f4689

Please sign in to comment.