Advanced Analytics with Spark: Patterns for Learning from Data at Scale