Make Patterns Pop Out of Heatmaps with Seriation (2018)
nicolas.kruchten.com
nicolas.kruchten.com
It's from an introductory course on Algorithms; the dataset is the students' programming assignments, rated for similarity by an off-the-shelf similarity scorer.
This heatmap example is presented in the class on Kruskal's algorithm. We normally think of Kruskal's algorithm as a method for finding a minimum spanning tree, but it can also be thought of as building a classification tree -- which means we can use it for seriation. It's not the best method for seriation by any means, but it's nice just to see it used in this unconventional way.
It's always fun showing this in class, on the coursework that the students submitted just a few weeks ago!
Also compare to DSMs which have the same problem where column and row order can matter a lot to making the diagram clearer: https://web.mit.edu/eppinger/www/SDE-MIT/DSM_Book.html
Unfortunately, the Python package seriate is broken due to an upgrade in its dependency ortools. The update was so long ago a functional version is not available on pypi anymore.
Does anyone have a better way to do this?
Today's hot topic, TSP solvers.