Introduction to Machine Learning
- 65Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What common pattern connects many machine-learning applications?
They use data and a method to make a decision or prediction.
Or swipe the card
65 cards
What common pattern connects many machine-learning applications?
They use data and a method to make a decision or prediction.
How can machine learning help identify exoplanets?
It can analyze signals from telescope data to distinguish candidate exoplanets from other phenomena.
How can machine learning support neonatal seizure recognition?
It can analyze EEG data and help decide whether a newborn’s movement indicates a seizure.
How can machine learning be used to analyze Supreme Court petitions?
It can analyze petition text to identify topics or themes across many petitions.
How can machine learning help the Bureau of Labor Statistics classify text?
It can map interview or survey text to codes for occupations or events, such as janitorial work or workplace injuries.
How can machine learning detect phishing emails?
It can classify email text as phishing or not, potentially before the message reaches a user’s inbox.
What is one risk of using machine learning for facial recognition?
A person may be misidentified, potentially leading to serious consequences such as wrongful arrest.
What kinds of information can machine learning use to assess a farmer’s loan application?
It can combine data such as satellite images of the farm and weather information to estimate whether the farm can repay a loan.
Why can machine learning be useful in practical applications?
Automation can save time, effort, and resources, and can make it possible to apply decision-making methods in new areas.
Why should people understand machine learning systems that affect them?
These systems can influence important areas such as medical care, finance, security, and government.
What questions should be asked when someone claims to have a new machine-learning method?
Whether it works, whether it works as intended, what effects it has, and whether it could be improved.
Why is machine learning a tool rather than magic?
It is useful in some situations but not all; its effectiveness depends on the problem and data, and it cannot guarantee accurate predictions.
What does the example of predicting children’s life outcomes illustrate about machine learning?
Even rich data and advanced methods may fail to produce accurate predictions; it is important to understand when a method can or cannot work well.
What is the fundamental foundation of machine learning?
Mathematics; machine-learning methods rely on mathematical concepts and tools.
In a supervised prediction problem, what is the purpose of training data?
It is used to develop a method that can make predictions about future, previously unseen cases.
What does n represent in the training-data setup?
The number of training data points.
What does the index i identify in a dataset?
A particular data point, such as the ith example among n examples.
What is a feature vector x(i)?
The vector of measured features associated with data point i.
What does the dimension d of a feature vector indicate?
The number of features in the vector; the vector lies in Rd.
How is a labeled data point represented?
As a pair consisting of a feature vector and its label, (x(i),y(i)).
What does Dn denote?
The collection of the n training examples, each containing features and a label.
In the newborn-seizure example, what do the labels −1 and 1 represent?
−1 means the newborn did not have a seizure; 1 means the newborn did have a seizure.
What do the two features in the two-dimensional newborn-seizure cartoon represent?
x1 represents how much oxygen the newborn is breathing, and x2 represents how much the newborn is moving.
Why is feature construction a substantive part of a machine-learning problem?
Turning raw observations into useful features can require complex processing and domain-specific decisions; the features are not necessarily directly available.
How many features were used in the referenced neonatal seizure study, and what kind of raw data informed them?
The representation had 55 features derived from complex EEG data.
What is a hypothesis in the binary classification setup?
A function h that maps any feature vector x∈Rd to a label in {−1,1}.
Why is the constant rule h(x)=1 a hypothesis but a poor one for the seizure example?
It is a valid function from inputs to labels, but it predicts that every newborn has a seizure and does not distinguish between cases.
What is a hypothesis class?
A collection or set of hypotheses.
What kinds of rules make up the linear-classifier hypothesis class?
Rules that label one side of a line or hyperplane 1 and the other side −1.
How do the parameters of a linear classifier define its decision boundary?
The vector θ and scalar θ0 define the boundary θTx+θ0=0.
In a linear classifier, what geometric role does θ play?
θ is normal to the decision boundary and determines the direction in which the classifier’s score increases.
What does the dot product θTx produce when θ and x are both d-dimensional column vectors?
A scalar: the product of a 1×d row vector and a d×1 column vector.
How is the projection of x onto θ expressed?
The signed projection is ∥θ∥θTx.
What is the projection of a vector x onto θ when x is perpendicular to θ?
Zero, because x has no component in the direction of θ.
Why does scaling θ by a positive constant leave its projection direction unchanged?
The scaling factor appears in both the dot product and the vector length in ∥θ∥θTx, so it cancels.
What geometric set is described by θTx=0?
The line or hyperplane through the origin consisting of vectors perpendicular to θ.
What does the equation θTx+θ0=0 describe?
A line or hyperplane that serves as the linear classifier’s decision boundary.
How does θ0 affect a linear classifier?
Together with θ, it defines the position of the decision boundary; changing θ0 can shift the boundary.
What labels does the specified linear classifier assign on either side of its boundary?
It assigns 1 when θTx+θ0>0 and −1 when θTx+θ0<0.
What label does the specified classifier assign to points exactly on the decision boundary?
−1. This is a chosen convention for handling boundary points.
Why are θ and θ0 called parameters rather than inputs to h?
They specify which classifier is being used; the input to the classifier is still the feature vector x.
Why is the familiar form y=mx+b not the general definition used for a linear classifier?
Features are represented by x and labels by y; the feature space can have many dimensions, so the boundary is expressed using vectors as θTx+θ0=0.
What does a loss function measure?
The cost of a guess compared with the actual value; it takes a guess and an actual outcome as arguments.
How does loss relate to utility?
Loss can be viewed as negative utility: larger loss is worse, whereas larger utility is better.
How does zero-one loss work for classification?
It is 0 when the predicted label equals the actual label and 1 when they differ.
Why might zero-one loss be inadequate for neonatal seizure prediction?
It treats false positives and false negatives equally, even though missing a real seizure may be much more harmful than incorrectly predicting one.
In the seizure example, what are a false positive and a false negative?
A false positive predicts a seizure when there is none; a false negative predicts no seizure when one is occurring.
Why might a false negative be assigned a larger loss than a false positive in seizure detection?
A false negative may prevent needed medical attention and lead to harmful outcomes, while a false positive may mainly use unnecessary time and resources.
Why must the relative costs of different errors be considered for a particular application?
The consequences of errors differ by application, so the loss function should reflect the relevant trade-offs.
What does test error measure?
The average loss of a classifier on new, future examples, comparing each prediction h(x) with its actual label.
Why can true future test error not be calculated before future examples are observed and labeled?
Calculating it requires the future inputs and their actual outcomes, which are not yet available.
What is training error?
The average loss of a classifier on the available training examples.
How can training error be used to compare two classifiers?
Prefer the classifier with the lower training error, according to the chosen loss function.
Why is choosing the classifier with the lowest training error across an entire hypothesis class not always straightforward?
Finding the minimum may be computationally difficult, especially when the class contains many possible classifiers.
What is the difference between a classifier and a learning algorithm?
A classifier maps an individual input x to a label y; a learning algorithm takes a dataset and returns a classifier.
Why can a learning algorithm return different classifiers for different datasets?
Its output depends on its dataset input, just as a classifier’s output depends on its input feature vector.
What is a hyperparameter?
A setting of the learning algorithm that can be adjusted but is not itself the dataset input or a parameter of the resulting classifier.
In the example search algorithm, what does the hyperparameter k control?
It controls how many candidate classifiers from a pre-generated list are considered.
How does the example learning algorithm choose among its first k candidate classifiers?
It calculates each candidate’s training error and returns the classifier with the smallest error.
What does argmin identify in the example learning algorithm?
The index of the candidate classifier whose training error is smallest.
What classifier does the example algorithm return when k=1?
The first candidate classifier, since it is the only one considered.
How does the minimum training error available with k=2 compare with that for k=1?
It can be no greater, because the first classifier remains available and the second adds another candidate.
What happens to the minimum training error found by the example algorithm as k increases?
It can stay the same or decrease, but cannot increase, because each larger candidate set includes the previous candidates.
Does lower training error as more classifiers are considered guarantee better performance on future data?
No. It only guarantees no worse error on the training data; future performance must be evaluated separately.
What is the central unresolved evaluation challenge in the learning setup?
We want to know how well a classifier will predict future examples, but those examples and their labels are unavailable when the classifier is being chosen.

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