1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning Course Intro

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Machine Learning Course Intro

  • 22Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Course Logistics & Prerequisites

What is the primary prerequisite knowledge required for this course according to the lecture?

22 questions

  1. 1

    What is the primary prerequisite knowledge required for this course according to the lecture?

    1. A

      Statistics, calculus, and Java programming

    2. B

      Only probability and linear algebra, no programming needed

    3. C

      Probability, linear algebra, and programming in Python with NumPy

    4. D

      Only programming in C++ and linear algebra

    Correct answer
    C

    Probability, 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).

  2. 2

    According to the honor code described, what is permitted when working on homework?

    1. A

      Working alone and not discussing with anyone

    2. B

      Using any online solution as long as you modify it slightly

    3. C

      Discussing problems in groups but writing solutions independently and citing collaborators

    4. D

      Copying solutions from previous years as long as you understand them

    Correct answer
    C

    Discussing 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.

  3. 3

    Why are late days not allowed for the final project?

    1. A

      Because the grading deadline is very tight, especially for graduating students

    2. B

      Because the project is optional and can be submitted anytime

    3. C

      Because the TAs are not available after the end of the quarter

    4. D

      Because the course has no final exam so grading is easier

    Correct answer
    A

    Because 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.

  4. 4

    Which of the following is NOT a component of the course grading?

    1. A

      Final exam

    2. B

      Homework assignments

    3. C

      Course project

    4. D

      Midterm

    Correct answer
    A

    Final exam

    Explanation

    The lecture explicitly states: there is no final exam. The grading components are homeworks, midterm, and course project.

  5. 5

    What is the purpose of the discussion sections led by TAs?

    1. A

      To cover advanced topics not required for the course

    2. B

      To review basic programming and math prerequisites

    3. C

      To allow students to give presentations on machine learning topics

    4. D

      To create a smaller, interactive setting and bridge the gap between lectures and homework

    Correct answer
    D

    To 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.

  6. 6

    According to Arthur Samuel's definition, what is machine learning?

    1. A

      The use of statistical models to make predictions from data

    2. B

      The field of study that gives computers the ability to learn without being explicitly programmed

    3. C

      The process of programming computers to perform specific tasks

    4. D

      The study of algorithms that improve automatically through experience

    Correct answer
    B

    The 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.

  7. 7

    In Tom Mitchell's definition of machine learning, what does the experience E refer to?

    1. A

      The data used to train the algorithm

    2. B

      The computational resources available for training

    3. C

      The class of tasks the algorithm is designed to perform

    4. D

      The performance measure used to evaluate the algorithm

    Correct answer
    A

    The 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).

  8. 8

    What distinguishes supervised learning from unsupervised learning?

    1. A

      Supervised learning is only for classification; unsupervised learning is for regression

    2. B

      Supervised learning uses neural networks; unsupervised learning uses decision trees

    3. C

      Supervised learning requires reinforcement signals; unsupervised learning does not

    4. D

      Supervised learning uses labeled data; unsupervised learning does not

    Correct answer
    D

    Supervised 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.

  9. 9

    In the context of supervised learning, what are features?

    1. A

      The output labels we want to predict

    2. B

      The performance metrics of the model

    3. C

      The input variables used to make predictions

    4. D

      The number of training examples

    Correct answer
    C

    The 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., x1x_1x1​, x2x_2x2​). They are also called inputs.

  10. 10

    Which of the following is an example of a regression problem?

    1. A

      Predicting the price of a house given its square footage

    2. B

      Classifying an email as spam or not spam

    3. C

      Identifying the type of animal in an image

    4. D

      Translating a sentence from English to French

    Correct answer
    A

    Predicting 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.

  11. 11

    What is the notation used in the lecture for the iii-th training example's jjj-th feature?

    1. A

      xjix^i_jxji​

    2. B

      xi(j)x_i^{(j)}xi(j)​

    3. C

      xi,jx_{i,j}xi,j​

    4. D

      xj(i)x^{(i)}_jxj(i)​

    Correct answer
    D

    xj(i)x^{(i)}_jxj(i)​

    Explanation

    The lecture uses superscript for example index and subscript for feature index: xj(i)x^{(i)}_jxj(i)​.

  12. 12

    What is overfitting in machine learning?

    1. A

      When a model is too simple to fit the training data

    2. B

      When a model learns noise in the training data and performs poorly on new data

    3. C

      When a model cannot capture the complexity of the training data

    4. D

      When a model achieves perfect accuracy on the training set

    Correct answer
    B

    When 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.

  13. 13

    Which dataset is credited with helping deep learning take off in the last decade?

    1. A

      Wikipedia

    2. B

      CIFAR-10

    3. C

      ImageNet

    4. D

      MNIST

    Correct answer
    C

    ImageNet

    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.

  14. 14

    In unsupervised learning, what is the main goal?

    1. A

      To maximize a reward signal from the environment

    2. B

      To predict a label for each input

    3. C

      To learn a mapping from inputs to outputs using labeled data

    4. D

      To discover interesting structure in data without labels

    Correct answer
    D

    To discover interesting structure in data without labels

    Explanation

    The lecture states unsupervised learning aims to discover hidden structure in data without knowledge of labels.

  15. 15

    Which algorithm is mentioned as a classic method for clustering?

    1. A

      Backpropagation

    2. B

      Linear regression

    3. C

      Q-learning

    4. D

      K-means clustering

    Correct answer
    D

    K-means clustering

    Explanation

    The lecture explicitly mentions k-means clustering and mixture of Gaussians as algorithms for discovering structures in unsupervised learning.

  16. 16

    What property do word embeddings capture according to the lecture?

    1. A

      The length of words in characters

    2. B

      Semantic meanings of words, such that similar words have similar vectors

    3. C

      Syntactic roles of words in sentences

    4. D

      The frequency of words in a corpus

    Correct answer
    B

    Semantic 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).

  17. 17

    What is a key characteristic of foundation models like GPT-3?

    1. A

      They are small models that can be trained quickly on a single GPU

    2. B

      They are only useful for natural language generation

    3. C

      They require extensive labeled data for each specific task

    4. D

      They are trained on large unlabeled data and can perform multiple tasks without task-specific training

    Correct answer
    D

    They 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.

  18. 18

    In reinforcement learning, what is the primary difference from supervised learning?

    1. A

      Reinforcement learning uses labeled data for training

    2. B

      Reinforcement learning does not involve any feedback

    3. C

      Reinforcement learning is only used for games

    4. D

      Reinforcement learning involves sequential decisions and interactive data collection

    Correct answer
    D

    Reinforcement 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.

  19. 19

    What is the purpose of the 'experience' in reinforcement learning?

    1. A

      It is the performance measure used to evaluate the agent

    2. B

      It is the initial knowledge given to the agent before learning

    3. C

      It is the data collected by interacting with the environment, used to improve the policy

    4. D

      It is the set of labeled examples provided by a supervisor

    Correct answer
    C

    It 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.

  20. 20

    Why might deployment constraints be important in reinforcement learning?

    1. A

      Because feedback is always available after every action

    2. B

      Because the environment is static and does not change

    3. C

      Because changing the strategy too often can be risky or costly, e.g., in a nuclear plant

    4. D

      Because the agent must always act optimally immediately

    Correct answer
    C

    Because 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.

  21. 21

    What is the role of deep learning in machine learning according to the lecture?

    1. A

      It is a method for unsupervised clustering

    2. B

      It is a technique (neural networks) that can be used with supervised, unsupervised, and reinforcement learning

    3. C

      It is a separate branch of machine learning only for image processing

    4. D

      It is a type of reinforcement learning algorithm

    Correct answer
    B

    It 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).

  22. 22

    What is the purpose of the guest lecture on robustness and fairness?

    1. A

      To present the mathematical foundations of reinforcement learning

    2. B

      To cover deep learning architectures in detail

    3. C

      To discuss societal issues arising from machine learning, such as fairness and robustness

    4. D

      To teach advanced optimization techniques

    Correct answer
    C

    To 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.

Question 1 of 22
Question 1 of 22

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent