Machine Learning with Spark - Second Edition
by Rajdeep Dua, Brian O'Neill, Stephen Boesch, Manpreet Singh Ghotra, Nick Pentreath
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access