Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Scala for Machine Learning, Second Edition

You're reading from   Scala for Machine Learning, Second Edition Build systems for data processing, machine learning, and deep learning

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781787122383
Length 740 pages
Edition 2nd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
 R. Nicolas R. Nicolas
Author Profile Icon R. Nicolas
R. Nicolas
Arrow right icon
View More author details
Toc

Table of Contents (27) Chapters Close

Scala for Machine Learning Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
1. Getting Started 2. Data Pipelines FREE CHAPTER 3. Data Preprocessing 4. Unsupervised Learning 5. Dimension Reduction 6. Naïve Bayes Classifiers 7. Sequential Data Models 8. Monte Carlo Inference 9. Regression and Regularization 10. Multilayer Perceptron 11. Deep Learning 12. Kernel Models and SVM 13. Evolutionary Computing 14. Multiarmed Bandits 15. Reinforcement Learning 16. Parallelism in Scala and Akka 17. Apache Spark MLlib Basic Concepts References Index

Chapter 9. Regression and Regularization

We selected binary logistic regression to introduce the basics of machine learning in the Kicking the tires section of Chapter 1, Getting Started. The purpose was to illustrate the concept of discriminative classification. It is important to keep in mind that some regression algorithms, such as logistic regression, are classification models.

The variety and the number of regression models go well beyond the ubiquitous ordinary least square linear regression and logistic regression [9:1]. Have you heard of isotonic regression?

The purpose of regression is to minimize a loss function, the residual sum of squares (RSS) being one that is commonly used. The Accessing a model section in Chapter 2, Data Pipelines, introduced the thorny challenge of overfitting, which will be partially addressed in this chapter by adding a penalty term to the loss function. The penalty term is an element of the larger concept of regularization.

The chapter starts with a description...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images