Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0dcd7d3

Browse files
committed
STYLE trailing spaces
1 parent d39fe22 commit 0dcd7d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sklearn/cluster/k_means_.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ def transform(self, X, y=None):
832832
X_new : array, shape [n_samples, k]
833833
X transformed in the new space.
834834
"""
835-
check_is_fitted(self, 'cluster_centers_')
835+
check_is_fitted(self, 'cluster_centers_')
836836

837837
X = self._check_test_data(X)
838838
return self._transform(X)
@@ -858,7 +858,7 @@ def predict(self, X):
858858
labels : array, shape [n_samples,]
859859
Index of the cluster each sample belongs to.
860860
"""
861-
check_is_fitted(self, 'cluster_centers_')
861+
check_is_fitted(self, 'cluster_centers_')
862862

863863
X = self._check_test_data(X)
864864
x_squared_norms = row_norms(X, squared=True)
@@ -877,7 +877,7 @@ def score(self, X, y=None):
877877
score : float
878878
Opposite of the value of X on the K-means objective.
879879
"""
880-
check_is_fitted(self, 'cluster_centers_')
880+
check_is_fitted(self, 'cluster_centers_')
881881

882882
X = self._check_test_data(X)
883883
x_squared_norms = row_norms(X, squared=True)
@@ -1429,7 +1429,7 @@ def predict(self, X):
14291429
labels : array, shape [n_samples,]
14301430
Index of the cluster each sample belongs to.
14311431
"""
1432-
check_is_fitted(self, 'cluster_centers_')
1432+
check_is_fitted(self, 'cluster_centers_')
14331433

14341434
X = self._check_test_data(X)
14351435
return self._labels_inertia_minibatch(X)[0]

0 commit comments

Comments
 (0)