O'Reilly logo

Machine Learning with Spark - Second Edition by Nick Pentreath, Manpreet Singh Ghotra, Rajdeep Dua

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

StumbleUponExecutor

The StumbleUponExecutor object can be used to choose and run the respective classification model, for example, to run LogisiticRegression and execute the logistic regression pipeline or set the program argument as LR. For other commands, refer to the following code snippet:

Before we proceed, a few words on the Logistic Regression estimator. Logistic Regression works for classification problems where classes are nearly linearly separable. It searches for a single linear decision boundary in the feature space. There are two types of logistic regression estimators available in Spark: binomial logistic regression estimators to predict a binary outcome, and multinomial logistic regression estimators to predict a multiclass ...

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