Coded Examples of Different types of Clustering Techniques...
Digit Recognition...Well it do seems to wear off upon convoluted encounters...Hence we got..
Plays pretty good with complex geometry but still, what if we have like- Million DataPoints?
baddest off em' all...Color Quantization..Set k as per ur need..!
Well bruh..do u really know,how many clusters u need?..Go for the elbow!
paste this little shite in DigitRecognitionKMeans.py for generating the Heatmap..(A cooler terminology for Confusion Matrix)
from sklearn.metrics import confusion_matrix
mat=confusion_matrix(digits.target,labels)
sns.heatmap(mat.T,square=True,annot=True,fmt='d',cbar='False',
xticklabels=digits.target_names,yticklabels=digits.target_names)
plt.xlabel("True Label")
plt.ylabel("False Label")