Re: plot not showing up

2018-08-10 Thread Abdur-Rahmaan Janhangeer
try adding plt.show() Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius On Fri, 10 Aug 2018, 21:50 Sharan Basappa, wrote: > What is wrong with the following code. Python does not show the plot. > > from sklearn.datasets import load_digits > from sklearn.cluster import KMeans

plot not showing up

2018-08-10 Thread Sharan Basappa
What is wrong with the following code. Python does not show the plot. from sklearn.datasets import load_digits from sklearn.cluster import KMeans import matplotlib.pyplot as plt digits = load_digits() digits.data.shape kmeans = KMeans(n_clusters=10,random_state=0) clusters = kmeans.fit_predict(d