close menu
Bookswagon-24x7 online bookstore
close menu
My Account
Home > Computing and Information Technology > Computer science > Artificial intelligence > Machine Learning with Spark and Python: Essential Techniques for Predictive Analytics
31%
Machine Learning with Spark and Python: Essential Techniques for Predictive Analytics

Machine Learning with Spark and Python: Essential Techniques for Predictive Analytics

          
5
4
3
2
1

International Edition


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Quantity:
Add to Wishlist

About the Book

Machine Learning with Spark and Python Essential Techniques for Predictive Analytics, Second Edition simplifies ML for practical uses by focusing on two key algorithms. This new second edition improves with the addition of Spark—a ML framework from the Apache foundation. By implementing Spark, machine learning students can easily process much large data sets and call the spark algorithms using ordinary Python code.
 
Machine Learning with Spark and Python focuses on two algorithm families (linear methods and ensemble methods) that effectively predict outcomes. This type of problem covers many use cases such as what ad to place on a web page, predicting prices in securities markets, or detecting credit card fraud. The focus on two families gives enough room for full descriptions of the mechanisms at work in the algorithms. Then the code examples serve to illustrate the workings of the machinery with specific hackable code.



Table of Contents:

Introduction xxi

Chapter 1 The Two Essential Algorithms for Making Predictions 1

Why are These Two Algorithms So Useful? 2

What are Penalized Regression Methods? 7

What are Ensemble Methods? 9

How to Decide Which Algorithm to Use 11

The Process Steps for Building a Predictive Model 13

Framing a Machine Learning Problem 15

Feature Extraction and Feature Engineering 17

Determining Performance of a Trained Model 18

Chapter Contents and Dependencies 18

Summary 20

Chapter 2 Understand the Problem by Understanding the Data 23

The Anatomy of a New Problem 24

Different Types of Attributes and Labels Drive Modeling Choices 26

Things to Notice about Your New Data Set 27

Classification Problems: Detecting Unexploded Mines Using Sonar 28

Physical Characteristics of the Rocks Versus Mines Data Set 29

Statistical Summaries of the Rocks Versus Mines Data Set 32

Visualization of Outliers Using a Quantile-Quantile Plot 34

Statistical Characterization of Categorical Attributes 35

How to Use Python Pandas to Summarize the Rocks Versus Mines Data Set 36

Visualizing Properties of the Rocks Versus Mines Data Set 39

Visualizing with Parallel Coordinates Plots 39

Visualizing Interrelationships between Attributes and Labels 41

Visualizing Attribute and Label Correlations Using a Heat Map 48

Summarizing the Process for Understanding the Rocks Versus Mines Data Set 50

Real-Valued Predictions with Factor Variables: How Old is Your Abalone? 50

Parallel Coordinates for Regression Problems—Visualize Variable Relationships for the Abalone Problem 55

How to Use a Correlation Heat Map for Regression—Visualize Pair-Wise Correlations for the Abalone Problem 59

Real-Valued Predictions Using Real-Valued Attributes: Calculate How Your Wine Tastes 61

Multiclass Classification Problem: What Type of Glass is That? 67

Using PySpark to Understand Large Data Sets 72

Summary 75

Chapter 3 Predictive Model Building: Balancing Performance, Complexity, and Big Data 77

The Basic Problem: Understanding Function Approximation 78

Working with Training Data 79

Assessing Performance of Predictive Models 81

Factors Driving Algorithm Choices and Performance—Complexity and Data 82

Contrast between a Simple Problem and a Complex Problem 82

Contrast between a Simple Model and a Complex Model 85

Factors Driving Predictive Algorithm Performance 89

Choosing an Algorithm: Linear or Nonlinear? 90

Measuring the Performance of Predictive Models 91

Performance Measures for Different Types of Problems 91

Simulating Performance of Deployed Models 105

Achieving Harmony between Model and Data 107

Choosing a Model to Balance Problem Complexity, Model Complexity, and Data Set Size 107

Using Forward Stepwise Regression to Control Overfitting 109

Evaluating and Understanding Your Predictive Model 114

Control Overfitting by Penalizing Regression Coefficients—Ridge Regression 116

Using PySpark for Training Penalized Regression Models on Extremely Large Data Sets 124

Summary 127

Chapter 4 Penalized Linear Regression 129

Why Penalized Linear Regression Methods are So Useful 130

Extremely Fast Coefficient Estimation 130

Variable Importance Information 131

Extremely Fast Evaluation When Deployed 131

Reliable Performance 131

Sparse Solutions 132

Problem May Require Linear Model 132

When to Use Ensemble Methods 132

Penalized Linear Regression: Regulating Linear Regression for Optimum Performance 132

Training Linear Models: Minimizing Errors and More 135

Adding a Coefficient Penalty to the OLS Formulation 136

Other Useful Coefficient Penalties—Manhattan and ElasticNet 137

Why Lasso Penalty Leads to Sparse Coefficient Vectors 138

ElasticNet Penalty Includes Both Lasso and Ridge 140

Solving the Penalized Linear Regression Problem 141

Understanding Least Angle Regression and Its Relationship to Forward Stepwise Regression 141

How LARS Generates Hundreds of Models of Varying Complexity 145

Choosing the Best Model from the Hundreds LARS Generates 147

Using Glmnet: Very Fast and Very General 152

Comparison of the Mechanics of Glmnet and LARS Algorithms 153

Initializing and Iterating the Glmnet Algorithm 153

Extension of Linear Regression to Classification Problems 157

