Machine Learning Course Intro
- 22Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary prerequisite knowledge required for this course according to the lecture?
What is the primary prerequisite knowledge required for this course according to the lecture?
22 questions
- 1
What is the primary prerequisite knowledge required for this course according to the lecture?
- A
Statistics, calculus, and Java programming
- B
Only probability and linear algebra, no programming needed
- C
Probability, linear algebra, and programming in Python with NumPy
- D
Only programming in C++ and linear algebra
Correct answer
CProbability, linear algebra, and programming in Python with NumPy
Explanation
The lecture specifies prerequisites: probability (distribution, random variables, expectation, conditional probability, variance), linear algebra (matrix specification, eigenvectors), and programming (Python and NumPy).
- A
- 2
According to the honor code described, what is permitted when working on homework?
- A
Working alone and not discussing with anyone
- B
Using any online solution as long as you modify it slightly
- C
Discussing problems in groups but writing solutions independently and citing collaborators
- D
Copying solutions from previous years as long as you understand them
Correct answer
CDiscussing problems in groups but writing solutions independently and citing collaborators
Explanation
The lecture states: discuss homework problems in groups but write solutions independently and list the names of collaborators. Copying from previous years is a violation.
- A
- 3
Why are late days not allowed for the final project?
- A
Because the grading deadline is very tight, especially for graduating students
- B
Because the project is optional and can be submitted anytime
- C
Because the TAs are not available after the end of the quarter
- D
Because the course has no final exam so grading is easier
Correct answer
ABecause the grading deadline is very tight, especially for graduating students
Explanation
The lecture explains that the grading deadline is tight, especially for spring quarter, and to avoid conflict with homework deadlines, no late days are allowed for the final project.
- A
- 4
Which of the following is NOT a component of the course grading?
- A
Final exam
- B
Homework assignments
- C
Course project
- D
Midterm
Correct answer
AFinal exam
Explanation
The lecture explicitly states: there is no final exam. The grading components are homeworks, midterm, and course project.
- A
- 5
What is the purpose of the discussion sections led by TAs?
- A
To cover advanced topics not required for the course
- B
To review basic programming and math prerequisites
- C
To allow students to give presentations on machine learning topics
- D
To create a smaller, interactive setting and bridge the gap between lectures and homework
Correct answer
DTo create a smaller, interactive setting and bridge the gap between lectures and homework
Explanation
The lecture says discussion sections aim to imitate traditional classroom settings, work through problems similar to homework, and make homework easier.
- A
- 6
According to Arthur Samuel's definition, what is machine learning?
- A
The use of statistical models to make predictions from data
- B
The field of study that gives computers the ability to learn without being explicitly programmed
- C
The process of programming computers to perform specific tasks
- D
The study of algorithms that improve automatically through experience
Correct answer
BThe field of study that gives computers the ability to learn without being explicitly programmed
Explanation
The lecture quotes Samuel (1959): machine learning gives computers the ability to learn without being explicitly programmed.
- A
- 7
In Tom Mitchell's definition of machine learning, what does the experience E refer to?
- A
The data used to train the algorithm
- B
The computational resources available for training
- C
The class of tasks the algorithm is designed to perform
- D
The performance measure used to evaluate the algorithm
Correct answer
AThe data used to train the algorithm
Explanation
Mitchell's definition: a program learns from experience E with respect to tasks T and performance measure P. The lecture equates experience with data (e.g., games played in checkers).
- A
- 8
What distinguishes supervised learning from unsupervised learning?
- A
Supervised learning is only for classification; unsupervised learning is for regression
- B
Supervised learning uses neural networks; unsupervised learning uses decision trees
- C
Supervised learning requires reinforcement signals; unsupervised learning does not
- D
Supervised learning uses labeled data; unsupervised learning does not
Correct answer
DSupervised learning uses labeled data; unsupervised learning does not
Explanation
The lecture defines supervised learning as having labeled data (input-output pairs) and unsupervised learning as having only inputs without labels.
- A
- 9
In the context of supervised learning, what are features?
- A
The output labels we want to predict
- B
The performance metrics of the model
- C
The input variables used to make predictions
- D
The number of training examples
Correct answer
CThe input variables used to make predictions
Explanation
The lecture uses the house price example: features are the input dimensions like size and lot size (e.g., x1, x2). They are also called inputs.
- A
- 10
Which of the following is an example of a regression problem?
- A
Predicting the price of a house given its square footage
- B
Classifying an email as spam or not spam
- C
Identifying the type of animal in an image
- D
Translating a sentence from English to French
Correct answer
APredicting the price of a house given its square footage
Explanation
Regression involves predicting a continuous real-valued output. House price is continuous, while the others involve discrete classes or sequences.
- A
- 11
What is the notation used in the lecture for the i-th training example's j-th feature?
- A
xji
- B
xi(j)
- C
xi,j
- D
xj(i)
Correct answer
Dxj(i)
Explanation
The lecture uses superscript for example index and subscript for feature index: xj(i).
- A
- 12
What is overfitting in machine learning?
- A
When a model is too simple to fit the training data
- B
When a model learns noise in the training data and performs poorly on new data
- C
When a model cannot capture the complexity of the training data
- D
When a model achieves perfect accuracy on the training set
Correct answer
BWhen a model learns noise in the training data and performs poorly on new data
Explanation
The lecture mentions that using too many features can cause overfitting: you may be confused by too much information and select something that is not important.
- A
- 13
Which dataset is credited with helping deep learning take off in the last decade?
- A
Wikipedia
- B
CIFAR-10
- C
ImageNet
- D
MNIST
Correct answer
CImageNet
Explanation
The lecture explicitly says ImageNet, created by Stanford researchers, is the dataset that helped deep learning take off in the last 5-10 years.
- A
- 14
In unsupervised learning, what is the main goal?
- A
To maximize a reward signal from the environment
- B
To predict a label for each input
- C
To learn a mapping from inputs to outputs using labeled data
- D
To discover interesting structure in data without labels
Correct answer
DTo discover interesting structure in data without labels
Explanation
The lecture states unsupervised learning aims to discover hidden structure in data without knowledge of labels.
- A
- 15
Which algorithm is mentioned as a classic method for clustering?
- A
Backpropagation
- B
Linear regression
- C
Q-learning
- D
K-means clustering
Correct answer
DK-means clustering
Explanation
The lecture explicitly mentions k-means clustering and mixture of Gaussians as algorithms for discovering structures in unsupervised learning.
- A
- 16
What property do word embeddings capture according to the lecture?
- A
The length of words in characters
- B
Semantic meanings of words, such that similar words have similar vectors
- C
Syntactic roles of words in sentences
- D
The frequency of words in a corpus
Correct answer
BSemantic meanings of words, such that similar words have similar vectors
Explanation
The lecture explains that word embeddings represent words as vectors, where similar words have similar vectors and relationships are encoded in vector directions (e.g., Italy - Rome ≈ France - Paris).
- A
- 17
What is a key characteristic of foundation models like GPT-3?
- A
They are small models that can be trained quickly on a single GPU
- B
They are only useful for natural language generation
- C
They require extensive labeled data for each specific task
- D
They are trained on large unlabeled data and can perform multiple tasks without task-specific training
Correct answer
DThey are trained on large unlabeled data and can perform multiple tasks without task-specific training
Explanation
The lecture describes GPT-3 as a gigantic model trained on unlabeled data (e.g., Wikipedia) that can be used for many tasks like story generation, question answering, and arithmetic with simple prompts.
- A
- 18
In reinforcement learning, what is the primary difference from supervised learning?
- A
Reinforcement learning uses labeled data for training
- B
Reinforcement learning does not involve any feedback
- C
Reinforcement learning is only used for games
- D
Reinforcement learning involves sequential decisions and interactive data collection
Correct answer
DReinforcement learning involves sequential decisions and interactive data collection
Explanation
The lecture emphasizes that reinforcement learning is about making sequential decisions that affect future states, and it often involves an interactive loop where data is collected by trying strategies and observing feedback.
- A
- 19
What is the purpose of the 'experience' in reinforcement learning?
- A
It is the performance measure used to evaluate the agent
- B
It is the initial knowledge given to the agent before learning
- C
It is the data collected by interacting with the environment, used to improve the policy
- D
It is the set of labeled examples provided by a supervisor
Correct answer
CIt is the data collected by interacting with the environment, used to improve the policy
Explanation
In reinforcement learning, the agent collects experience (data) by trying actions and receiving feedback (e.g., rewards), which is then used to update its strategy.
- A
- 20
Why might deployment constraints be important in reinforcement learning?
- A
Because feedback is always available after every action
- B
Because the environment is static and does not change
- C
Because changing the strategy too often can be risky or costly, e.g., in a nuclear plant
- D
Because the agent must always act optimally immediately
Correct answer
CBecause changing the strategy too often can be risky or costly, e.g., in a nuclear plant
Explanation
The lecture gives the example of a nuclear plant: you cannot constantly change the strategy due to safety and efficiency; you might deploy a new strategy only after sufficient experimentation.
- A
- 21
What is the role of deep learning in machine learning according to the lecture?
- A
It is a method for unsupervised clustering
- B
It is a technique (neural networks) that can be used with supervised, unsupervised, and reinforcement learning
- C
It is a separate branch of machine learning only for image processing
- D
It is a type of reinforcement learning algorithm
Correct answer
BIt is a technique (neural networks) that can be used with supervised, unsupervised, and reinforcement learning
Explanation
The lecture says deep learning uses neural networks as a model parametrization and can be combined with all types of tasks (supervised, unsupervised, reinforcement).
- A
- 22
What is the purpose of the guest lecture on robustness and fairness?
- A
To present the mathematical foundations of reinforcement learning
- B
To cover deep learning architectures in detail
- C
To discuss societal issues arising from machine learning, such as fairness and robustness
- D
To teach advanced optimization techniques
Correct answer
CTo discuss societal issues arising from machine learning, such as fairness and robustness
Explanation
The lecture mentions a guest lecture by James on fairness and robustness of ML models, addressing societal impact.
- A

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