Model
Explore how a perceptron model represents data classification by using weighted inputs and activation functions to create decision boundaries. Understand the mathematical foundation behind how models separate data classes and prepare to implement your first perceptron in code.
The ML process
For any complex problem that requires the computer to be able to identify patterns, there is an ML process to solve it.
This chapter demystifies each step of this process one by one. This lesson is about the second step—the model.
We have seen how a linear decision boundary geometrically separates the movie dataset into two regions. The region on one side of the line represents the “Good” movies class while that on the other side of the line shows the “Bad” movies class.
However, mathematically speaking, how do we determine if a point is on the good side or the bad side of a given line? Let’s look at how a line is represented mathematically.
Detour: Math behind the line
Any line in the 2D coordinate plane, including the one shown in the plot above, can be represented by the following general equation,
Here
Let’s play around with the values of
This shows that both
But what about the constant