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

  • 21Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Traditional vs Machine Learning

Explain the key difference between traditional computer science and machine learning in terms of the role of the programmer.

21 questions

  1. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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)(x_i, y_i)(xi​,yi​), where xix_ixi​ is the feature vector (input) and yiy_iyi​ is the label (output).

    Explanation

    The lecture introduces this notation as the formal setup for supervised learning.

  16. 16

    What does it mean for data to be drawn iid from an unknown distribution PPP?

    Model answer

    Each data point (xi,yi)(x_i, y_i)(xi​,yi​) is independently and identically distributed according to PPP, 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. 17

    What is the goal of supervised learning in terms of the function fff?

    Model answer

    To learn a function f:X→Yf: X \to Yf:X→Y that maps input features xxx to output labels yyy accurately.

    Explanation

    The lecture states that the aim is to find a function from the feature space to the label space.

  18. 18

    What is typically assumed about the feature space XXX in this course?

    Model answer

    The feature space XXX is typically Rd\mathbb{R}^dRd, a ddd-dimensional space of real numbers.

    Explanation

    The lecture specifies that xxx vectors are usually real-valued vectors of dimension ddd.

  19. 19

    List the three common types of label spaces YYY discussed in the lecture, and give an example of each.

    Model answer
    1. Binary classification: Y={0,1}Y = \{0,1\}Y={0,1} (or {−1,+1}\{-1,+1\}{−1,+1}), e.g., spam vs. not spam. 2. Multi-class classification: Y={1,…,K}Y = \{1,\dots,K\}Y={1,…,K}, e.g., news categories (sports, politics). 3. Regression: Y=RY = \mathbb{R}Y=R, e.g., house price prediction.

    Explanation

    The lecture provides these examples to illustrate different prediction tasks.

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

1 of 21
Question 1 of 21

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent