Book Image

Apache Spark Machine Learning Blueprints

By : Alex Liu
Book Image

Apache Spark Machine Learning Blueprints

By: Alex Liu

Overview of this book

There's a reason why Apache Spark has become one of the most popular tools in Machine Learning – its ability to handle huge datasets at an impressive speed means you can be much more responsive to the data at your disposal. This book shows you Spark at its very best, demonstrating how to connect it with R and unlock maximum value not only from the tool but also from your data. Packed with a range of project "blueprints" that demonstrate some of the most interesting challenges that Spark can help you tackle, you'll find out how to use Spark notebooks and access, clean, and join different datasets before putting your knowledge into practice with some real-world projects, in which you will see how Spark Machine Learning can help you with everything from fraud detection to analyzing customer attrition. You'll also find out how to build a recommendation engine using Spark's parallel computing powers.
Table of Contents (18 chapters)
Apache Spark Machine Learning Blueprints
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Deploying fraud detection


As discussed before, MLlib supports model exporting to Predictive Model Markup Language (PMML). For the R notebook, it could run on other environments as well as, and with the PMML R package, R models could be exported. Also, it is possible to deploy models for decision making directly on Apache Spark and make results easily available to users. Therefore, we do export some developed models to PMML for this project.

However, in practice, the users of this project will be more interested in rule-based decision making to use some of our insights and also in score-based decision making to prevent frauds.

Here, we will discuss each one of them only briefly as a full deployment for decision making will need an optimization that is not covered in this chapter.

Turning estimated models into rules and scores is not very challenging and could be done under nonSpark platforms. However, Apache Spark makes things easy and fast. The advantage of utilizing Apache Spark is to allow...