O'Reilly logo

Practical Predictive Analytics by Ralph Winters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Some tips for using Spark

Take a look at the following tips:

  • Sample when possible. Use the sample_bin methodology and filter command liberally. Sampling will speed up analysis both for the analysis phase and for the development/testing phase.

  • Once testing has been completed on a smaller segment, it can be scaled up to a much larger population with confidence.

  • Preprocess the data so that you can subselect potentially interesting sub segments.

  • Cache analysis when it makes sense.

  • If performance becomes a factor, try a larger number of partitions in your data.

  • For larger number crunching, bring back a representative sample to local R.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required