Machine Learning Introduction
- 21Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Explain the key difference between traditional computer science and machine learning in terms of the role of the programmer.
21 questions
- 1
Explain the key difference between traditional computer science and machine learning in terms of the role of the programmer.
Model answer
In traditional CS, the programmer writes a program that directly transforms input data into output. In ML, the programmer provides data and desired outputs, and the algorithm automatically generates a program.
Explanation
This captures the core distinction: traditional CS requires explicit programming of rules, while ML learns from data to produce a program.
- 2
In the machine learning workflow, what are the two main phases called, and what happens in each?
Model answer
Training: the algorithm learns a program from input data and known outputs. Testing: the learned program is used to make predictions on new, unseen data.
Explanation
The lecture contrasts training (building the model) with testing (applying it), as illustrated with the fMRI example.
- 3
What is one advantage of machine learning over traditional programming when solving problems like spam filtering?
Model answer
Machine learning can automatically adapt to new patterns by retraining on new data, whereas a hand-written program would need manual rewriting to handle adversarial changes.
Explanation
The lecture uses spam filtering as an example of adversarial behavior where learning adapts automatically.
- 4
Give the formal definition of machine learning according to Tom Mitchell (1997), including the roles of E, T, and P.
Model answer
A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P if its performance at tasks in T, as measured by P, improves with experience E.
Explanation
This definition from the lecture formalizes learning as improvement with experience.
- 5
What is the short, informal version of Tom Mitchell's definition of machine learning?
Model answer
Machine learning algorithms improve on tasks with experience.
Explanation
The lecturer provided this simplified version for quick understanding.
- 6
Which algorithm from 1952 is considered the first to learn from experience, and for which game was it used?
Model answer
Samuel's checker player (1952) was the first algorithm to learn from experience, used for the game of checkers.
Explanation
The lecture mentions Samuel's checker player as the earliest example of learning algorithms.
- 7
What was the main limitation of the perceptron algorithm when it was invented by Frank Rosenblatt in 1957?
Model answer
The perceptron could only train very small networks due to the limited computational power of computers at that time.
Explanation
The lecture explains that Rosenblatt's design was largely correct, but hardware constraints prevented scaling.
- 8
What specific dataset did Minsky and Papert use to show the limitations of the single-layer perceptron, and what did they prove?
Model answer
They used the XOR dataset and proved that a single-layer perceptron cannot learn to distinguish between the two classes in that dataset.
Explanation
The lecture cites this as the cause of the first AI winter, as the XOR problem is simple yet unsolvable by a single layer.
- 9
How did Gerald Tesauro's backgammon program (1994) improve its performance without human instruction?
Model answer
The program played against itself millions of times, using the outcome (win/loss) as feedback to reinforce or discourage moves via a neural network.
Explanation
This self-play approach is a key example of reinforcement learning highlighted in the lecture.
- 10
What surprising discovery did Tesauro's backgammon program make during its match against the world champion?
Model answer
The program made an unconventional opening move that the world champion initially thought was bad, but it turned out to be a strong move that is now part of backgammon folklore.
Explanation
The lecture emphasizes that ML can discover strategies humans hadn't considered.
- 11
Name the two key differences between AI and machine learning mentioned in the lecture.
Model answer
AI focused on human-like behavior and logic, while machine learning takes a bottom-up approach focused on statistics and optimization.
Explanation
The lecture contrasts the top-down, logic-driven AI with the data-driven, statistical ML.
- 12
What are the three main types of machine learning described in the lecture?
Model answer
Supervised learning, unsupervised learning, and reinforcement learning.
Explanation
The lecture categorizes ML into these three types, with supervised being the focus of the course.
- 13
In supervised learning, what is provided to the algorithm that distinguishes it from unsupervised learning?
Model answer
Supervised learning provides both input data and the correct output labels for each data point.
Explanation
The lecture uses the fMRI example: data with known Alzheimer status (labels) is given, whereas unsupervised learning has no labels.
- 14
Give an example of a real-world application of reinforcement learning from the lecture.
Model answer
Tesauro's backgammon program, which learned by playing against itself and receiving win/loss feedback at the end of each game.
Explanation
Reinforcement learning involves delayed feedback; the backgammon example illustrates this.
- 15
In supervised learning, what does the dataset D consist of, and how is each element denoted?
Model answer
D consists of n pairs (xi,yi), where xi is the feature vector (input) and yi is the label (output).
Explanation
The lecture introduces this notation as the formal setup for supervised learning.
- 16
What does it mean for data to be drawn iid from an unknown distribution P?
Model answer
Each data point (xi,yi) is independently and identically distributed according to P, meaning they are independent and come from the same distribution.
Explanation
The lecture emphasizes that we assume data is iid, which is a common assumption in ML.
- 17
What is the goal of supervised learning in terms of the function f?
Model answer
To learn a function f:X→Y that maps input features x to output labels y accurately.
Explanation
The lecture states that the aim is to find a function from the feature space to the label space.
- 18
What is typically assumed about the feature space X in this course?
Model answer
The feature space X is typically Rd, a d-dimensional space of real numbers.
Explanation
The lecture specifies that x vectors are usually real-valued vectors of dimension d.
- 19
List the three common types of label spaces Y discussed in the lecture, and give an example of each.
Model answer
- Binary classification: Y={0,1} (or {−1,+1}), e.g., spam vs. not spam. 2. Multi-class classification: Y={1,…,K}, e.g., news categories (sports, politics). 3. Regression: Y=R, e.g., house price prediction.
Explanation
The lecture provides these examples to illustrate different prediction tasks.
- 20
Describe how a text document (like an email) can be represented as a feature vector using the bag-of-words model.
Model answer
A vector of word counts is created, where each dimension corresponds to a distinct word in the vocabulary (e.g., English), and the value is how many times that word appears in the document.
Explanation
The lecture explains that word order is ignored, but word counts capture enough information for tasks like spam filtering.
- 21
Give an example of a binary feature and a continuous feature from the patient re-admission prediction example.
Model answer
Binary: gender (male/female). Continuous: age (in years), height (in centimeters), blood pressure.
Explanation
The lecture lists these as types of features used in that medical application.

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