Back to marketplace

Sem2 Week 3

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

What is a classification problem?

Back (Answer)

Assigning an input to one of a finite set of categories

#2
Front (Question)

How is a decision boundary represented mathematically (1D case)?

Back (Answer)

y = 1 if x > t, y = 0 if x ≤ t, where t is a threshold value

#3
Front (Question)

How does a decision boundary generalise from 2D to ND?

Back (Answer)

In 2D it is a line; in 3D a plane; in N dimensions it becomes a hyperplane — an (N−1)-dimensional surface dividing the space

#4
Front (Question)

What is a perceptron?

Back (Answer)

A simple binary classifier that computes a weighted sum of its inputs, adds a bias, and passes the result through a step function to produce a 0 or 1 output. i.e. given some input, it outputs either 0 or 1

#5
Front (Question)

Describe the perceptron diagram

Back (Answer)

Inputs x₁…xₙ each multiplied by weights w₁…wₙ, summed together with a bias b, then passed through an activation function (step function) to give output ŷ

#6
Front (Question)

What is the perceptron output equation?

Back (Answer)

ŷ = f(w·x + b), where f is the step function: f(z) = 1 if z > 0, else 0 (z = w₀ + w₁x₁ + w₂x₂ + … = Σ wᵢxᵢ)

#7
Front (Question)

What does each term in the perceptron learning rule represent?

Back (Answer)

η = learning rate (step size); y = true label; ŷ = predicted label; (y − ŷ) = error signal; xᵢ = input feature

#8
Front (Question)

When does the perceptron learning rule make no update?

Back (Answer)

When ŷ = y (prediction is correct) — the error term (y − ŷ) = 0, so weights are unchanged

#9
Front (Question)

What is the limitation of a perceptron’s decision boundary?

Back (Answer)

It can only represent a linear decision boundary — it cannot classify data that is not linearly separable (e.g. XOR problem)

#10
Front (Question)

What is a decision boundary?

Back (Answer)

The point, line, or surface at which a model changes its output — e.g. in a spam filter, the exact boundary between ‘spam’ and ‘not spam’

#11
Front (Question)

How does sigmoid improve on the step function?

Back (Answer)

The step function gives a hard 0 or 1 with no gradient; sigmoid gives a smooth curve between 0 and 1, making it differentiable and suitable for learning

#12
Front (Question)

How can non-linearly separable data be made separable?

Back (Answer)

By engineering new features — e.g. squaring inputs for circular clusters, taking products x₁x₂ for multiple features, or using log transforms for exponentially distributed data

#13
Front (Question)

How many decision boundaries does a perceptron define given a fixed set of weights?

Back (Answer)

Exactly one — a specific set of weights corresponds to exactly one decision boundary

#14
Front (Question)

How many sets of weights can produce a given decision boundary?

Back (Answer)

Infinitely many DB exists when output = 0 Rearranging equation shows two pairs of linearly dependant weights give the same boundary e.g. w₀=4, w₁=2 and w₀=2, w₁=1 both place the boundary at x₁ > -2; any positive scalar multiple works

#15
Front (Question)

What happens to the classification labels if you negate all weights of a perceptron?

Back (Answer)

The decision boundary stays in the same position but the labels flip — what was class 1 becomes class 0 and vice versa

#16
Front (Question)

What is the perceptron learning problem?

Back (Answer)

Given labelled observations of x and y, find a set of weights such that the perceptron correctly classifies all data points

#17
Front (Question)

What is the general form of the perceptron weight update rule?

Back (Answer)

w_new = w_old + Δw, where weights are adjusted iteratively until the perceptron classifies correctly

#18
Front (Question)

Why is Δwᵢ = error alone insufficient as a weight update rule?

Back (Answer)

It only accounts for the sign of the error but ignores the sign and magnitude of the input xᵢ, so updates can move weights in the wrong direction

#19
Front (Question)

Why does the perceptron update rule multiply error by xᵢ?

Back (Answer)

To account for the sign and magnitude of the input — if xᵢ is negative, decreasing wᵢ increases the weighted sum, which multiplying by xᵢ handles automatically

#20
Front (Question)

What is the role of the learning rate η in the perceptron update rule?

Back (Answer)

It is a constant that scales the size of each weight change, controlling how aggressively the perceptron updates its weights each step

#21
Front (Question)

Write the full perceptron update rule

Back (Answer)

Δwᵢ = η(y_true − y_predicted)xᵢ

#22
Front (Question)

When does the perceptron update rule make no change to a weight?

Back (Answer)

When y_true = y_predicted — the error term is zero so Δwᵢ = 0 and the weight is unchanged

#23
Front (Question)

What is the convergence guarantee of the perceptron learning rule?

Back (Answer)

It is guaranteed to converge to a correct solution for any linearly separable n-dimensional dataset — but makes no guarantee if the data is not linearly separable

#24
Front (Question)

2 solutions to nonlinear separable datasets

Back (Answer)

manipulate data, or get more perceptrons