Paint Your Data
One of the widgets I enjoy very much when teaching introductory course in data mining is the Paint Data widget. When painting in this widget I would intentionally include some clusters, or intentionally obscure them. Or draw them in any strange shape. Then I would discuss with students if these clusters are identified by k-means clustering or by hierarchical clustering. We would also discuss automatic scoring of the quality of clusters, come up with the idea of a silhouette (ok, already invented, but helps if you get this idea on your own as well). And then we would play with various data sets and clustering techniques and their parameters in Orange.
Like in the following workflow where I drew three clusters which were indeed recognized by k-means clustering. Notice that silhouette scoring correctly identified even the number of clusters. And I also drew the clustered data in the Scatterplot to check if the clusters are indeed where they should be.
![](/blog/2013-12-paint-your-data/__webp-images__/paintdata-k-means-ok_1.png__600x1000_q95_upscale.webp)
Or like in the workflow below where k-means fails miserably (but someother clustering technique would not).
![](/blog/2013-12-paint-your-data/__webp-images__/paintdata-k-means-notok.png__600x1000_q95_upscale.webp)
Paint Data can also be used in supervised setting, for classification tasks. We can set the intended number of classes, and then chose any of these to paint the data. Below I have used it to create the datasets to check the behavior of several classifiers.
![](/blog/2013-12-paint-your-data/__webp-images__/paintdata-supervised_1.png__600x1000_q95_upscale.webp)
There are tons of other workflows where Paint Data can be useful. Give it a try!