Stirring the pile efficiently

Warning: This is a technical post, and involves some code, etc.  As I’ve ranted a fair bit on this blog over the last year, a lot of “machine learning” in the industry can be described as “stirring the pile”. Regular readers of this blog will be familiar with this image from XKCD by now: Basically…