Perceptrons and Logistic Regression
- 65Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
65 questions
- 1A model that focuses on mapping feature vectors directly to class decisions without learning a full probabilistic model is called a_____.
Hint
This model emphasizes the decision from features to labels rather than the full distribution of all variables.
Answer
linear classifier
- 2In email classification, an email is transformed into a_____before a classifier makes a decision.
Hint
It contains numerical values describing properties such as word frequencies and whether the sender is a friend.
Answer
feature vector
- 3Counting how often words such as “free” or a sender's name occur in an email illustrates the use of_____to represent text.
Hint
These are measurable properties extracted from an input.
Answer
features
- 4For a grayscale image, a pixel feature might be represented by a value between 0 and 1 or sometimes between 0 and_____.
Hint
This is the maximum value in a common byte representation.
Answer
255
- 5A feature that counts the number of enclosed loops in an image is an example of a more_____image feature.
Hint
It captures a meaningful structure rather than simply recording whether an individual pixel is on or off.
Answer
advanced
- 6Designing useful features, such as grouping synonyms or deciding whether an email comes from a friend, traditionally requires considerable_____.
Hint
The lecture contrasts this human judgment with a fully automatic procedure.
Answer
art
- 7The lecture distinguishes feature engineering from classification by describing future methods that can learn the transition from x to_____.
Hint
This notation represents the feature representation of the original input.
Answer
f(x)
- 8A linear classifier computes its activation by taking the_____of the feature values and their weights.
Hint
Each feature is multiplied by a connection strength before the results are combined.
Answer
weighted sum
- 9In the biological analogy, signals enter a neuron through structures called_____.
Hint
These structures receive inputs from the retina or other neurons.
Answer
dendrites
- 10A neuron's output signal travels along a channel called the_____.
Hint
This channel carries the signal toward other neurons.
Answer
axon
- 11In the neuron analogy, the strength of a connection from an input is represented by a_____.
Hint
A stronger connection causes the input to receive more attention in the activation.
Answer
weight
- 12A feature with a negative weight decreases the activation when its feature value is positive, thereby providing evidence for the_____class.
Hint
The lecture uses the signs of activation to distinguish the two classes.
Answer
negative
- 13For a binary classifier without a bias, the decision boundary is the set of feature vectors whose weighted activation equals_____.
Hint
The classifier changes class when the activation changes sign.
Answer
0
- 14The decision boundary associated with a weight vector is a hyperplane_____to that weight vector.
Hint
The boundary consists of vectors having zero inner product with the weight vector.
Answer
orthogonal
- 15A positive bias term makes it harder for an example to be classified as the_____class when positive activation corresponds to the positive class.
Hint
The lecture explains that a positive bias raises the bar for one of the two decisions.
Answer
negative
- 16A bias term can be implemented by adding a feature whose value is always_____.
Hint
Multiplying this constant feature by its weight produces a fixed offset.
Answer
1
- 17The binary perceptron classifies an example as the positive class when w 3 f(x) is_____.
Hint
The decision is based on whether the activation is above or below zero.
Answer
positive
- 18The perceptron begins training by setting all weights to_____.
Hint
This is a simple neutral initialization.
Answer
0
- 19For each training instance, the perceptron first classifies the example using the_____weights.
Hint
These are the weights produced by all updates so far.
Answer
current
- 20When the perceptron's predicted label equals the correct label, the algorithm makes_____update to the weights.
Hint
A correctly classified example does not require correction.
Answer
no
- 21The perceptron changes the weight vector after making a_____prediction.
Hint
The update attempts to make the classifier more compatible with the misclassified example.
Answer
wrong
- 22The perceptron update changes w by adding the product of the correct label and the feature vector, written as_____.
Hint
The correction points toward the feature vector for a positive label and away from it for a negative label.
Answer
y∗f(x)
- 23When a negative example is incorrectly classified as positive, the update makes the weight vector less aligned with the example by adding_____.
Hint
The correct label is negative, so the correction must point opposite to the input.
Answer
the negative of the feature vector
- 24Because f(x) 3 f(x) is always greater than zero for a nonzero feature vector, a positive-label update makes the activation_____.
Hint
The correction contributes a positive self-inner-product term.
Answer
increase
- 25A negative-label perceptron update causes the weight vector to rotate_____from the feature vector.
Hint
The goal is to reduce the positive activation of a mistakenly positive example.
Answer
away
- 26A learning rate such as b1 can be used to make perceptron adjustments more_____.
Hint
It controls the size of each update step.
Answer
gradual
- 27The perceptron is guaranteed to converge when the binary training data is_____separable.
Hint
There must exist a line or hyperplane separating the classes.
Answer
linearly
- 28If binary training data is not linearly separable, the perceptron may keep_____between different decision boundaries.
Hint
Correcting one mistake can create another mistake.
Answer
bouncing
- 29In the perceptron mistake bound, k denotes the number of_____in the feature vector.
Hint
It measures the dimensionality of the input representation.
Answer
features
- 30In the perceptron mistake bound, a larger separability measure b4 generally leads to_____mistakes.
Hint
Classes that are farther apart are easier to separate.
Answer
fewer
- 31For multiclass perceptrons, the model maintains one weight vector_____.
Hint
A three-class problem uses three separate weight vectors.
Answer
per class
- 32The score assigned to class y by a multiclass perceptron is the inner product of that class's weight vector and the feature vector, written as_____.
Hint
Use the weight vector indexed by the candidate class.
Answer
w_y 3 f(x)
- 33A multiclass perceptron predicts the class with the_____activation.
Hint
The winning class is the one whose weight vector is most aligned with the input.
Answer
highest
- 34For a two-class problem, the multiclass approach can be simplified to using_____weight vector.
Hint
The binary perceptron determines the class by the sign of a single activation.
Answer
one
- 35When a multiclass perceptron predicts class y but the correct class is y∗, it subtracts the feature vector from the weight vector for the_____class.
Hint
The incorrect class should receive a lower score for this example.
Answer
predicted
- 36When a multiclass perceptron predicts class y but the correct class is y∗, it adds the feature vector to the weight vector for the_____class.
Hint
The correct class should receive a higher score for this example.
Answer
correct
- 37The multiclass update guarantees that the correct class's score increases and the incorrect predicted class's score_____.
Hint
The two updates move the scores in opposite directions.
Answer
decreases
- 38A multiclass perceptron update does not guarantee that the correct class will immediately_____after the update.
Hint
The update only nudges the relevant scores in the desired direction.
Answer
win
- 39In the multiclass perceptron, separability means that each class's data points can occupy its own region determined by the class_____.
Hint
These vectors point in directions associated with the classes.
Answer
weight vectors
- 40The perceptron's training accuracy can increase while its performance on a separate hold-out set eventually_____.
Hint
This pattern indicates that the model is memorizing rather than generalizing.
Answer
goes down
- 41Data reserved for final reporting and not touched during training is called_____data.
Hint
It is intended to represent data encountered in the future.
Answer
test
- 42Data used during training to monitor performance and decide when to stop is called_____data.
Hint
It is separate from both the training data and the final test data.
Answer
hold out
- 43Stopping training when hold-out accuracy begins to decline is called_____stopping.
Hint
The method ends training before additional updates worsen generalization.
Answer
early
- 44A decision boundary that perfectly classifies training data but lies very close to several data points may have poor_____.
Hint
The concern is how well the boundary handles future examples.
Answer
generalization
- 45Unlike the perceptron, logistic regression assigns a_____to each possible class rather than making only a hard sign-based decision.
Hint
Its output can express uncertainty, such as 70% blue and 30% red.
Answer
probability
- 46The sigmoid function used for binary logistic regression is written as_____.
Hint
It has a denominator consisting of one plus an exponential of the negative activation.
Answer
1+e−z1
- 47Under the sigmoid model, an activation of z=0 corresponds to a positive-class probability of_____.
Hint
Zero lies at the midpoint of the sigmoid curve.
Answer
0.5
- 48Logistic regression chooses parameters by maximizing the_____of the observed labels given the inputs.
Hint
This is the standard probabilistic framework for selecting parameters that make the observed data most probable.
Answer
likelihood
- 49Compared with a generative model, logistic regression focuses on modeling the conditional distribution of_____given the input.
Hint
The lecture contrasts this with modeling both the input distribution and the label distribution.
Answer
the label
- 50A logistic-regression decision boundary is preferred when it places data points farther from the boundary because this produces higher_____likelihood.
Hint
The optimization objective sums logarithms of predicted probabilities.
Answer
log
- 51Logistic regression can converge on data that is not linearly separable because it does not require every example to be classified with_____certainty.
Hint
It permits probabilities such as 90% for one class and 10% for another.
Answer
perfect
- 52In multiclass logistic regression, the normalized exponential function applied to class scores is called_____.
Hint
It converts several arbitrary scores into probabilities that sum to one.
Answer
softmax
- 53The softmax probability for a class is obtained by dividing its exponentiated score by the_____of all exponentiated class scores.
Hint
This normalization ensures that all class probabilities total one.
Answer
sum
- 54Exponentiating class scores ensures that each unnormalized softmax value is_____.
Hint
The exponential function never returns a negative number.
Answer
positive
- 55Because softmax normalizes the exponentiated scores, the resulting class probabilities_____to 1.
Hint
Normalization creates a probability distribution.
Answer
sum
- 56If one class has the highest activation, softmax assigns that class the_____probability.
Hint
Exponentials preserve the ordering of scores and amplify differences.
Answer
highest
- 57The multiclass logistic-regression score for a class is the inner product between that class's weight vector and the input feature vector, followed by a_____calculation.
Hint
This second step converts raw activations into probabilities.
Answer
softmax
- 58A model trained to represent the full distribution of inputs and labels is called a_____model.
Hint
It learns how to generate all of the data rather than focusing only on discrimination.
Answer
generative
- 59A model trained primarily to distinguish among class labels by optimizing P(y∣x) is called a_____model.
Hint
It focuses on separating or discriminating among labels.
Answer
discriminative
- 60The generative objective can be decomposed into a conditional label term and a term for the distribution of_____.
Hint
The second term describes how likely the feature vectors themselves are.
Answer
the inputs
- 61When only classification matters, including the input-distribution term can influence the parameters even though it is not directly part of the desired_____.
Hint
The lecture asks why an irrelevant modeling goal should affect the choice of weights.
Answer
decision
- 62A potential benefit of the generative input-distribution term is that it can act as a form of_____against overfitting.
Hint
It can moderate the parameter choice when data is limited.
Answer
regularization
- 63With a very small amount of data, the lecture suggests that a generative model may be useful because the additional input-distribution term can provide_____.
Hint
It helps stabilize the choice of parameters when limited data makes overfitting a concern.
Answer
moderation
- 64With a very large amount of data, a discriminative approach may be preferred because it can focus directly on the classification_____.
Hint
It avoids spending modeling capacity on the distribution of inputs when that distribution is not the main goal.
Answer
task
- 65Both binary and multiclass logistic regression use maximum likelihood to select the weight vector that maximizes the log probability of labels given their_____.
Hint
These are the input representations used to make predictions.
Answer
features

Ask anything
We've read this whole study set, so questions about it get the best answers.