Solving Classification Problems with Penalized Regression 157

Working with Classification Problems Having More Than Two Outcomes 161

Understanding Basis Expansion: Using Linear Methods on Nonlinear Problems 161

Incorporating Non-Numeric Attributes into Linear Methods 163

Summary 166

Chapter 5 Building Predictive Models Using Penalized Linear Methods 169

Python Packages for Penalized Linear Regression 170

Multivariable Regression: Predicting Wine Taste 171

Building and Testing a Model to Predict Wine Taste 172

Training on the Whole Data Set before Deployment 175

Basis Expansion: Improving Performance by Creating New Variables from Old Ones 179

Binary Classification: Using Penalized Linear Regression to Detect Unexploded Mines 182

Build a Rocks Versus Mines Classifier for Deployment 191

Multiclass Classification: Classifying Crime Scene Glass Samples 200

Linear Regression and Classification Using PySpark 203

Using PySpark to Predict Wine Taste 204

Logistic Regression with PySpark: Rocks Versus Mines 208

Incorporating Categorical Variables in a PySpark Model: Predicting Abalone Rings 213

Multiclass Logistic Regression with Meta Parameter Optimization 217

Summary 219

Chapter 6 Ensemble Methods 221

Binary Decision Trees 222

How a Binary Decision Tree Generates Predictions 224

How to Train a Binary Decision Tree 225

Tree Training Equals Split Point Selection 227

How Split Point Selection Affects Predictions 228

Algorithm for Selecting Split Points 229

Multivariable Tree Training—Which Attribute to Split? 229

Recursive Splitting for More Tree Depth 230

Overfitting Binary Trees 231

Measuring Overfit with Binary Trees 231

Balancing Binary Tree Complexity for Best Performance 232

Modifi cations for Classification and Categorical Features 235

Bootstrap Aggregation: “Bagging” 235

How Does the Bagging Algorithm Work? 236

Bagging Performance—Bias Versus Variance 239

How Bagging Behaves on Multivariable Problem 241

Bagging Needs Tree Depth for Performance 245

Summary of Bagging 246

Gradient Boosting 246

Basic Principle of Gradient Boosting Algorithm 246

Parameter Settings for Gradient Boosting 249

How Gradient Boosting Iterates toward a Predictive Model 249

Getting the Best Performance from Gradient Boosting 250

Gradient Boosting on a Multivariable Problem 253

Summary for Gradient Boosting 256

Random Forests 256

Random Forests: Bagging Plus Random Attribute Subsets 259

Random Forests Performance Drivers 260

Random Forests Summary 261

Summary 262

Chapter 7 Building Ensemble Models with Python 265

Solving Regression Problems with Python Ensemble Packages 265

Using Gradient Boosting to Predict Wine Taste 266

Using the Class Constructor for GradientBoostingRegressor 266

Using GradientBoostingRegressor to Implement a Regression Model 268

Assessing the Performance of a Gradient Boosting Model 271

Building a Random Forest Model to Predict Wine Taste 272

Constructing a RandomForestRegressor Object 273

Modeling Wine Taste with RandomForestRegressor 275

Visualizing the Performance of a Random Forest Regression Model 279

Incorporating Non-Numeric Attributes in Python Ensemble Models 279

Coding the Sex of Abalone for Gradient Boosting Regression in Python 280

Assessing Performance and the Importance of Coded Variables with Gradient Boosting 282

Coding the Sex of Abalone for Input to Random Forest Regression in Python 284

Assessing Performance and the Importance of Coded Variables 287

Solving Binary Classification Problems with Python Ensemble Methods 288

Detecting Unexploded Mines with Python Gradient Boosting 288

Determining the Performance of a Gradient Boosting Classifier 291

Detecting Unexploded Mines with Python Random Forest 292

Constructing a Random Forest Model to Detect Unexploded Mines 294

Determining the Performance of a Random Forest Classifier 298

Solving Multiclass Classification Problems with Python Ensemble Methods 300

Dealing with Class Imbalances 301

Classifying Glass Using Gradient Boosting 301

Determining the Performance of the Gradient Boosting Model on Glass Classification 306

Classifying Glass with Random Forests 307

Determining the Performance of the Random Forest Model on Glass Classification 310

Solving Regression Problems with PySpark Ensemble Packages 311

Predicting Wine Taste with PySpark Ensemble Methods 312

Predicting Abalone Age with PySpark Ensemble Methods 317

Distinguishing Mines from Rocks with PySpark

Ensemble Methods 321

Identifying Glass Types with PySpark Ensemble Methods 325

Summary 327

Index 329


Best Seller

| | See All


Product Details
  • ISBN-13: 9781119561934
  • Publisher: John Wiley & Sons Inc
  • Publisher Imprint: John Wiley & Sons Inc
  • Height: 229 mm
  • No of Pages: 368
  • Spine Width: 23 mm
  • Weight: 612 gr
  • ISBN-10: 1119561930
  • Publisher Date: 05 Dec 2019
  • Binding: Paperback
  • Language: English
  • Returnable: N
  • Sub Title: Essential Techniques for Predictive Analytics
  • Width: 185 mm


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Click Here To Be The First to Review this Product
Machine Learning with Spark and Python: Essential Techniques for Predictive Analytics
John Wiley & Sons Inc -
Machine Learning with Spark and Python: Essential Techniques for Predictive Analytics
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Machine Learning with Spark and Python: Essential Techniques for Predictive Analytics

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    | | See All


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    ASK VIDYA