Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Mathematics for Deep Learning

You're reading from  Hands-On Mathematics for Deep Learning

Product type Book
Published in Jun 2020
Publisher Packt
ISBN-13 9781838647292
Pages 364 pages
Edition 1st Edition
Languages
Author (1):
Jay Dawani Jay Dawani
Profile icon Jay Dawani

Table of Contents (19) Chapters

Preface 1. Section 1: Essential Mathematics for Deep Learning
2. Linear Algebra 3. Vector Calculus 4. Probability and Statistics 5. Optimization 6. Graph Theory 7. Section 2: Essential Neural Networks
8. Linear Neural Networks 9. Feedforward Neural Networks 10. Regularization 11. Convolutional Neural Networks 12. Recurrent Neural Networks 13. Section 3: Advanced Deep Learning Concepts Simplified
14. Attention Mechanisms 15. Generative Models 16. Transfer and Meta Learning 17. Geometric Deep Learning 18. Other Books You May Enjoy

Logistic regression

There is another kind of regression that we often use in practice—logistic regression. Suppose we want to determine whether or not an email is spam. In this case, our x(s) value could be occurrences of !(s) or the total number of spelling errors in the email. Then, y can take on the value of 1 (for spam) and 0 (for not spam).

In this kind of case, linear regression will simply not work since we are not predicting a real value—we are trying to predict which class the email belongs to.

This will usually end up looking as follows:

As you can see, the data is grouped into two areas—one that represents non-spam and another that represents spam.

We can calculate this as follows:

Here, .

However, this only works for binary classification. What if we want to classify multiple classes? Then, we can use softmax regression, which is an extension...

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}