1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning Introduction

Study methods

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

Machine Learning Introduction

  • 20Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Introduction to Machine Learning

In traditional computer science, what is the role of the programmer?

20 questions

  1. 1

    In traditional computer science, what is the role of the programmer?

    1. A

      The programmer provides a set of labeled examples from which the program learns.

    2. B

      The programmer designs a learning algorithm that automatically generates code.

    3. C

      The programmer defines a performance measure and lets the computer optimize it.

    4. D

      The programmer writes a program that takes input data and generates the desired output.

    Correct answer
    D

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

  2. 2

    What is the key difference between traditional computer science and machine learning according to the lecture?

    1. A

      Machine learning requires less data than traditional approaches.

    2. B

      Machine learning replaces the programmer with a learning algorithm that outputs a program from data.

    3. C

      Traditional computer science cannot handle images, but machine learning can.

    4. D

      Machine learning uses logic while traditional computer science uses statistics.

    Correct answer
    B

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

  3. 3

    According to Tom Mitchell's formal definition (1997), a computer program learns if:

    1. A

      Its performance at tasks in T, as measured by P, improves with experience E.

    2. B

      It can generate human-like responses to queries.

    3. C

      It can store a large database of examples from experience.

    4. D

      It can process data faster with more experience.

    Correct answer
    A

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

  4. 4

    What is the 'AI winter' as described in the lecture?

    1. A

      The widespread adoption of AI in winter-related industries.

    2. B

      A period when funding for AI research collapsed after initial excitement and subsequent disillusionment.

    3. C

      A cooling system needed for early computers used in AI research.

    4. D

      The time of year when AI conferences were held in cold climates.

    Correct answer
    B

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

  5. 5

    What was the significance of Minsky and Papert's book for machine learning?

    1. A

      It introduced the backpropagation algorithm for neural networks.

    2. B

      It proposed the first formal definition of machine learning.

    3. C

      It proved that neural networks could solve any problem given enough data.

    4. D

      It showed that the single-layer perceptron could not learn the XOR function, leading to reduced funding for AI.

    Correct answer
    D

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

  6. 6

    What was the first algorithm that learned from experience, according to the lecture?

    1. A

      Rosenblatt's perceptron (1957)

    2. B

      Samuel's checker player (1952)

    3. C

      Minsky and Papert's XOR analysis

    4. D

      Tesauro's backgammon program (1994)

    Correct answer
    B

    Samuel'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.

  7. 7

    Who invented the perceptron in 1957?

    1. A

      Jerry Tesauro

    2. B

      Frank Rosenblatt

    3. C

      Tom Mitchell

    4. D

      Minsky and Papert

    Correct answer
    B

    Frank Rosenblatt

    Explanation

    The lecture credits Frank Rosenblatt from Cornell with inventing the perceptron in 1957, which is the basis of modern neural networks.

  8. 8

    What achievement is Jerry Tesauro's backgammon program known for?

    1. A

      It was the first program to achieve superhuman performance in chess.

    2. B

      It used reinforcement learning to play against itself and defeated the world champion.

    3. C

      It was the first program to use the minimax algorithm for board games.

    4. D

      It used a rules-based AI to defeat the world champion.

    Correct answer
    B

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

  9. 9

    Which game was the first formal problem that machine learning addressed, according to the lecture?

    1. A

      Go

    2. B

      Checkers

    3. C

      Chess

    4. D

      Backgammon

    Correct answer
    B

    Checkers

    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.

  10. 10

    What do the three main types of machine learning mentioned in the lecture include?

    1. A

      Deep learning, shallow learning, and transfer learning

    2. B

      Classification, regression, and clustering

    3. C

      Supervised learning, unsupervised learning, and reinforcement learning

    4. D

      Neural networks, decision trees, and support vector machines

    Correct answer
    C

    Supervised learning, unsupervised learning, and reinforcement learning

    Explanation

    The lecture explicitly lists supervised learning, unsupervised learning, and reinforcement learning as the three main types.

  11. 11

    In supervised learning, what is the nature of the training data?

    1. A

      Data points are generated by the algorithm itself during learning.

    2. B

      Data points are only used for evaluation, not for training.

    3. C

      Data points are provided without any labels, and the algorithm finds patterns.

    4. D

      Data points are paired with their corresponding labels or desired outputs.

    Correct answer
    D

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

  12. 12

    What is an example of reinforcement learning given in the lecture?

    1. A

      Spam filtering using labeled emails

    2. B

      Recognizing faces in images

    3. C

      Tesauro's backgammon program playing against itself

    4. D

      Clustering news articles into topics

    Correct answer
    C

    Tesauro'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.

  13. 13

    What is the input space for features in this class, as mentioned in the lecture?

    1. A

      The feature space is typically Rd\mathbb{R}^dRd (d-dimensional real numbers)

    2. B

      The feature space is any arbitrary set without structure

    3. C

      The feature space is the set of all strings

    4. D

      The feature space is a discrete set of symbols

    Correct answer
    A

    The feature space is typically Rd\mathbb{R}^dRd (d-dimensional real numbers)

    Explanation

    The lecture states that in this class, X comes from a d-dimensional space of real numbers (Rd\mathbb{R}^dRd).

  14. 14

    What assumption is often made about the data points in supervised learning?

    1. A

      They are all drawn from different distributions

    2. B

      They are arranged in a time series and dependent on each other

    3. C

      They are independent and identically distributed (iid) from an unknown distribution PPP

    4. D

      They are labeled correctly by an oracle

    Correct answer
    C

    They are independent and identically distributed (iid) from an unknown distribution PPP

    Explanation

    The lecture assumes the data points are iid (independent and identically distributed) from some distribution P, which is unknown.

  15. 15

    In binary classification, what are common label values?

    1. A

      {0,1,2,3,4,5,6,7,8,9}\{0, 1, 2, 3, 4, 5, 6, 7, 8, 9\}{0,1,2,3,4,5,6,7,8,9}

    2. B

      A set of KKK different classes

    3. C

      {0,1}\{0, 1\}{0,1} or {−1,+1}\{-1, +1\}{−1,+1}

    4. D

      Any real number

    Correct answer
    C

    {0,1}\{0, 1\}{0,1} or {−1,+1}\{-1, +1\}{−1,+1}

    Explanation

    Binary classification has two classes, typically encoded as 0/1 or -1/+1, as in the spam filtering example.

  16. 16

    What is the label space for multi-class classification?

    1. A

      A set of binary values

    2. B

      A finite set of KKK classes, such as {1,2,3,…,K}\{1,2,3,\ldots,K\}{1,2,3,…,K}

    3. C

      A continuous range of values

    4. D

      A single real number

    Correct answer
    B

    A finite set of KKK classes, such as {1,2,3,…,K}\{1,2,3,\ldots,K\}{1,2,3,…,K}

    Explanation

    The lecture describes multi-class classification where Y is one of K different classes, e.g., sports, politics, tech.

  17. 17

    What is regression in machine learning?

    1. A

      Grouping similar data points into clusters

    2. B

      Predicting a real-valued output (a number) from features

    3. C

      Predicting a class label from features

    4. D

      Learning from reinforcement signals

    Correct answer
    B

    Predicting a real-valued output (a number) from features

    Explanation

    Regression is when Y is continuous (real numbers), used to predict things like house prices.

  18. 18

    What is the 'bag of words' representation for text documents?

    1. A

      A vector of word counts, ignoring word order

    2. B

      A sequence of words in the order they appear

    3. C

      A compressed representation using n-grams with position information

    4. D

      A binary vector indicating presence or absence of each word in order

    Correct answer
    A

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

  19. 19

    Why is machine learning particularly useful for spam filtering?

    1. A

      Because email is always sent in a standard format

    2. B

      Because users never change their definition of spam

    3. C

      Because spam emails are always the same

    4. D

      Because spam is adversarial and changes over time, requiring adaptive filters

    Correct answer
    D

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

  20. 20

    What is the goal of supervised learning, as formalized in the lecture?

    1. A

      To find clusters in unlabeled data

    2. B

      To learn a function that maps from features XXX to labels YYY using labeled training data

    3. C

      To maximize a reward signal from interactions with the environment

    4. D

      To generate new data points that look like the training data

    Correct answer
    B

    To learn a function that maps from features XXX to labels YYY 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.

Question 1 of 20
Question 1 of 20

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent