Machine Learning Introduction
- 20Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
In traditional computer science, what is the role of the programmer?
In traditional computer science, what is the role of the programmer?
20 questions
- 1
In traditional computer science, what is the role of the programmer?
- A
The programmer provides a set of labeled examples from which the program learns.
- B
The programmer designs a learning algorithm that automatically generates code.
- C
The programmer defines a performance measure and lets the computer optimize it.
- D
The programmer writes a program that takes input data and generates the desired output.
Correct answer
DThe programmer writes a program that takes input data and generates the desired output.
Explanation
In traditional computer science, the programmer writes a program that directly processes input data to produce output, as described in the lecture with the MP3 example.
- A
- 2
What is the key difference between traditional computer science and machine learning according to the lecture?
- A
Machine learning requires less data than traditional approaches.
- B
Machine learning replaces the programmer with a learning algorithm that outputs a program from data.
- C
Traditional computer science cannot handle images, but machine learning can.
- D
Machine learning uses logic while traditional computer science uses statistics.
Correct answer
BMachine learning replaces the programmer with a learning algorithm that outputs a program from data.
Explanation
The lecture explains that in machine learning, the algorithm crunches data and outputs a program, replacing the programmer who would manually write the program in traditional CS.
- A
- 3
According to Tom Mitchell's formal definition (1997), a computer program learns if:
- A
Its performance at tasks in T, as measured by P, improves with experience E.
- B
It can generate human-like responses to queries.
- C
It can store a large database of examples from experience.
- D
It can process data faster with more experience.
Correct answer
AIts performance at tasks in T, as measured by P, improves with experience E.
Explanation
The lecture cites Mitchell's definition: a computer program is said to learn from experience E with respect to tasks T and performance measure P if its performance at T as measured by P improves with E.
- A
- 4
What is the 'AI winter' as described in the lecture?
- A
The widespread adoption of AI in winter-related industries.
- B
A period when funding for AI research collapsed after initial excitement and subsequent disillusionment.
- C
A cooling system needed for early computers used in AI research.
- D
The time of year when AI conferences were held in cold climates.
Correct answer
BA period when funding for AI research collapsed after initial excitement and subsequent disillusionment.
Explanation
The lecture describes the AI winter as a period after the initial AI boom when funding collapsed, partly due to Minsky and Papert's criticism of the perceptron's limitations.
- A
- 5
What was the significance of Minsky and Papert's book for machine learning?
- A
It introduced the backpropagation algorithm for neural networks.
- B
It proposed the first formal definition of machine learning.
- C
It proved that neural networks could solve any problem given enough data.
- D
It showed that the single-layer perceptron could not learn the XOR function, leading to reduced funding for AI.
Correct answer
DIt showed that the single-layer perceptron could not learn the XOR function, leading to reduced funding for AI.
Explanation
Minsky and Papert analyzed the perceptron and demonstrated it could not learn the XOR dataset, a simple but crucial limitation that contributed to the AI winter.
- A
- 6
What was the first algorithm that learned from experience, according to the lecture?
- A
Rosenblatt's perceptron (1957)
- B
Samuel's checker player (1952)
- C
Minsky and Papert's XOR analysis
- D
Tesauro's backgammon program (1994)
Correct answer
BSamuel's checker player (1952)
Explanation
The lecture states that arguably the first algorithm to learn from experience was Samuel's checker player in 1952, though it was not what we consider machine learning today.
- A
- 7
Who invented the perceptron in 1957?
- A
Jerry Tesauro
- B
Frank Rosenblatt
- C
Tom Mitchell
- D
Minsky and Papert
Correct answer
BFrank Rosenblatt
Explanation
The lecture credits Frank Rosenblatt from Cornell with inventing the perceptron in 1957, which is the basis of modern neural networks.
- A
- 8
What achievement is Jerry Tesauro's backgammon program known for?
- A
It was the first program to achieve superhuman performance in chess.
- B
It used reinforcement learning to play against itself and defeated the world champion.
- C
It was the first program to use the minimax algorithm for board games.
- D
It used a rules-based AI to defeat the world champion.
Correct answer
BIt used reinforcement learning to play against itself and defeated the world champion.
Explanation
Tesauro's program used a neural network trained by playing against itself (reinforcement learning) and eventually beat the world backgammon champion, discovering a new opening.
- A
- 9
Which game was the first formal problem that machine learning addressed, according to the lecture?
- A
Go
- B
Checkers
- C
Chess
- D
Backgammon
Correct answer
BCheckers
Explanation
Checkers was used as a benchmark for AI early on; Samuel's checker player in 1952 was the first learning algorithm, and checkers is now a solved game.
- A
- 10
What do the three main types of machine learning mentioned in the lecture include?
- A
Deep learning, shallow learning, and transfer learning
- B
Classification, regression, and clustering
- C
Supervised learning, unsupervised learning, and reinforcement learning
- D
Neural networks, decision trees, and support vector machines
Correct answer
CSupervised learning, unsupervised learning, and reinforcement learning
Explanation
The lecture explicitly lists supervised learning, unsupervised learning, and reinforcement learning as the three main types.
- A
- 11
In supervised learning, what is the nature of the training data?
- A
Data points are generated by the algorithm itself during learning.
- B
Data points are only used for evaluation, not for training.
- C
Data points are provided without any labels, and the algorithm finds patterns.
- D
Data points are paired with their corresponding labels or desired outputs.
Correct answer
DData points are paired with their corresponding labels or desired outputs.
Explanation
Supervised learning uses labeled data, where each input has a known output (label), as in the fMRI example where images are labeled with Alzheimer diagnosis.
- A
- 12
What is an example of reinforcement learning given in the lecture?
- A
Spam filtering using labeled emails
- B
Recognizing faces in images
- C
Tesauro's backgammon program playing against itself
- D
Clustering news articles into topics
Correct answer
CTesauro's backgammon program playing against itself
Explanation
Reinforcement learning involves delayed feedback; Tesauro's program played games and at the end received a win/loss signal, which is reinforcement learning.
- A
- 13
What is the input space for features in this class, as mentioned in the lecture?
- A
The feature space is typically Rd (d-dimensional real numbers)
- B
The feature space is any arbitrary set without structure
- C
The feature space is the set of all strings
- D
The feature space is a discrete set of symbols
Correct answer
AThe feature space is typically Rd (d-dimensional real numbers)
Explanation
The lecture states that in this class, X comes from a d-dimensional space of real numbers (Rd).
- A
- 14
What assumption is often made about the data points in supervised learning?
- A
They are all drawn from different distributions
- B
They are arranged in a time series and dependent on each other
- C
They are independent and identically distributed (iid) from an unknown distribution P
- D
They are labeled correctly by an oracle
Correct answer
CThey are independent and identically distributed (iid) from an unknown distribution P
Explanation
The lecture assumes the data points are iid (independent and identically distributed) from some distribution P, which is unknown.
- A
- 15
In binary classification, what are common label values?
- A
{0,1,2,3,4,5,6,7,8,9}
- B
A set of K different classes
- C
{0,1} or {−1,+1}
- D
Any real number
Correct answer
C{0,1} or {−1,+1}
Explanation
Binary classification has two classes, typically encoded as 0/1 or -1/+1, as in the spam filtering example.
- A
- 16
What is the label space for multi-class classification?
- A
A set of binary values
- B
A finite set of K classes, such as {1,2,3,…,K}
- C
A continuous range of values
- D
A single real number
Correct answer
BA finite set of K classes, such as {1,2,3,…,K}
Explanation
The lecture describes multi-class classification where Y is one of K different classes, e.g., sports, politics, tech.
- A
- 17
What is regression in machine learning?
- A
Grouping similar data points into clusters
- B
Predicting a real-valued output (a number) from features
- C
Predicting a class label from features
- D
Learning from reinforcement signals
Correct answer
BPredicting a real-valued output (a number) from features
Explanation
Regression is when Y is continuous (real numbers), used to predict things like house prices.
- A
- 18
What is the 'bag of words' representation for text documents?
- A
A vector of word counts, ignoring word order
- B
A sequence of words in the order they appear
- C
A compressed representation using n-grams with position information
- D
A binary vector indicating presence or absence of each word in order
Correct answer
AA vector of word counts, ignoring word order
Explanation
The bag of words representation counts occurrences of each word in a document, disregarding order, and works surprisingly well for tasks like spam filtering.
- A
- 19
Why is machine learning particularly useful for spam filtering?
- A
Because email is always sent in a standard format
- B
Because users never change their definition of spam
- C
Because spam emails are always the same
- D
Because spam is adversarial and changes over time, requiring adaptive filters
Correct answer
DBecause spam is adversarial and changes over time, requiring adaptive filters
Explanation
The lecture notes that spammers constantly adapt, so a fixed program would fail; machine learning can adapt by retraining on new data, making it ideal.
- A
- 20
What is the goal of supervised learning, as formalized in the lecture?
- A
To find clusters in unlabeled data
- B
To learn a function that maps from features X to labels Y using labeled training data
- C
To maximize a reward signal from interactions with the environment
- D
To generate new data points that look like the training data
Correct answer
BTo learn a function that maps from features X to labels Y using labeled training data
Explanation
Supervised learning aims to learn a function from input X to output Y using pairs (xi, yi) from an unknown distribution.
- A

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