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

Chapter 9. City Analytics on Spark

Following the strategy adopted in Chapter 8, Learning Analytics on Spark, in this chapter, we will further extend our Spark machine learning application to smart city analytics, for which we will apply machine learning to open data for city analytics. In other words, we will extend the benefit of machine learning on Spark to serving city governments.

Specifically in this chapter, we will first review machine learning methods and related computing for a service request forecasting project and will then discuss how Apache Spark comes in to make them easy. At the same time, with this real-life service forecasting example, we will illustrate step by step our machine learning process of predicting service requests with big data.

Here, we will use the service forecasting project for the purpose of illustrating our technologies and processes. That is, what is described in this chapter is not limited to service request forecasting but can be easily applied to other...