'KMeans' object has no attribute 'k'
See original GitHub issueWhen trying to run example:
from yellowbrick.cluster import KElbowVisualizer
from sklearn.cluster import KMeans
model = KElbowVisualizer(KMeans(), k=10)
model.fit(X)
The following error appears:
AttributeError: 'KMeans' object has no attribute 'k'
Issue Analytics
- State:
- Created a year ago
- Comments:15 (8 by maintainers)
Top Results From Across the Web
AttributeError: 'KMeans' object has no attribute 'k'
Based on this, yellowbrick got updated to v1.5 , and the problem with AttributeError: 'KMeans' object has no attribute 'k' got solved.
Read more >[FIXED] 'KMeans' object has no attribute 'k' - PythonFixing
I am using the Yellowbrick package to plot an elbow curve for a dataset to find the most optimal number of clusters for...
Read more >AttributeError: 'KMeans' object has no attribute '_n_threads'
i have saved my kmeans clustering model using pickle and when i try to predict clusters on new data after loading it throws...
Read more >'KMeans' object has no attribute 'labels_' with pytorch ... - GitHub
first of all I thank , I tried to train model with pytorch but I got the following error: AttributeError: 'KMeans' object has...
Read more >AttributeError: 'KMeans' object has no attribute '_n_threads'
Hello, I created a KMeans model on some dataset, pickled it and then loaded it in the Streamlit app that I made.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This example worked for me now:
Thanks. Yes, I was aware of them. Actually, I don’t need the plot. Thanks.