
Machine Learning with Spark - Second Edition
- 532 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Machine Learning with Spark - Second Edition
About this book
Create scalable machine learning applications to power a modern data-driven business using Spark 2.xAbout This Book• Get to the grips with the latest version of Apache Spark• Utilize Spark's machine learning library to implement predictive analytics• Leverage Spark's powerful tools to load, analyze, clean, and transform your dataWho This Book Is ForIf you have a basic knowledge of machine learning and want to implement various machine-learning concepts in the context of Spark ML, this book is for you. You should be well versed with the Scala and Python languages.What You Will Learn• Get hands-on with the latest version of Spark ML• Create your first Spark program with Scala and Python• Set up and configure a development environment for Spark on your own computer, as well as on Amazon EC2• Access public machine learning datasets and use Spark to load, process, clean, and transform data• Use Spark's machine learning library to implement programs by utilizing well-known machine learning models• Deal with large-scale text data, including feature extraction and using text data as input to your machine learning models• Write Spark functions to evaluate the performance of your machine learning modelsIn DetailThis book will teach you about popular machine learning algorithms and their implementation. You will learn how various machine learning concepts are implemented in the context of Spark ML. You will start by installing Spark in a single and multinode cluster. Next you'll see how to execute Scala and Python based programs for Spark ML. Then we will take a few datasets and go deeper into clustering, classification, and regression. Toward the end, we will also cover text processing using Spark ML.Once you have learned the concepts, they can be applied to implement algorithms in either green-field implementations or to migrate existing systems to this new platform. You can migrate from Mahout or Scikit to use Spark ML.By the end of this book, you will acquire the skills to leverage Spark's features to create your own scalable machine learning applications and power a modern data-driven business.Style and approachThis practical tutorial with real-world use cases enables you to develop your own machine learning systems with Spark. The examples will help you combine various techniques and models into an intelligent machine learning system.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Building a Classification Model with Spark


- Predicting the probability of Internet users clicking on an online advert; here, the classes are binary in nature (that is, click or no click)
- Detecting fraud; again, in this case, the classes are commonly binary (fraud or no fraud)
- Predicting defaults on loans (binary)
- Classifying images, video, or sounds (most often multiclass, with potentially very many different classes)
- Assigning categories or tags to news articles, web pages, or other content (multiclass)
- Discovering e-mail and web spam, network intrusions, and other malicious behavior (binary or multiclass)
- Detecting failure situations, for example, in computer systems or networks
- Ranking customers or users in order of probability that they might purchase a product or use a service
- Predicting customers or users who might stop using a product, service, or provider (called churn)
- Discuss the types of classification models available in ML library
- Use Spark to extract appropriate features from raw input data
- Train a number of classification models using ML library
- Make predictions with our classification models
- Apply a number of standard evaluation techniques to assess the predictive performance of our models
- Illustrate how to improve model performance using some of the feature extraction approaches from Chapter 4, Obtaining, Processing, and Preparing Data with Spark
- Explore the impact of parameter tuning on model performance, and learn how to use cross-validation to select the most optimal model parameters
Types of classification models
Linear models
Table of contents
- Title Page
- Copyright
- Credits
- About the Authors
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
- Getting Up and Running with Spark
- Math for Machine Learning
- Designing a Machine Learning System
- Obtaining, Processing, and Preparing Data with Spark
- Building a Recommendation Engine with Spark
- Building a Classification Model with Spark
- Building a Regression Model with Spark
- Building a Clustering Model with Spark
- Dimensionality Reduction with Spark
- Advanced Text Processing with Spark
- Real-Time Machine Learning with Spark Streaming
- Pipeline APIs for Spark ML