Skip to content

Commit

Permalink
Indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay Mayorov committed Apr 28, 2014
1 parent 06cf012 commit 22d46a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sklearn/neighbors/classification.py
Expand Up @@ -153,7 +153,7 @@ def predict(self, X):
bandwidth = neigh_dist[:, -1]
neigh_dist, neigh_ind = neigh_dist[:, :-1], neigh_ind[:, :-1]
weights = _get_weights(neigh_dist, self.weights,
bandwidth=bandwidth)
bandwidth=bandwidth)
else:
neigh_dist, neigh_ind = self.kneighbors(X)
weights = _get_weights(neigh_dist, self.weights)
Expand Down Expand Up @@ -203,8 +203,8 @@ def predict_proba(self, X):
self.kneighbors(X, n_neighbors=self.n_neighbors + 1)
bandwidth = neigh_dist[:, -1]
neigh_dist, neigh_ind = neigh_dist[:, :-1], neigh_ind[:, :-1]
weights = _get_weights(neigh_dist, self.weights,
bandwidth=bandwidth)
weights = _get_weights(neigh_dist, self.weights,
bandwidth=bandwidth)
else:
neigh_dist, neigh_ind = self.kneighbors(X)
weights = _get_weights(neigh_dist, self.weights)
Expand Down
2 changes: 1 addition & 1 deletion sklearn/neighbors/regression.py
Expand Up @@ -151,7 +151,7 @@ def predict(self, X):
bandwidth = neigh_dist[:, -1]
neigh_dist, neigh_ind = neigh_dist[:, :-1], neigh_ind[:, :-1]
weights = _get_weights(neigh_dist, self.weights,
bandwidth=bandwidth)
bandwidth=bandwidth)
else:
neigh_dist, neigh_ind = self.kneighbors(X)
weights = _get_weights(neigh_dist, self.weights)
Expand Down

0 comments on commit 22d46a6

Please sign in to comment.