O'Reilly logo

Apache Spark 2.x Machine Learning Cookbook by Shuen Mei, Broderick Hall, Meenakshi Rajendran, Siamak Amirghodsi

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

How to do it...

  1. We use the admission dataset from the UCLA Institute for Digital Research and Education (IDRE). You can download the entire dataset from the following URLs:

The dataset comprises four columns, with the first column being the dependent variable (label - whether the student was admitted or not) and the next three columns being the explanatory variables, that is, the features that will explain the admission of a student.

We have chosen and cleaned the first three columns as features. We use the first 200 rows to train and predict the median price:

    • Admission - 0, 1 indicating whether ...

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