1. Home
  2. Explore
  3. Computer Science
  4. Perceptrons and Logistic Regression

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Perceptrons and Logistic Regression

  • 65Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Linear Classifiers
A model that focuses on mapping feature vectors directly to class decisions without learning a full probabilistic model is called a
.

65 questions

  1. 1
    A 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

  2. 2
    In 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

  3. 3
    Counting 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

  4. 4
    For 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

  5. 5
    A 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

  6. 6
    Designing 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

  7. 7
    The lecture distinguishes feature engineering from classification by describing future methods that can learn the transition from xxx to
    _____
    .
    Hint

    This notation represents the feature representation of the original input.

    Answer

    f(x)f(x)f(x)

  8. 8
    A 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

  9. 9
    In the biological analogy, signals enter a neuron through structures called
    _____
    .
    Hint

    These structures receive inputs from the retina or other neurons.

    Answer

    dendrites

  10. 10
    A neuron's output signal travels along a channel called the
    _____
    .
    Hint

    This channel carries the signal toward other neurons.

    Answer

    axon

  11. 11
    In 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

  12. 12
    A 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

  13. 13
    For 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

  14. 14
    The 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

  15. 15
    A 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

  16. 16
    A 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

  17. 17
    The 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

  18. 18
    The perceptron begins training by setting all weights to
    _____
    .
    Hint

    This is a simple neutral initialization.

    Answer

    0

  19. 19
    For 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

  20. 20
    When 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

  21. 21
    The 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

  22. 22
    The perceptron update changes www 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)y^* f(x)y∗f(x)

  23. 23
    When 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

  24. 24
    Because 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

  25. 25
    A 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

  26. 26
    A learning rate such as b1 can be used to make perceptron adjustments more
    _____
    .
    Hint

    It controls the size of each update step.

    Answer

    gradual

  27. 27
    The 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

  28. 28
    If 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

  29. 29
    In the perceptron mistake bound, kkk denotes the number of
    _____
    in the feature vector.
    Hint

    It measures the dimensionality of the input representation.

    Answer

    features

  30. 30
    In 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

  31. 31
    For multiclass perceptrons, the model maintains one weight vector
    _____
    .
    Hint

    A three-class problem uses three separate weight vectors.

    Answer

    per class

  32. 32
    The score assigned to class yyy 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)

  33. 33
    A 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

  34. 34
    For 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

  35. 35
    When a multiclass perceptron predicts class yyy but the correct class is y∗y^*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

  36. 36
    When a multiclass perceptron predicts class yyy but the correct class is y∗y^*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

  37. 37
    The 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

  38. 38
    A 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

  39. 39
    In 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

  40. 40
    The 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

  41. 41
    Data 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

  42. 42
    Data 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

  43. 43
    Stopping training when hold-out accuracy begins to decline is called
    _____
    stopping.
    Hint

    The method ends training before additional updates worsen generalization.

    Answer

    early

  44. 44
    A 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

  45. 45
    Unlike 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

  46. 46
    The 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

    11+e−z\frac{1}{1 + e^{-z}}1+e−z1​

  47. 47
    Under the sigmoid model, an activation of z=0z = 0z=0 corresponds to a positive-class probability of
    _____
    .
    Hint

    Zero lies at the midpoint of the sigmoid curve.

    Answer

    0.5

  48. 48
    Logistic 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

  49. 49
    Compared 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

  50. 50
    A 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

  51. 51
    Logistic 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

  52. 52
    In 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

  53. 53
    The 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

  54. 54
    Exponentiating class scores ensures that each unnormalized softmax value is
    _____
    .
    Hint

    The exponential function never returns a negative number.

    Answer

    positive

  55. 55
    Because softmax normalizes the exponentiated scores, the resulting class probabilities
    _____
    to 1.
    Hint

    Normalization creates a probability distribution.

    Answer

    sum

  56. 56
    If one class has the highest activation, softmax assigns that class the
    _____
    probability.
    Hint

    Exponentials preserve the ordering of scores and amplify differences.

    Answer

    highest

  57. 57
    The 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

  58. 58
    A 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

  59. 59
    A model trained primarily to distinguish among class labels by optimizing P(y∣x)P(y \mid x)P(y∣x) is called a
    _____
    model.
    Hint

    It focuses on separating or discriminating among labels.

    Answer

    discriminative

  60. 60
    The 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

  61. 61
    When 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

  62. 62
    A 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

  63. 63
    With 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

  64. 64
    With 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

  65. 65
    Both 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

1 of 65
Question 1 of 65

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent