Math Behind Linear Classification
Discriminant Classifier
Table of Contents :
1.Motivation
2. Solution
2.a. Simple Linear Classification
2.b. Multiple Linear Classification
3. Code Implementation
Motivation
We already know how to solve a regression problem statement using linear regression. So the idea here is to apply the same intuition for a classification problem statement !!
Simple Linear Classification
For better understanding let’s first build the intuition using just 2 feature datasets so that we can visualize concepts.
Now based on the above logic we will have to devise a cost function…
Now at the time of inference, you just need to substitute the point in the line equation to classify it
Multiple Linear Classification
Now you can just extrapolate above intuition to N feature dataset.
Code Implementation
I am still working on the custom implementation, you can find here a simple library-based implementation