News for hackers. Stuff that matters.
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by rocqua on Saturday July 03, 2021 @04:52AM (#27720274)
If you truly have unordered table data, and column and row swaps give you a meaningful heatmap data, I suspect the new row and column order probably tell you A LOT. Because before, you just had random labels. Now all of a sudden, your random labels admit a meaningful order. That is a huge deal and suggests underlying structure in your labels!
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by noduerme on Saturday July 03, 2021 @05:31AM (#27720420)
One good query is worth its weight in gold.
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by kzrdude on Saturday July 03, 2021 @04:52AM (#27720277)
Very interesting but would love to see an example on realistic data
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by datastoat on Saturday July 03, 2021 @06:18AM (#27720589)
Here's an example: https://youtu.be/eHwy-neG_W8?t=791

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!

Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by thechao on Saturday July 03, 2021 @06:12PM (#27725363)
I was a grad student at a major State university. We had a “defensive” grading rubric which caused cheating to be self-defeating. We’d do analyses like this to visualize the cheaters, and try to predict the GPA average of the class (section). Our goal was to speed up or slow down the material to make sure the largest number of students actually learned the core topics of the course and didn’t flunk. (Our worst case scenario was the class of student who’d “get it” at the end of the semester — but too late to pass.)
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by kzrdude on Saturday July 03, 2021 @07:45AM (#27720966)
Very nice video!
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by lstamour on Saturday July 03, 2021 @10:55AM (#27721990)
See http://www.brendangregg.com/HeatMaps/subsecondoffset.html

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

Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by bigcorp-slave on Saturday July 03, 2021 @10:31PM (#27726836)
This is super cool, so I immediately attempted to try it out.

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?

Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by laurent92 on Saturday July 03, 2021 @08:12AM (#27721090)
Is this used in image compression? JPEG, because of the Fourier transform, tends to have waves around edges of flat-colored surfaces. We might have much better compression if we encode images with disordered rows, then leave it up to the decoder to swap them.
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by alanbernstein on Saturday July 03, 2021 @08:37AM (#27721214)
No... the ripples you're thinking of are compression artifacts. They aren't present inside large flat-colored areas. Breaking up those flat areas increases detail/entropy/information, from the perspective of a perceptual encoder. So there would be MORE ripples.
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by cousin_it on Saturday July 03, 2021 @04:18AM (#27720149)
Interesting! I wonder how it would work on other kinds of data. For example, take a checkerboard image, rotate it (by, say, 15 degrees) and then seriate the result. What will it look like?
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by nicolaskruchten on Saturday July 03, 2021 @02:41PM (#27723775)
Should be easy to try! My expectation is that the TSP approach would recover the original image unless you added a lot of noise to it. Adjacent rows will still end up extremely similar to each other.
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by cousin_it on Saturday July 03, 2021 @04:00PM (#27724394)
My expectation is that it wouldn't, because in a tilted checkerboard image (or any other periodic image) there are many pairs of rows that are more similar than neighbors.
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by nicolaskruchten on Saturday July 03, 2021 @04:06PM (#27724454)
Try it and see :)
Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by edgeform on Saturday July 03, 2021 @04:34AM (#27720203)
https://news.ycombinator.com/item?id=27713441

Today's hot topic, TSP solvers.

Re:Make Patterns Pop Out of Heatmaps with Seriation (2018) by unearth3d on Saturday July 03, 2021 @04:43AM (#27720233)
Thanks for posting, some great info on kreuchten's Twitter too.