This is a really interesting post. I have to say the data science team at Stitchfix are clearly doing really good, applied work that is central to their business. It's so cool to see.
Here's a tip for any R users who read through the code and (like me) is pained by repetition. Instead of using
library(lubricate)
library(bts)
library(...)
Just use apply! packages <- c("lubricate", "bts", "...")
lapply(packages, library, character.only = TRUE)