Introduction to Machine Learning
- 67Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
67 questions
- 1In 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.
- 2In 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.
- 3In 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.
- 4To 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.
- 5The 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.
- 6An 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.
- 7In 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.
- 8In 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.
- 9One 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.
- 10Because 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.
- 11When 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.
- 12Machine 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.
- 13A 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.
- 14The 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.
- 15Previously 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.
- 16If a dataset contains n observed examples, n denotes the number of data_____.
Hint
Each observed newborn, for example, contributes one unit to this count.
Answer
points
Explanation
The lecture uses n for the number of data points in the training data.
- 17The index i identifies a particular data_____.
Hint
It distinguishes, for example, the first observation from the second.
Answer
point
Explanation
Data points are indexed from 1 through n, and i indicates which one is being discussed.
- 18The 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) for example i, represents the measurements associated with that data point.
- 19The number of components in a feature vector is its_____.
Hint
The lecture uses d to denote this number.
Answer
dimension
Explanation
A feature vector has d components and is treated as an element of the d-dimensional Euclidean space Rd.
- 20In the mathematical setup, a feature vector x is treated as a_____vector.
Hint
Its dimensions are d by 1.
Answer
column
Explanation
The lecture treats x as a d by 1 column vector; this convention is used when checking matrix dimensions.
- 21The 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 x and y.
- 22In 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.
- 23In the two-feature cartoon, the first feature 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.
- 24In the two-feature cartoon, the second feature 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.
- 25In the cartoon labeling convention, the label 1 means the newborn had a seizure, while −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 1 to a seizure and −1 to no seizure.
- 26The 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 n.
Answer
data
Explanation
The training data collect all feature-label pairs, written abstractly as D(n).
- 27In 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.
- 28A 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 h maps a feature vector from Rd to a label such as −1 or 1.
- 29Any function mapping from Rd to the labels −1 and 1 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.
- 30The constant rule h(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.
- 31A 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, is a collection of hypotheses from which a learning procedure may choose.
- 32A 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 1 on one side and −1 on the other.
- 33In a linear classifier, the vector θ 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 θ to establish a direction; as points move in the direction of θ, their projection onto it becomes more positive.
- 34For column vectors θ and x, the product θ⊤x is a_____.
Hint
A one-by-d matrix multiplied by a d-by-one matrix produces a one-by-one result.
Answer
scalar
Explanation
Since θ⊤ has dimensions 1 by d and x has dimensions d by 1, their product is a one-by-one matrix, or scalar.
- 35The quantity ∥θ∥θ⊤x​ gives the projection of x onto the direction of_____.
Hint
The vector in the denominator sets the direction onto which the point is projected.
Answer
θ
Explanation
Dividing the dot product by the length of θ gives the amount of x in the direction of θ.
- 36If x is perpendicular to θ, its projection onto θ 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​ is zero.
- 37Multiplying θ 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 θ by a positive constant scales both the numerator and denominator of the projection by that constant, leaving the projection value unchanged.
- 38The set of points whose projection onto θ equals zero forms a line (or, in higher dimensions, a hyperplane)_____to θ.
Hint
Every point on it has no component in the direction of θ.
Answer
perpendicular
Explanation
The points satisfying θ⊤x=0 are perpendicular to θ and form the boundary through the origin.
- 39The set of points with a fixed nonzero projection onto θ 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.
- 40The boundary of the linear classifier can be written as the set satisfying θ⊤x+θ(0)=0, where θ(0) is a_____.
Hint
It shifts the decision boundary and is not an input feature.
Answer
constant
Explanation
The constant θ(0) is part of the definition of the decision boundary, together with θ.
- 41The line θ⊤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 and the other where it is less than zero.
- 42Under 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
Explanation
The classifier assigns 1 when θ⊤x+θ(0)>0 and assigns −1 when θ⊤x+θ(0)≤0.
- 43The values θ and θ(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.
- 44The 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 θ and θ(0) gives the hypothesis class of linear classifiers.
- 45A function that measures the cost of a guess g compared with an actual value a is called a_____.
Hint
It quantifies how undesirable a prediction is.
Answer
loss
Explanation
A loss function L takes a guess and an actual value as arguments and measures the cost of the guess.
- 46A 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.
- 47Under 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 0 when the guess equals the actual label and 1 otherwise.
- 48Zero-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.
- 49Predicting 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.
- 50Predicting 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.
- 51When 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.
- 52The 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.
- 53Test 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.
- 54The 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.
- 55When 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.
- 56Finding 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.
- 57A 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 x and returns a label; a learning algorithm acts on a dataset and returns a classifier.
- 58Unlike 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), and returns a classifier.
- 59Applying 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.
- 60A 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 θ helps specify a particular classifier.
- 61In 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.
- 62The 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.
- 63If 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)
Explanation
With k=1, the only candidate considered is h(1), so that is the classifier returned.
- 64When 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.
- 65As 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.
- 66A 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.
- 67The 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.

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