4.62 out of 5
4.62
128 reviews on Udemy

Machine Learning and AI: Support Vector Machines in Python

Artificial Intelligence and Data Science Algorithms in Python for Classification and Regression
Instructor:
Lazy Programmer Inc.
1,564 students enrolled
English [Auto-generated]
Apply SVMs to practical applications: image recognition, spam detection, medical diagnosis, and regression analysis
Understand the theory behind SVMs from scratch (basic geometry)
Use Lagrangian Duality to derive the Kernel SVM
Understand how Quadratic Programming is applied to SVM
Support Vector Regression
Polynomial Kernel, Gaussian Kernel, and Sigmoid Kernel
Build your own RBF Network and other Neural Networks based on SVM

Support Vector Machines (SVM) are one of the most powerful machine learning models around, and this topic has been one that students have requested ever since I started making courses.

These days, everyone seems to be talking about deep learning, but in fact there was a time when support vector machines were seen as superior to neural networks. One of the things you’ll learn about in this course is that a support vector machine actually is a neural network, and they essentially look identical if you were to draw a diagram.

The toughest obstacle to overcome when you’re learning about support vector machines is that they are very theoretical. This theory very easily scares a lot of people away, and it might feel like learning about support vector machines is beyond your ability. Not so!

In this course, we take a very methodical, step-by-step approach to build up all the theory you need to understand how the SVM really works. We are going to use Logistic Regression as our starting point, which is one of the very first things you learn about as a student of machine learning. So if you want to understand this course, just have a good intuition about Logistic Regression, and by extension have a good understanding of the geometry of lines, planes, and hyperplanes.

This course will cover the critical theory behind SVMs:

  • Linear SVM derivation

  • Hinge loss (and its relation to the Cross-Entropy loss)

  • Quadratic programming (and Linear programming review)

  • Slack variables

  • Lagrangian Duality

  • Kernel SVM (nonlinear SVM)

  • Polynomial Kernels, Gaussian Kernels, Sigmoid Kernels, and String Kernels

  • Learn how to achieve an infinite-dimensional feature expansion

  • Projected Gradient Descent

  • SMO (Sequential Minimal Optimization)

  • RBF Networks (Radial Basis Function Neural Networks)

  • Support Vector Regression (SVR)

  • Multiclass Classification

For those of you who are thinking, “theory is not for me“, there’s lots of material in this course for you too!

In this course, there will be not just one, but two full sections devoted to just the practical aspects of how to make effective use of the SVM.

We’ll do end-to-end examples of real, practical machine learning applications, such as:

  • Image recognition

  • Spam detection

  • Medical diagnosis

  • Regression analysis

For more advanced students, there are also plenty of coding exercises where you will get to try different approaches to implementing SVMs.

These are implementations that you won’t find anywhere else in any other course.

Thanks for reading, and I’ll see you in class!

HARD PREREQUISITES / KNOWLEDGE YOU ARE ASSUMED TO HAVE:

  • Calculus

  • Linear Algebra / Geometry

  • Basic Probability

  • Logistic Regression

  • Python coding: if/else, loops, lists, dicts, sets

  • Numpy coding: matrix and vector operations, loading a CSV file

TIPS (for getting through the course):

  • Watch it at 2x.

  • Take handwritten notes. This will drastically increase your ability to retain the information.

  • Write down the equations. If you don’t, I guarantee it will just look like gibberish.

  • Ask lots of questions on the discussion board. The more the better!

  • The best exercises will take you days or weeks to complete.

  • Write code yourself, don’t just sit there and look at my code. This is not a philosophy course!

WHAT ORDER SHOULD I TAKE YOUR COURSES IN?:

  • Check out the lecture “What order should I take your courses in?” (available in the Appendix of any of my courses, including the free Numpy course)

Welcome

1
Introduction
2
Course Objectives
3
Course Outline
4
Where to get the code and data

Beginner's Corner

1
Beginner's Corner: Section Introduction
2
Image Classification with SVMs
3
Spam Detection with SVMs
4
Medical Diagnosis with SVMs
5
Regression with SVMs
6
Cross-Validation
7
How do you get the data? How do you process the data?

Review of Linear Classifiers

1
Basic Geometry
2
Normal Vectors
3
Logistic Regression Review
4
Loss Function and Regularization
5
Prediction Confidence
6
Nonlinear Problems
7
Linear Classifiers Section Conclusion

Linear SVM

1
Linear SVM Section Introduction and Outline
2
Linear SVM Problem Setup and Definitions
3
Margins
4
Linear SVM Objective
5
Linear and Quadratic Programming
6
Slack Variables
7
Hinge Loss (and its Relationship to Logistic Regression)
8
Linear SVM with Gradient Descent
9
Linear SVM with Gradient Descent (Code)
10
Linear SVM Section Summary

Duality

1
Duality Section Introduction
2
Duality and Lagrangians (part 1)
3
Lagrangian Duality (part 2)
4
Relationship to Linear Programming
5
Predictions and Support Vectors
6
Why Transform Primal to Dual?
7
Duality Section Conclusion

Kernel Methods

1
Kernel Methods Section Introduction
2
The Kernel Trick
3
Polynomial Kernel
4
Gaussian Kernel
5
Using the Gaussian Kernel
6
Why does the Gaussian Kernel correspond to infinite-dimensional features?
7
Other Kernels
8
Mercer's Condition
9
Kernel Methods Section Summary

Implementations and Extensions

1
Dual with Slack Variables
2
Simple Approaches to Implementation
3
SVM with Projected Gradient Descent Code
4
Kernel SVM Gradient Descent with Primal (Theory)
5
Kernel SVM Gradient Descent with Primal (Code)
6
SMO (Sequential Minimal Optimization)
7
Support Vector Regression
8
Multiclass Classification

Neural Networks (Beginner's Corner 2)

1
Neural Networks Section Introduction
2
RBF Networks
3
RBF Approximations
4
What Happened to Infinite Dimensionality?
5
Build Your Own RBF Network
6
Relationship to Deep Learning Neural Networks
7
Neural Network-SVM Mashup
8
Neural Networks Section Conclusion

Appendix

1
What is the Appendix?
2
Windows-Focused Environment Setup 2018
3
How to install Numpy, Scipy, Matplotlib, Pandas, IPython, Theano, and TensorFlow
4
Is this for Beginners or Experts? Academic or Practical? Fast or slow-paced?
5
How to Succeed in this Course (Long Version)
6
How to Code by Yourself (part 1)
7
How to Code by Yourself (part 2)
8
Proof that using Jupyter Notebook is the same as not using it
9
Python 2 vs Python 3
10
What order should I take your courses in? (part 1)
11
What order should I take your courses in? (part 2)
12
[Bonus] Where to get discount coupons and FREE deep learning material
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.6
4.6 out of 5
128 Ratings

Detailed Rating

Stars 5
82
Stars 4
38
Stars 3
4
Stars 2
2
Stars 1
2
b14c7e2afe8cf35f8246964b52ceb738
30-Day Money-Back Guarantee

Includes

9 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion