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

  • 113Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Learning Foundations
Machine learning generally gives a computer data or patterns to learn from rather than
instructions for performing a task.

113 questions

  1. 1
    Machine learning generally gives a computer data or patterns to learn from rather than
    _____
    instructions for performing a task.
    Hint

    Think about the contrast between programming every step and learning from examples.

    Answer

    explicit

  2. 2
    The data provided to a supervised learning system consists of
    _____
    pairs.
    Hint

    Each example contains evidence and the result associated with that evidence.

    Answer

    input-output

  3. 3
    The goal of supervised learning is to learn a function that maps
    _____
    to outputs.
    Hint

    The function receives evidence and produces a prediction.

    Answer

    inputs

  4. 4
    In supervised learning, the data used to help a model understand relationships between inputs and outputs is used to
    _____
    the model.
    Hint

    This is the process that occurs before evaluating the model on new data.

    Answer

    train

  5. 5
    Supervised learning is distinguished by the fact that a human has
    _____
    each data point with its correct output.
    Hint

    The output attached to an example tells the system what the correct category or value is.

    Answer

    labeled

  6. 6
    The three broad categories of machine learning discussed are supervised learning, reinforcement learning, and
    _____
    learning.
    Hint

    This category works with data without labels or additional feedback.

    Answer

    unsupervised

  7. 7
    In supervised learning, the learned function is often called a
    _____
    function because it approximates the unknown target function.
    Hint

    It is commonly represented by the letter h.

    Answer

    hypothesis

  8. 8
    A computer can represent a problem in many dimensions because each dimension can simply be tracked as a separate
    _____
    .
    Hint

    The computer does not need to visualize dimensions as humans do.

    Answer

    number

  9. 9
    A vector is a sequence of
    _____
    values, such as a Python list or tuple containing numbers.
    Hint

    Vectors are ordered collections used in the mathematical representation of data.

    Answer

    numerical

  10. 10
    The library discussed for implementing machine learning algorithms in Python is called
    _____
    .
    Hint

    It provides ready-made implementations of classifiers and model-fitting tools.

    Answer

    scikit-learn

  11. 11
    Classification is a supervised learning task in which inputs are mapped into discrete
    _____
    .
    Hint

    Examples include rainy versus not rainy and authentic versus counterfeit.

    Answer

    categories

  12. 12
    Predicting whether a banknote is authentic or counterfeit is an example of
    _____
    .
    Hint

    The output is one of two discrete categories.

    Answer

    classification

  13. 13
    In the weather example, humidity and air pressure are the input
    _____
    used to predict whether it will rain.
    Hint

    They are measurable pieces of evidence supplied to the model.

    Answer

    features

  14. 14
    In a labeled weather table, the information stating whether a day was rainy or not rainy is its
    _____
    .
    Hint

    It is the known output supplied by a human.

    Answer

    label

  15. 15
    In a graph of weather data, humidity can be placed on the x-axis and
    _____
    on the y-axis.
    Hint

    The two numerical inputs are humidity and this atmospheric measurement.

    Answer

    pressure

  16. 16
    In the weather graph, blue points represent rainy days, while red points represent
    _____
    rainy days.
    Hint

    The red category is the alternative to rainy.

    Answer

    not

  17. 17
    A new data point without an associated label is called an
    _____
    input.
    Hint

    The model must predict its category rather than simply read it from the data.

    Answer

    unlabeled

  18. 18
    Nearest neighbor classification assigns a new input the class of the
    _____
    data point.
    Hint

    The method bases its prediction on the closest known example.

    Answer

    nearest

  19. 19
    In nearest neighbor classification, the word class means a data point's
    _____
    .
    Hint

    Rain and no rain are examples of this.

    Answer

    category

  20. 20
    Nearest neighbor classification can be sensitive to a single nearby point, so considering
    _____
    neighbors may sometimes produce a better result.
    Hint

    The alternative to relying on only one neighbor is to examine a group of them.

    Answer

    multiple

  21. 21
    The k-nearest-neighbor algorithm chooses the most common class among the
    _____
    nearest data points.
    Hint

    This letter represents the chosen number of neighbors.

    Answer

    k

  22. 22
    In k-nearest-neighbor classification, each of the selected neighbors effectively casts one
    _____
    for its class.
    Hint

    The class with the largest count wins.

    Answer

    vote

  23. 23
    A decision boundary is a boundary intended to
    _____
    data points from different categories.
    Hint

    It divides rainy examples from not-rainy examples.

    Answer

    separate

  24. 24
    In two dimensions, a linear decision boundary can be represented by a
    _____
    .
    Hint

    It is the simplest geometric separator on a two-dimensional graph.

    Answer

    line

  25. 25
    A data set is linearly separable when a line can perfectly separate its two
    _____
    .
    Hint

    The two portions correspond to the different categories.

    Answer

    halves

  26. 26
    In real data, outliers and random
    _____
    can prevent perfect linear separation.
    Hint

    This refers to unwanted irregular variation in the data.

    Answer

    noise

  27. 27
    In the weather model, the hypothesis function takes humidity and pressure as its
    _____
    .
    Hint

    These are the variables supplied to the function.

    Answer

    inputs

  28. 28
    A linear combination multiplies each input variable by a corresponding
    _____
    .
    Hint

    This parameter expresses how important an input is in the calculation.

    Answer

    weight

  29. 29
    The additional weight used to shift the entire linear expression is called
    _____
    .
    Hint

    It is paired with a constant input of 1.

    Answer

    weight 0

  30. 30
    The model classifies a data point as rainy when the weighted expression is greater than or equal to
    _____
    .
    Hint

    This is the threshold used in the described hypothesis.

    Answer

    0

  31. 31
    The perceptron hypothesis produces the numerical output 1 for rain and
    _____
    for not rain.
    Hint

    The two categories are encoded numerically.

    Answer

    0

  32. 32
    The shape, slope, and position of a linear decision boundary are determined primarily by the model's
    _____
    .
    Hint

    These are the parameters learned from the data.

    Answer

    weights

  33. 33
    The dot product of two vectors is calculated by multiplying corresponding terms and then
    _____
    the results.
    Hint

    After pairwise multiplication, combine all products into one value.

    Answer

    adding

  34. 34
    The weight vector and input vector must have the same
    _____
    for their dot product to be defined.
    Hint

    Each weight needs a corresponding input component.

    Answer

    length

  35. 35
    The perceptron learning rule updates weights using labeled examples with an input and an actual output represented by
    _____
    .
    Hint

    In the notation, this variable represents the target value.

    Answer

    y

  36. 36
    If the actual output and the prediction are equal, the perceptron weight update is
    _____
    .
    Hint

    Correct predictions do not require a correction.

    Answer

    zero

  37. 37
    If the actual value is greater than the estimate, the perceptron rule generally increases the relevant
    _____
    .
    Hint

    The model needs to make its future output larger.

    Answer

    weight

  38. 38
    If the actual value is less than the estimate, the perceptron rule generally
    _____
    the relevant weight.
    Hint

    The model needs to lower its future output.

    Answer

    decreases

  39. 39
    The perceptron learning process can be repeated over many examples until the algorithm hopefully
    _____
    to a useful set of weights.
    Hint

    This means the parameters settle toward a stable solution.

    Answer

    converges

  40. 40
    The parameter alpha in the perceptron update is called the
    _____
    rate.
    Hint

    It controls how quickly the weights change in response to new information.

    Answer

    learning

  41. 41
    A larger learning rate causes the weights to be updated by a
    _____
    amount.
    Hint

    The learning rate scales the adjustment.

    Answer

    larger

  42. 42
    A hard threshold function has only two possible outputs, such as
    _____
    and 1.
    Hint

    The two outputs represent not raining and raining.

    Answer

    0

  43. 43
    A hard threshold cannot express how
    _____
    the model is about a prediction.
    Hint

    It provides only a category, not a degree of belief.

    Answer

    confident

  44. 44
    Logistic regression replaces the hard threshold with a
    _____
    threshold.
    Hint

    This threshold changes gradually rather than abruptly.

    Answer

    soft

  45. 45
    A logistic function can produce any real-valued output between
    _____
    and 1.
    Hint

    Its output range includes intermediate values such as 0.7.

    Answer

    0

  46. 46
    An output such as 0.7 from a logistic model can represent the estimated
    _____
    that an input belongs to a category.
    Hint

    It expresses likelihood rather than a simple yes-or-no result.

    Answer

    probability

  47. 47
    A support vector machine seeks a decision boundary called the maximum
    _____
    separator.
    Hint

    The goal is to maximize the distance between the boundary and the closest examples.

    Answer

    margin

  48. 48
    Support vector machines identify the data points closest to the boundary, called support
    _____
    .
    Hint

    These points determine the margin.

    Answer

    vectors

  49. 49
    The maximum margin approach is intended to improve how well a model
    _____
    to unseen data.
    Hint

    It should perform well beyond the training examples.

    Answer

    generalizes

  50. 50
    In higher-dimensional spaces, a linear decision boundary is generally called a
    _____
    .
    Hint

    It is the higher-dimensional analogue of a line.

    Answer

    hyperplane

  51. 51
    Support vector machines can address nonlinearly separable data by operating in
    _____
    dimensions.
    Hint

    The method transforms the problem into a space with additional dimensions.

    Answer

    higher

  52. 52
    A curved boundary such as a circle may separate data that cannot be separated by a straight
    _____
    .
    Hint

    The straight boundary is the two-dimensional linear alternative.

    Answer

    line

  53. 53
    Regression differs from classification because regression predicts a generally
    _____
    real-number value.
    Hint

    Sales amount is an example of this type of output.

    Answer

    continuous

  54. 54
    Predicting sales from advertising spending is an example of
    _____
    .
    Hint

    The target is an amount rather than a category.

    Answer

    regression

  55. 55
    In a regression graph relating advertising and sales, advertising spending is placed on the
    _____
    -axis.
    Hint

    The input variable is conventionally plotted horizontally.

    Answer

    x

  56. 56
    In the same graph, sales are placed on the
    _____
    -axis.
    Hint

    The predicted output is plotted vertically.

    Answer

    y

  57. 57
    A loss function estimates how
    _____
    a model's predictions are.
    Hint

    It measures error or loss of utility.

    Answer

    poorly

  58. 58
    For classification, the 0-1 loss function assigns a loss of
    _____
    when the prediction is correct.
    Hint

    A correct prediction produces no loss of utility.

    Answer

    0

  59. 59
    For classification, the 0-1 loss function assigns a loss of
    _____
    when the prediction is incorrect.
    Hint

    An incorrect prediction receives the nonzero penalty.

    Answer

    1

  60. 60
    The total loss summed over the original data points is called the empirical
    _____
    .
    Hint

    It aggregates the individual prediction errors.

    Answer

    loss

  61. 61
    L1 loss measures the absolute
    _____
    between an actual value and a predicted value.
    Hint

    It asks how far apart the two numerical values are.

    Answer

    difference

  62. 62
    L2 loss uses the
    _____
    of the difference between actual and predicted values.
    Hint

    This makes large errors receive disproportionately larger penalties.

    Answer

    square

  63. 63
    Compared with L1 loss, L2 loss penalizes large errors more
    _____
    .
    Hint

    Squaring a large difference increases its penalty substantially.

    Answer

    harshly

  64. 64
    Overfitting occurs when a model fits the training data too closely and fails to
    _____
    well.
    Hint

    The problem appears when the model encounters unseen data.

    Answer

    generalize

  65. 65
    A model that connects every training data point perfectly may have zero training loss but still suffer from
    _____
    .
    Hint

    Perfect performance on known examples does not guarantee good performance elsewhere.

    Answer

    overfitting

  66. 66
    Regularization penalizes hypotheses that are more
    _____
    in order to favor simpler solutions.
    Hint

    The method adds a measure of model complexity to the cost.

    Answer

    complex

  67. 67
    The parameter lambda controls how strongly model
    _____
    is penalized.
    Hint

    A larger value places more emphasis on simplicity.

    Answer

    complexity

  68. 68
    Regularization is intended to reduce the risk of
    _____
    .
    Hint

    It discourages a model from matching the training data too exactly.

    Answer

    overfitting

  69. 69
    Holdout cross-validation divides data into a training set and a
    _____
    set.
    Hint

    This second set is kept separate for evaluating the model.

    Answer

    testing

  70. 70
    The model learns its parameters using the
    _____
    set.
    Hint

    This is the subset supplied to the fitting process.

    Answer

    training

  71. 71
    The testing set should contain data the model has not
    _____
    before.
    Hint

    The purpose is to evaluate performance on new examples.

    Answer

    seen

  72. 72
    K-fold cross-validation divides the data into
    _____
    different sets.
    Hint

    The letter represents the number of folds.

    Answer

    k

  73. 73
    In k-fold cross-validation, each experiment holds out one fold for
    _____
    and trains on the remaining folds.
    Hint

    The held-out fold is not used to fit the model in that experiment.

    Answer

    testing

  74. 74
    A common summary of k-fold cross-validation results is the
    _____
    accuracy across the experiments.
    Hint

    Combine the performance values from all folds into one representative value.

    Answer

    average

  75. 75
    The scikit-learn function that automatically separates data into training and testing groups is
    _____
    .
    Hint

    Its name describes the two subsets it creates.

    Answer

    train_test_split

  76. 76
    In the banknote data, each row represents one
    _____
    .
    Hint

    The file contains one observation per row.

    Answer

    banknote

  77. 77
    The banknote data contains four input measurements for each data
    _____
    .
    Hint

    Each observation consists of evidence plus a label.

    Answer

    point

  78. 78
    In the banknote data, label 0 represents an authentic bill, while label 1 represents a
    _____
    bill.
    Hint

    The two labels distinguish genuine and fraudulent banknotes.

    Answer

    counterfeit

  79. 79
    In scikit-learn, the model is trained by calling its
    _____
    method with the input data and labels.
    Hint

    This method estimates the model from training examples.

    Answer

    fit

  80. 80
    After training, a scikit-learn model generates outputs for new inputs with its
    _____
    method.
    Hint

    This method produces the model's estimated labels or values.

    Answer

    predict

  81. 81
    The fraction of predictions that match the true labels is the model's
    _____
    .
    Hint

    It measures the proportion of correct classifications.

    Answer

    accuracy

  82. 82
    The scikit-learn class used for a support vector classifier is abbreviated
    _____
    .
    Hint

    These initials stand for support vector classifier.

    Answer

    SVC

  83. 83
    The k-neighbors classifier uses the parameter n-neighbors to specify how many
    _____
    to examine.
    Hint

    The parameter controls the value of k.

    Answer

    neighbors

  84. 84
    Reinforcement learning differs from supervised learning because the agent learns from
    _____
    rather than an initial collection of labeled pairs.
    Hint

    The agent acts, observes outcomes, and improves over time.

    Answer

    experience

  85. 85
    In reinforcement learning, an agent receives numerical rewards or
    _____
    for its actions.
    Hint

    Negative feedback is the opposite of a reward.

    Answer

    punishments

  86. 86
    The world in which a reinforcement learning agent acts is called its
    _____
    .
    Hint

    It supplies states and responds to the agent's actions.

    Answer

    environment

  87. 87
    After an agent takes an action, it generally receives a new state and a numerical
    _____
    .
    Hint

    This value may be positive or negative.

    Answer

    reward

  88. 88
    A Markov decision process represents states, available actions, transition probabilities, and a
    _____
    function.
    Hint

    This function evaluates the outcome of state-action transitions.

    Answer

    reward

  89. 89
    In a Markov decision process, the transition model gives the probability of reaching a next state given a current state and an
    _____
    .
    Hint

    The agent chooses this in the current state.

    Answer

    action

  90. 90
    Q learning estimates the value of taking an action in a particular
    _____
    .
    Hint

    The Q function receives a state and an action as inputs.

    Answer

    state

  91. 91
    Before any experience, Q learning initializes every state-action value to
    _____
    .
    Hint

    The agent initially has no knowledge about the value of its choices.

    Answer

    0

  92. 92
    A Q-learning update considers both the immediate reward and expected
    _____
    rewards.
    Hint

    The value of an action may include benefits received later.

    Answer

    future

  93. 93
    In Q learning, the learning-rate parameter alpha controls the importance of new information relative to
    _____
    information.
    Hint

    Past experiences already contribute to the current Q value.

    Answer

    old

  94. 94
    When alpha equals 1 in the Q-learning update, the new estimate completely replaces the
    _____
    estimate.
    Hint

    A learning rate of one gives all weight to new information.

    Answer

    old

  95. 95
    A greedy policy chooses the action with the
    _____
    estimated Q value in the current state.
    Hint

    It selects the option currently believed to be best.

    Answer

    highest

  96. 96
    Using known actions that are believed to produce good rewards is called
    _____
    .
    Hint

    It uses existing knowledge instead of trying unfamiliar options.

    Answer

    exploitation

  97. 97
    Trying actions that have not been explored thoroughly is called
    _____
    .
    Hint

    The agent gathers information about other possible choices.

    Answer

    exploration

  98. 98
    The epsilon-greedy algorithm chooses a random action with probability
    _____
    .
    Hint

    This parameter controls how often the agent explores.

    Answer

    epsilon

  99. 99
    With probability 1 minus epsilon, epsilon-greedy chooses the estimated
    _____
    action.
    Hint

    This is the exploitation part of the policy.

    Answer

    best

  100. 100
    In Nim, a player may remove one or more objects from exactly
    _____
    pile on a turn.
    Hint

    The player can choose any pile but cannot remove from multiple piles at once.

    Answer

    one

  101. 101
    In the described version of Nim, the player who removes the
    _____
    object loses.
    Hint

    Taking the final remaining object causes defeat.

    Answer

    last

  102. 102
    Function approximation in reinforcement learning estimates Q values using features instead of storing a separate value for every state and
    _____
    .
    Hint

    The exact state-action table becomes impractical in very large spaces.

    Answer

    action

  103. 103
    Unsupervised learning uses data without human-provided
    _____
    .
    Hint

    Unlike supervised learning, the correct categories are not supplied.

    Answer

    labels

  104. 104
    Clustering organizes objects into groups whose members are
    _____
    to one another.
    Hint

    The goal is to place related examples in the same group.

    Answer

    similar

  105. 105
    K-means clustering divides data points into
    _____
    different clusters.
    Hint

    The user chooses this number before running the algorithm.

    Answer

    k

  106. 106
    K-means clustering defines each cluster by its
    _____
    .
    Hint

    This is the middle or average position of the cluster.

    Answer

    center

  107. 107
    During the assignment step of k-means, each point is assigned to the cluster whose center is
    _____
    to it.
    Hint

    The algorithm uses distance between a point and each center.

    Answer

    closest

  108. 108
    During the recentering step, each cluster center is moved to the
    _____
    of the points assigned to it.
    Hint

    The new center reflects the mean location of the cluster's members.

    Answer

    average

  109. 109
    K-means alternates between assigning points and
    _____
    the cluster centers.
    Hint

    The centers are recalculated after points are assigned.

    Answer

    moving

  110. 110
    The k-means process stops when no points change their cluster
    _____
    .
    Hint

    At this point the clustering has reached equilibrium.

    Answer

    assignment

  111. 111
    Clustering can be applied in market research to divide consumers into different
    _____
    .
    Hint

    These groups can help determine which advertisements to target.

    Answer

    groups

  112. 112
    Clustering can be used in image analysis to group pixels into different parts of an
    _____
    .
    Hint

    Pixels with similar properties may form meaningful regions.

    Answer

    image

  113. 113
    Because k-means has no labels, its clusters are discovered from patterns in the
    _____
    itself.
    Hint

    The algorithm relies on the relationships among the observations.

    Answer

    data

1 of 113
Question 1 of 113

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent