Back to the 2026 paper

Module 3: Linear Classification and Advanced Methods

20267m

Explain the Perceptron learning algorithm. Describe the weight and bias update rules and illustrate the algorithm with a suitable example.

Worked SolutionAI Assisted

Perceptron learning algorithm

A perceptron is a linear binary classifier. For input vector (x), weights (w), and bias (b), compute (z=w^Tx+b) and predict 1 when (z\ge0), otherwise 0.

For target (y\in{0,1}) and prediction (\hat y), update on mistakes:

w←w+η(y−y^)x,b←b+η(y−y^)w\leftarrow w+\eta(y-\hat y)x,\qquad b\leftarrow b+\eta(y-\hat y)

where (\eta>0) is the learning rate. Repeat over training examples until a stopping condition is reached. The algorithm converges in finite updates for linearly separable data; it may not converge for non-separable data.

MermaidDiagram
Rendering diagram…

Similar questions

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.