Perceptron

We'll cover the following...

Recall the classification of points problem in the previous lesson. How do we draw the line that separates the squares from the stars? This is where perceptron comes to the rescue.

What is a perceptron?

Perceptron is a binary linear classifier (binary) used in supervised learning to classify the given input data.

Visualize a perceptron

In case of two input features the perceptron model would look something like this:

Boundary

The boundary line that separates the two classes is:

w1x1+w2x2+b=0w_1x_1 + w_2x_2 + b = 0

Here,

  • x1x_1 and x2x_2 are the inputs
  • w1w_1 and w2w_2 are the weights
  • bb is the bias

Prediction

y^\hat{y} = { 1 if w1x1+w2x2+bw_1x_1 + w_2x_2 + b ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy