Skip to content

Commit

Permalink
Pass kwargs to fit method in KElbowVisualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Express50 committed Apr 11, 2020
1 parent 4737f0f commit d26b5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yellowbrick/cluster/elbow.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def fit(self, X, y=None, **kwargs):

# Set the k value and fit the model
self.estimator.set_params(n_clusters=k)
self.estimator.fit(X)
self.estimator.fit(X, **kwargs)

# Append the time and score to our plottable metrics
self.k_timers_.append(time.time() - start)
Expand Down

0 comments on commit d26b5ce

Please sign in to comment.