Skip to content

Commit

Permalink
Clustering: Deprecate silhouette in kmeans
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed Jun 12, 2019
1 parent fb13d66 commit 055d273
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Orange/clustering/kmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def __init__(self, n_clusters=8, init='k-means++', n_init=10, max_iter=300,
"compute_silhouette_score is deprecated. Please use "
"sklearn.metrics.silhouette_score to compute silhouettes.",
DeprecationWarning)
super().__init__(preprocessors, vars())
super().__init__(
preprocessors, {k: v for k, v in vars().items()
if k != "compute_silhouette_score"})

def fit_storage(self, data):
return self._fit_predict(data, return_model=True)
Expand Down

0 comments on commit 055d273

Please sign in to comment.