1. Home
  2. Explore
  3. Computer Science
  4. Introduction to Machine Learning

Study methods

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

Introduction to Machine Learning

  • 67Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Applications and Purpose
In the examples discussed, machine learning uses data together with a method to make a
.

67 questions

  1. 1
    In the examples discussed, machine learning uses data together with a method to make a
    _____
    .
    Hint

    Think about what the method produces from the available data.

    Answer

    decision

    Explanation

    Across the examples, machine learning methods use data to make decisions, such as classifying an event or identifying a candidate exoplanet.

  2. 2
    In the exoplanet example, telescope data and signals are used to decide which candidate objects are actually
    _____
    .
    Hint

    These are planets located outside our solar system.

    Answer

    exoplanets

    Explanation

    Scientists use machine learning to distinguish candidate exoplanets from objects or signals that are something else.

  3. 3
    In the newborn seizure example, machine learning analyzes EEG data to help detect
    _____
    .
    Hint

    The system is intended to identify a concerning brain-related event in newborns.

    Answer

    seizures

    Explanation

    EEG data monitors brain activity, and an automated method can help determine whether a newborn's movement is associated with a seizure.

  4. 4
    To analyze many Supreme Court petitions automatically, machine learning can identify their topics or
    _____
    .
    Hint

    These are the main subjects expressed in the petitions.

    Answer

    themes

    Explanation

    Automated analysis can identify topics or themes in large collections of petition text, which would be labor-intensive to read individually.

  5. 5
    The Bureau of Labor Statistics example uses text from interviews and surveys to assign codes for occupations and workplace
    _____
    .
    Hint

    An example given was an injury occurring at work.

    Answer

    events

    Explanation

    Coding text for occupations and events, such as workplace injuries, can help summarize what is happening in workplaces.

  6. 6
    An email system can use the text of a message to classify whether it is phishing or
    _____
    .
    Hint

    The classification distinguishes malicious messages from those that are not malicious.

    Answer

    not

    Explanation

    Phishing detection aims to identify messages that impersonate someone to obtain passwords or other sensitive information.

  7. 7
    In facial recognition, surveillance images may be used to decide the identity of a
    _____
    .
    Hint

    The system attempts to answer who appears in the image.

    Answer

    person

    Explanation

    Facial recognition methods may use images from sources such as security cameras to identify people; errors can have serious consequences.

  8. 8
    In the farm-loan example, satellite images and weather information help estimate whether a farm can repay a
    _____
    .
    Hint

    The decision is whether to provide financial support that must be repaid.

    Answer

    loan

    Explanation

    The described system uses information about a farm to assess whether it is likely to earn enough money to repay a loan.

  9. 9
    One reason to study machine learning is that automation may save time, energy, and
    _____
    .
    Hint

    These are valuable inputs that automated systems may reduce the need for.

    Answer

    resources

    Explanation

    Machine learning can automate tasks and potentially save time, energy, and resources, making it useful in new application areas.

  10. 10
    Because machine learning can affect medicine, finance, security, and government, people need to understand how it
    _____
    .
    Hint

    Understanding its operation helps people evaluate consequential decisions it may influence.

    Answer

    works

    Explanation

    Machine learning can affect important day-to-day decisions, so understanding how it works helps people understand its effects.

  11. 11
    When someone claims a new machine learning method works, an important question is whether it works as
    _____
    .
    Hint

    Consider whether the method has the effects its designers meant it to have.

    Answer

    intended

    Explanation

    Evaluation asks not only whether a method works, but also whether it works as intended, what effects it has, and whether it needs improvement.

  12. 12
    Machine learning is a tool rather than magic, so its usefulness depends on the
    _____
    .
    Hint

    A tool can be useful in some situations and unsuitable in others.

    Answer

    problem

    Explanation

    Machine learning does not answer every possible question. Like other tools, it has situations in which it is useful and situations in which it is not.

  13. 13
    A study with rich data about children's lives found that even advanced methods could fail to predict outcomes
    _____
    .
    Hint

    The prediction performance was poor despite many strong teams and methods.

    Answer

    well

    Explanation

    The example illustrates that having extensive data and modern methods does not guarantee accurate prediction.

  14. 14
    The fundamental foundation of machine learning emphasized in the lecture is
    _____
    .
    Hint

    This is why the course requires preparation in topics such as matrices and gradients.

    Answer

    math

    Explanation

    Machine learning is built on mathematics, and more advanced study relies on increasingly sophisticated mathematical ideas.

  15. 15
    Previously observed, labeled examples used to build a method for predicting future cases are called
    _____
    data.
    Hint

    The method is fitted or trained using these examples.

    Answer

    training

    Explanation

    Training data are the available examples used to train a machine learning method that will later make predictions on new cases.

  16. 16
    If a dataset contains nnn observed examples, nnn denotes the number of data
    _____
    .
    Hint

    Each observed newborn, for example, contributes one unit to this count.

    Answer

    points

    Explanation

    The lecture uses nnn for the number of data points in the training data.

  17. 17
    The index iii identifies a particular data
    _____
    .
    Hint

    It distinguishes, for example, the first observation from the second.

    Answer

    point

    Explanation

    Data points are indexed from 111 through nnn, and iii indicates which one is being discussed.

  18. 18
    The vector containing the measured characteristics of one example is its
    _____
    vector.
    Hint

    It collects the variables measured about that example.

    Answer

    feature

    Explanation

    A feature vector, written as x(i)x^{(i)}x(i) for example iii, represents the measurements associated with that data point.

  19. 19
    The number of components in a feature vector is its
    _____
    .
    Hint

    The lecture uses ddd to denote this number.

    Answer

    dimension

    Explanation

    A feature vector has ddd components and is treated as an element of the ddd-dimensional Euclidean space Rd\mathbb{R}^{d}Rd.

  20. 20
    In the mathematical setup, a feature vector xxx is treated as a
    _____
    vector.
    Hint

    Its dimensions are ddd by 111.

    Answer

    column

    Explanation

    The lecture treats xxx as a ddd by 111 column vector; this convention is used when checking matrix dimensions.

  21. 21
    The outcome attached to a feature vector is called its
    _____
    .
    Hint

    In the newborn example, it records whether a seizure occurred.

    Answer

    label

    Explanation

    Each training example consists of a feature vector and its label, commonly denoted by xxx and yyy.

  22. 22
    In the newborn example, an expert provides the labels indicating whether each observed newborn did or did not have a
    _____
    .
    Hint

    These labels record the outcome the model will later predict.

    Answer

    seizure

    Explanation

    The training examples are labeled by an expert who determines whether each newborn experienced a seizure.

  23. 23
    In the two-feature cartoon, the first feature x(1)x^{(1)}x(1) represents how much oxygen the newborn is
    _____
    .
    Hint

    It describes oxygen intake in the illustrative example.

    Answer

    breathing

    Explanation

    The lecture's simplified cartoon uses oxygen intake as the first feature and amount of movement as the second.

  24. 24
    In the two-feature cartoon, the second feature x(2)x^{(2)}x(2) represents how much the newborn is
    _____
    .
    Hint

    It describes the newborn's activity in the illustrative example.

    Answer

    moving

    Explanation

    The lecture's cartoon uses movement as its second feature; the actual medical study instead used complex EEG-derived features.

  25. 25
    In the cartoon labeling convention, the label 111 means the newborn had a seizure, while −1-1−1 means the newborn
    _____
    .
    Hint

    It is the negative class in the example.

    Answer

    did not have a seizure

    Explanation

    The illustrative classification task assigns 111 to a seizure and −1-1−1 to no seizure.

  26. 26
    The complete collection of training examples, each a feature vector paired with a label, is called the training
    _____
    .
    Hint

    It is the dataset used to fit the method and is denoted in the lecture by a symbol for a dataset of size nnn.

    Answer

    data

    Explanation

    The training data collect all feature-label pairs, written abstractly as D(n)\mathcal{D}^{(n)}D(n).

  27. 27
    In the actual newborn seizure study described, the feature representation had
    _____
    dimensions.
    Hint

    The representation was far higher-dimensional than the two-dimensional cartoon.

    Answer

    55

    Explanation

    The lecture notes that the real study used a 55-dimensional feature representation derived from complex EEG data.

  28. 28
    A rule that accepts any feature vector and returns a predicted label is called a
    _____
    .
    Hint

    It is a function that maps inputs to predictions.

    Answer

    hypothesis

    Explanation

    A hypothesis hhh maps a feature vector from Rd\mathbb{R}^{d}Rd to a label such as −1-1−1 or 111.

  29. 29
    Any function mapping from Rd\mathbb{R}^{d}Rd to the labels −1-1−1 and 111 qualifies as a
    _____
    .
    Hint

    The definition depends on being a function from features to labels, not on its quality.

    Answer

    hypothesis

    Explanation

    A hypothesis is any function from the feature space to the label set; it need not be useful or accurate.

  30. 30
    The constant rule h(x)=1h(x)=1h(x)=1 is a hypothesis, but it is not a good one because it predicts that every newborn
    _____
    .
    Hint

    It assigns the positive label to every possible input.

    Answer

    had a seizure

    Explanation

    The rule is a valid function, but it cannot distinguish newborns who had seizures from those who did not.

  31. 31
    A collection of hypotheses is called a hypothesis
    _____
    .
    Hint

    It is a set of possible prediction rules.

    Answer

    class

    Explanation

    A hypothesis class, denoted by H\mathcal{H}H, is a collection of hypotheses from which a learning procedure may choose.

  32. 32
    A linear classifier assigns one label to one side of a line and the other label to the
    _____
    .
    Hint

    The line separates the two prediction regions.

    Answer

    other side

    Explanation

    The linear classifier class consists of rules that label the two sides of a line differently, typically with 111 on one side and −1-1−1 on the other.

  33. 33
    In a linear classifier, the vector θ\thetaθ determines the line's orientation and the direction in which the projection
    _____
    .
    Hint

    Moving along this vector makes the projection more positive.

    Answer

    increases

    Explanation

    The classifier uses θ\thetaθ to establish a direction; as points move in the direction of θ\thetaθ, their projection onto it becomes more positive.

  34. 34
    For column vectors θ\thetaθ and xxx, the product θ⊤x\theta^{\top}xθ⊤x is a
    _____
    .
    Hint

    A one-by-ddd matrix multiplied by a ddd-by-one matrix produces a one-by-one result.

    Answer

    scalar

    Explanation

    Since θ⊤\theta^{\top}θ⊤ has dimensions 111 by ddd and xxx has dimensions ddd by 111, their product is a one-by-one matrix, or scalar.

  35. 35
    The quantity θ⊤x∥θ∥\frac{\theta^{\top}x}{\|\theta\|}∥θ∥θ⊤x​ gives the projection of xxx onto the direction of
    _____
    .
    Hint

    The vector in the denominator sets the direction onto which the point is projected.

    Answer

    θ\thetaθ

    Explanation

    Dividing the dot product by the length of θ\thetaθ gives the amount of xxx in the direction of θ\thetaθ.

  36. 36
    If xxx is perpendicular to θ\thetaθ, its projection onto θ\thetaθ is
    _____
    .
    Hint

    A perpendicular vector has no component in the direction of the other vector.

    Answer

    zero

    Explanation

    The dot product of perpendicular vectors is zero, so the projection θ⊤x∥θ∥\frac{\theta^{\top}x}{\|\theta\|}∥θ∥θ⊤x​ is zero.

  37. 37
    Multiplying θ\thetaθ by a positive constant changes its length but leaves its
    _____
    unchanged.
    Hint

    The amount of a vector's projection onto a direction does not depend on how long the direction vector is.

    Answer

    direction

    Explanation

    Scaling θ\thetaθ by a positive constant scales both the numerator and denominator of the projection by that constant, leaving the projection value unchanged.

  38. 38
    The set of points whose projection onto θ\thetaθ equals zero forms a line (or, in higher dimensions, a hyperplane)
    _____
    to θ\thetaθ.
    Hint

    Every point on it has no component in the direction of θ\thetaθ.

    Answer

    perpendicular

    Explanation

    The points satisfying θ⊤x=0\theta^{\top}x=0θ⊤x=0 are perpendicular to θ\thetaθ and form the boundary through the origin.

  39. 39
    The set of points with a fixed nonzero projection onto θ\thetaθ forms a line parallel to the zero-projection
    _____
    .
    Hint

    Changing the fixed projection shifts the boundary without changing its orientation.

    Answer

    line

    Explanation

    A fixed projection value defines a line parallel to the set where the projection is zero; in higher dimensions, these are parallel hyperplanes.

  40. 40
    The boundary of the linear classifier can be written as the set satisfying θ⊤x+θ(0)=0\theta^{\top}x+\theta^{(0)}=0θ⊤x+θ(0)=0, where θ(0)\theta^{(0)}θ(0) is a
    _____
    .
    Hint

    It shifts the decision boundary and is not an input feature.

    Answer

    constant

    Explanation

    The constant θ(0)\theta^{(0)}θ(0) is part of the definition of the decision boundary, together with θ\thetaθ.

  41. 41
    The line θ⊤x+θ(0)=0\theta^{\top}x+\theta^{(0)}=0θ⊤x+θ(0)=0 separates the two regions where the expression is positive and
    _____
    .
    Hint

    The two sides have opposite signs.

    Answer

    negative

    Explanation

    The classifier assigns one label where θ⊤x+θ(0)>0\theta^{\top}x+\theta^{(0)}>0θ⊤x+θ(0)>0 and the other where it is less than zero.

  42. 42
    Under the lecture's convention, a point on the decision boundary receives the label
    _____
    .
    Hint

    Equality is included with the negative side of the rule.

    Answer

    −1-1−1

    Explanation

    The classifier assigns 111 when θ⊤x+θ(0)>0\theta^{\top}x+\theta^{(0)}>0θ⊤x+θ(0)>0 and assigns −1-1−1 when θ⊤x+θ(0)≤0\theta^{\top}x+\theta^{(0)}\leq 0θ⊤x+θ(0)≤0.

  43. 43
    The values θ\thetaθ and θ(0)\theta^{(0)}θ(0) specify a particular linear classifier and are called its
    _____
    .
    Hint

    They define the rule but are not the feature inputs to the rule.

    Answer

    parameters

    Explanation

    Parameters identify how a particular hypothesis is applied and distinguish it from other hypotheses; they are not the input features.

  44. 44
    The collection of all linear classifiers that label opposite sides of a boundary differently is a linear classifier hypothesis
    _____
    .
    Hint

    It collects every permitted classifier of this form.

    Answer

    class

    Explanation

    Varying θ\thetaθ and θ(0)\theta^{(0)}θ(0) gives the hypothesis class of linear classifiers.

  45. 45
    A function that measures the cost of a guess ggg compared with an actual value aaa is called a
    _____
    .
    Hint

    It quantifies how undesirable a prediction is.

    Answer

    loss

    Explanation

    A loss function LLL takes a guess and an actual value as arguments and measures the cost of the guess.

  46. 46
    A larger loss represents a worse outcome, so loss can be viewed as negative
    _____
    .
    Hint

    This other quantity is larger when an outcome is better.

    Answer

    utility

    Explanation

    Loss and utility have opposite interpretations: a larger loss is bad, whereas a larger utility is good.

  47. 47
    Under zero-one loss, a correct prediction incurs loss
    _____
    , while an incorrect prediction incurs loss one.
    Hint

    The name of this loss describes the two possible costs.

    Answer

    zero

    Explanation

    Zero-one loss is 000 when the guess equals the actual label and 111 otherwise.

  48. 48
    Zero-one loss treats false positives and false negatives
    _____
    when both are simply counted as incorrect.
    Hint

    The loss does not distinguish between the two types of mistake.

    Answer

    symmetrically

    Explanation

    Zero-one loss gives the same loss to every incorrect classification, even when the consequences of the two error types differ.

  49. 49
    Predicting a seizure when a newborn does not have one is a false
    _____
    .
    Hint

    The prediction says the condition is present when it is absent.

    Answer

    positive

    Explanation

    This is a false positive: the system predicts a seizure even though the actual label indicates no seizure.

  50. 50
    Predicting no seizure when a newborn does have one is a false
    _____
    .
    Hint

    The prediction says the condition is absent when it is present.

    Answer

    negative

    Explanation

    This is a false negative, which may prevent a newborn who needs care from being identified.

  51. 51
    When failing to detect a real seizure is much more harmful than investigating a false alarm, the loss should be
    _____
    .
    Hint

    The cost of one error type should differ from the cost of the other.

    Answer

    asymmetric

    Explanation

    An asymmetric loss assigns different costs to false positives and false negatives, reflecting their different consequences.

  52. 52
    The average loss on new data points that arrive after training is called the
    _____
    error.
    Hint

    It evaluates performance on data not used to fit the classifier.

    Answer

    test

    Explanation

    Test error measures the average loss on future or otherwise new examples, such as the next patients who enter a hospital.

  53. 53
    Test error on future cases is generally unavailable at training time because their actual labels are not yet
    _____
    .
    Hint

    Calculating the loss requires comparing predictions with actual outcomes.

    Answer

    known

    Explanation

    Computing future error requires observing the future examples and their true labels, which are unavailable before those cases occur.

  54. 54
    The average loss measured on the examples used to fit a classifier is called
    _____
    error.
    Hint

    It is computed on the data that the model has already seen.

    Answer

    training

    Explanation

    Training error averages the losses between a classifier's predictions and the actual labels in the training data.

  55. 55
    When comparing two classifiers using the same training data, the lecture prefers the classifier with the
    _____
    training error.
    Hint

    A smaller average loss indicates fewer or less costly errors on that dataset.

    Answer

    lower

    Explanation

    By definition in this comparison, the classifier with lower training error is preferred, though training error is not necessarily the best measure of future performance.

  56. 56
    Finding the classifier with the lowest error across a large hypothesis class can be computationally
    _____
    .
    Hint

    The challenge concerns the amount of computation required to search the class.

    Answer

    difficult

    Explanation

    Although selecting the minimum-error classifier sounds appealing, carrying out that search can be computationally difficult.

  57. 57
    A classifier maps a feature vector to a label, whereas a learning algorithm maps a dataset to a
    _____
    .
    Hint

    The algorithm produces a prediction rule rather than a prediction for one example.

    Answer

    classifier

    Explanation

    A classifier acts on an input xxx and returns a label; a learning algorithm acts on a dataset and returns a classifier.

  58. 58
    Unlike a classifier, a learning algorithm takes an entire
    _____
    as input.
    Hint

    It uses a collection of examples to produce a prediction rule.

    Answer

    dataset

    Explanation

    A learning algorithm receives training data, denoted abstractly by D(n)\mathcal{D}^{(n)}D(n), and returns a classifier.

  59. 59
    Applying the same learning algorithm to different datasets may produce different
    _____
    .
    Hint

    Its output depends on the data it receives.

    Answer

    classifiers

    Explanation

    A learning algorithm need not return the same hypothesis for every dataset; its output can change as the input data changes.

  60. 60
    A value that adjusts a learning algorithm but is not part of its dataset input is called a
    _____
    parameter.
    Hint

    It is an algorithm-level adjustment, unlike a parameter of an individual hypothesis.

    Answer

    hyper

    Explanation

    A hyperparameter changes the learning algorithm itself, while a parameter such as θ\thetaθ helps specify a particular classifier.

  61. 61
    In the example learning algorithm, a pre-generated collection of candidate classifiers is searched using their
    _____
    error.
    Hint

    The example uses the error measured on the input dataset.

    Answer

    training

    Explanation

    The procedure calculates each candidate's training error and selects a classifier from the candidates being considered.

  62. 62
    The operation that selects the candidate with the smallest error is an arg
    _____
    .
    Hint

    It finds the argument or index at which the minimum value occurs.

    Answer

    min

    Explanation

    The arg min identifies which candidate index gives the minimum training error; the algorithm then returns that candidate classifier.

  63. 63
    If the example learning algorithm considers only one candidate, it returns classifier
    _____
    .
    Hint

    There is only one possible choice when the candidate count is one.

    Answer

    h(1)h^{(1)}h(1)

    Explanation

    With k=1k=1k=1, the only candidate considered is h(1)h^{(1)}h(1), so that is the classifier returned.

  64. 64
    When the algorithm considers two candidates instead of one, its training error cannot be
    _____
    than the error from choosing the first candidate alone.
    Hint

    Selecting the best of a larger set includes the original option.

    Answer

    greater

    Explanation

    The minimum training error over two candidates is at most the error of the first candidate, because the first remains among the choices.

  65. 65
    As the number of candidate classifiers considered by the example algorithm increases, its minimum training error can stay the same or
    _____
    .
    Hint

    Adding candidates enlarges the set over which the minimum is selected.

    Answer

    decrease

    Explanation

    The minimum over a larger candidate set cannot be greater than the previous minimum, so training error is nonincreasing as more candidates are considered.

  66. 66
    A lower training error from searching more candidates does not by itself establish better performance on
    _____
    data.
    Hint

    This is the data the learner has not yet observed.

    Answer

    future

    Explanation

    The example algorithm optimizes training error, but the goal is to predict well on future data, whose performance cannot be measured directly in advance.

  67. 67
    The candidate-search procedure is presented as an example learning algorithm, not as a claim that it is the
    _____
    method.
    Hint

    The lecture notes that further work is needed to develop better approaches.

    Answer

    best

    Explanation

    The procedure illustrates how data can be mapped to a classifier, but it does not settle what the best learning algorithm or evaluation method is.

1 of 67
Question 1 of 67

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent