Book Image

Spark Cookbook

By : Rishi Yadav
Book Image

Spark Cookbook

By: Rishi Yadav

Overview of this book

Table of Contents (19 chapters)
Spark Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. Supervised Learning with MLlib – Regression

This chapter is divided into the following recipes:

  • Using linear regression

  • Understanding the cost function

  • Doing linear regression with lasso

  • Doing ridge regression