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

Study methods

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

Introduction to Machine Learning

  • 72Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Learning Foundations

How does the classic definition of machine learning distinguish learning from explicit programming?

72 questions

  1. 1

    How does the classic definition of machine learning distinguish learning from explicit programming?

    Model answer

    Machine learning gives computers the ability to learn from data or experience without being explicitly programmed with the solution to each task.

    Explanation

    Rather than writing a specific set of rules for every decision, a model is trained to make predictions or decisions from examples.

  2. 2

    In Mitchell’s definition of machine learning, what do experience EEE, task TTT, and performance measure PPP represent?

    Model answer

    EEE is the experience or data, TTT is the task the program performs, and PPP measures its performance on that task.

    Explanation

    A program learns when its performance on TTT, measured by PPP, improves through experience EEE.

  3. 3

    Why is a performance measure necessary in a learning problem?

    Model answer

    A performance measure defines the goal by indicating how well the model performs, such as through accuracy or winning rate.

    Explanation

    Without a measure of success, there is no clear signal for whether learning has improved the model.

  4. 4

    Give examples of different kinds of experience that can be used to train machine-learning models.

    Model answer

    Experience can include real-world data, web data, human-labeled data, synthetic data, and model-generated thinking tokens.

    Explanation

    In machine learning, experience is a broad term for the information from which a model learns.

  5. 5

    How has the notion of a machine-learning task changed from narrow applications to modern general-purpose models?

    Model answer

    Earlier tasks were often specific, such as image or price prediction, whereas one modern model may be used to perform many different tasks.

    Explanation

    The concept of a task remains useful, but general-purpose models are not limited to one narrowly defined task.

  6. 6

    Why is the common taxonomy of supervised, unsupervised, and reinforcement learning not a universal ground truth?

    Model answer

    The field changes rapidly, and the categories overlap, so the taxonomy is a useful way to organize methods rather than a universally agreed classification.

    Explanation

    Learning approaches can intersect, and the methods and terminology used in the field continue to evolve.

  7. 7

    How can supervised learning function as a method within a broader general-purpose learning system?

    Model answer

    Supervised learning can be used as a training method or tool, such as supervised fine-tuning, even when the broader goal is a general-purpose model.

    Explanation

    A learning paradigm can describe how a model is trained rather than the final goal or capability of the system.

  8. 8

    Why might more training data and longer training be considered evidence of learning?

    Model answer

    If a model improves its performance as it receives more data or training, that improvement indicates that it is learning from experience.

    Explanation

    A larger dataset alone does not establish learning; the relevant sign is improved performance on the task.

  9. 9

    In a game-learning example, how can experience, task, and performance measure be identified?

    Model answer

    Game data or play experience is EEE, playing the game is TTT, and a measure such as winning rate is PPP.

    Explanation

    This example maps the parts of the learning definition onto a concrete setting.

  10. 10

    What is the difference between the traditional process of applying machine learning in a company and the more recent way people interact with models?

    Model answer

    Traditional use often involved data pipelines and model tuning, while recent use can involve directly prompting a model or building skills around it.

    Explanation

    The way people use models has changed, even though the underlying methods for training them remain relevant.

  11. 11

    In a supervised house-price prediction example, what are the input xxx and output yyy?

    Model answer

    xxx represents an input such as the house’s square footage, and yyy represents the output to predict, such as its price.

    Explanation

    Supervised examples pair inputs with corresponding outputs.

  12. 12

    How does a supervised model use training examples to predict a house price for a new property?

    Model answer

    It learns a relationship between house inputs and known prices, then uses the new property’s input values to predict its price.

    Explanation

    At test time, the model is given an input and estimates the corresponding output.

  13. 13

    How can a line or a quadratic function be used in house-price prediction?

    Model answer

    Either function can be fitted to training examples to represent the relationship between square footage and price; the quadratic may fit the data better in some cases.

    Explanation

    The fitted function provides a rule for estimating a price from an input such as square footage.

  14. 14

    Why might square footage alone be insufficient for predicting a house’s price?

    Model answer

    Price may also depend on other inputs, such as lot size, number of floors, condition, and ZIP code.

    Explanation

    Adding relevant properties makes the prediction problem higher-dimensional and can provide more information to the model.

  15. 15

    What do the terms input, feature, output, and label refer to in a supervised-learning example?

    Model answer

    Inputs or features are the values provided to the model; the output is the value to predict, and a label is an output assigned to an input.

    Explanation

    The terms can vary across machine-learning contexts, but they describe the data and target in an input-output pair.

  16. 16

    What is labeling, and who or what can provide labels?

    Model answer

    Labeling means assigning a desired output to an input; labels can be supplied by humans or generated by machines.

    Explanation

    A labeled example provides the output that a supervised method can learn to predict.

  17. 17

    How does regression differ from classification?

    Model answer

    Regression predicts a continuous output, such as a price, while classification predicts a discrete label, such as a category.

    Explanation

    The type of output determines whether a prediction problem is regression or classification.

  18. 18

    Why is deciding whether a property is a house or a townhouse a classification problem?

    Model answer

    The model selects between discrete categories, such as “house” and “townhouse,” rather than predicting a continuous value.

    Explanation

    A discrete category is a class label, so assigning one to an input is classification.

  19. 19

    How does increasing the number of input features change a prediction problem?

    Model answer

    The input becomes higher-dimensional because the model uses more values to describe each example.

    Explanation

    A property described by several characteristics has more input dimensions than one described only by square footage.

  20. 20

    Can a supervised-learning output itself be high-dimensional? Explain.

    Model answer

    Yes. A model can predict a complex output containing multiple values rather than a single value such as price.

    Explanation

    Both the input and output of a learning problem can have many dimensions.

  21. 21

    What makes image classification a supervised-learning task?

    Model answer

    Each image is an input paired with a label identifying its main object, and the model learns to predict that label.

    Explanation

    The labeled image examples provide input-output pairs for training.

  22. 22

    What are the input and output in an image-classification problem?

    Model answer

    The input is the image’s raw pixels, and the output is a discrete label naming its main object.

    Explanation

    For instance, the label might name an animal shown in the image.

  23. 23

    How can a classifier separate two property categories using two input features?

    Model answer

    It can divide the two-dimensional feature space into regions and assign a category to each region, such as placing houses on one side of a boundary and townhouses on the other.

    Explanation

    A decision boundary separates regions associated with different discrete labels.

  24. 24

    Why can next-token prediction in a language model be viewed as classification?

    Model answer

    The model selects the next token from a set of discrete token choices, so each possible token acts as a class label.

    Explanation

    The task is to predict one discrete option from a vocabulary of possible tokens.

  25. 25

    How does object localization differ from image classification in the form of its output?

    Model answer

    Classification outputs an object label, whereas localization outputs bounding boxes that indicate where objects are in the image.

    Explanation

    A bounding box describes an object’s location, not just its category.

  26. 26

    How can a rectangular bounding box be specified using four numbers?

    Model answer

    Two numbers give the coordinates of the bottom-left corner, and two give the coordinates of the top-right corner.

    Explanation

    Together, the two corner coordinates uniquely identify the box.

  27. 27

    What are the input and output in a machine-translation task?

    Model answer

    The input is text in one language, and the output is its translation into another language.

    Explanation

    Translation is a supervised input-to-output problem in which the output may be a sequence of words.

  28. 28

    What role did a large labeled image dataset such as ImageNet play in the development of image classification?

    Model answer

    It provided a large collection of labeled images for training and evaluating image classifiers, enabling successful learning at a scale that smaller datasets did not support.

    Explanation

    The lecture describes a dataset of roughly one million image-label pairs as unusually large for its time.

  29. 29

    Why was early large-scale image classification considered a narrow task?

    Model answer

    The model’s purpose was to assign a label to an image; it could not answer arbitrary questions about that image.

    Explanation

    A dataset and model designed for one classification task do not automatically provide general-purpose image understanding.

  30. 30

    How did the reported performance of image classifiers change from early systems to later ones?

    Model answer

    The lecture contrasts early accuracy of about 50%50\%50% with later accuracy around 95%95\%95% to 97%97\%97%.

    Explanation

    The figures illustrate substantial performance improvement in image classification over time.

  31. 31

    What is the basic structure of a neural network, and how does the lecture relate it to the brain?

    Model answer

    A neural network consists of interconnected units, with parameters associated with connections; the lecture loosely compares units to neurons and connections to synapses.

    Explanation

    The comparison is an analogy for the network’s connected structure, not a claim that the model is a literal human brain.

  32. 32

    What does a neural network do when given an image in a classification task?

    Model answer

    It processes the image and produces a prediction, such as a label for the image’s main object.

    Explanation

    The network maps an input to an output through its learned parameters.

  33. 33

    What is a loss function used for when training a neural network?

    Model answer

    A loss function measures how poor the model’s predictions are, providing a quantity that training can seek to reduce.

    Explanation

    The loss gives the training process an objective for improving the model.

  34. 34

    Why are gradients important for training a neural network?

    Model answer

    Gradients indicate how the model’s parameters affect the loss and support updates that improve the model.

    Explanation

    Training uses gradient information to adjust parameters in response to prediction errors.

  35. 35

    What does backpropagation compute?

    Model answer

    Backpropagation efficiently computes gradients of the loss with respect to the parameters of a complex network.

    Explanation

    These gradients make it possible to train networks with many interconnected computations.

  36. 36

    What is the relationship between deep learning and the applications discussed in the lecture?

    Model answer

    Deep learning, using neural networks, is presented as a technique that enabled many modern AI applications.

    Explanation

    The lecture connects neural-network training methods to capabilities such as image recognition and language modeling.

  37. 37

    What information is available in an unsupervised-learning dataset, and what is missing?

    Model answer

    The dataset contains inputs but no provided outputs or labels indicating what to predict.

    Explanation

    Without labels, the learner must seek patterns or structure in the inputs themselves.

  38. 38

    Why is the goal of unsupervised learning less precisely defined than the goal of supervised learning?

    Model answer

    There is no specified target output, and what counts as interesting structure depends partly on the method used.

    Explanation

    Different unsupervised techniques can reveal different patterns in the same data.

  39. 39

    What is clustering?

    Model answer

    Clustering groups data points that are considered similar to one another.

    Explanation

    The method identifies group structure without relying on provided class labels.

  40. 40

    How does clustering differ from supervised classification?

    Model answer

    Clustering discovers groups from unlabeled data, while classification learns to assign known labels using labeled examples.

    Explanation

    The key difference is whether target labels are supplied during learning.

  41. 41

    How can unsupervised learning be applied to gene-expression data?

    Model answer

    It can group individuals with similar gene-expression patterns, helping researchers identify types of individuals and investigate associations with diseases or symptoms.

    Explanation

    Patterns across many genes can become clearer when similar profiles are grouped together.

  42. 42

    How can a document-term table be constructed for analyzing a collection of documents?

    Model answer

    Count how often each word appears in each document and place those counts in a table, with documents and words represented along its dimensions.

    Explanation

    A higher count can be represented as a stronger value for that word in that document.

  43. 43

    Why might reordering documents and words reveal patterns in a document-term table?

    Model answer

    Reordering can place documents with similar word-use patterns together, making groups and themes easier to see.

    Explanation

    For example, documents that frequently use words about shuttles and launches may form a related group.

  44. 44

    What does latent semantic analysis (LSA) help identify in documents?

    Model answer

    LSA can reveal groups of related documents and words by finding patterns in word-use data.

    Explanation

    It can expose similarities that are difficult to notice in an unsorted document-term table.

  45. 45

    What is a word embedding?

    Model answer

    A word embedding represents a word as a numerical vector, often in a high-dimensional space.

    Explanation

    The vector representation makes it possible to analyze relationships among words numerically.

  46. 46

    How can distances between word embeddings represent meaning?

    Model answer

    Words with similar meanings can have vectors that are close to one another in the embedding space.

    Explanation

    The lecture gives capital-city names as an example of words with similar vectors.

  47. 47

    How can directions between word embeddings represent relationships between concepts?

    Model answer

    A direction in the embedding space can encode a relationship, such as the relation between a country and its capital.

    Explanation

    Applying a similar direction to different country vectors may point toward their corresponding capital vectors.

  48. 48

    What kind of data was used to learn early word embeddings, and why was it considered unlabeled?

    Model answer

    They were learned from text collections such as Wikipedia, where the text was used without manually supplied labels for each word relationship.

    Explanation

    The learning method extracts representations from the text itself rather than requiring labeled examples for every relationship.

  49. 49

    What makes a large language model general-purpose compared with a model designed to analyze word or document similarity?

    Model answer

    A general-purpose language model can respond to many kinds of prompts, rather than being limited to one narrow task such as finding similar words or documents.

    Explanation

    The distinction is the breadth of tasks the model is intended to handle.

  50. 50

    What is the broad training setup described for large language models?

    Model answer

    They are trained as general-purpose models on massive datasets, often using unlabeled data.

    Explanation

    The scale and broad coverage of the data help support capabilities beyond one narrowly specified task.

  51. 51

    How does prompting affect a language model’s response?

    Model answer

    The wording and clarity of a prompt can affect whether the model produces the intended response.

    Explanation

    Models can differ in how well they follow instructions, and their responsiveness can be improved through training.

  52. 52

    What is instruction tuning intended to improve?

    Model answer

    It trains a model to respond more appropriately to user instructions and prompts.

    Explanation

    Instruction-responsive behavior is learned through training rather than guaranteed by the model’s basic ability to generate text.

  53. 53

    What is the basic idea behind diffusion models for image generation?

    Model answer

    A diffusion model generates realistic images from noise, potentially guided by instructions.

    Explanation

    It learns from image data to produce new images rather than requiring a label for each generated image.

  54. 54

    Why is image generation described as an unsupervised-learning application in the lecture?

    Model answer

    The model can learn from a collection of realistic images without labels specifying a target category for each image.

    Explanation

    The objective is to generate plausible images from the data distribution, not simply assign supplied labels.

  55. 55

    In traditional reinforcement learning, what kind of problem is an agent typically trying to solve?

    Model answer

    It makes a sequence of decisions, choosing actions over time in a setting where current actions can affect future outcomes.

    Explanation

    Tasks such as game playing and robot control involve repeated decisions rather than one isolated prediction.

  56. 56

    Why are the actions in robot walking a sequential decision problem?

    Model answer

    Each movement affects the robot’s later state and options, so an action that causes a fall can prevent successful future movement.

    Explanation

    The consequences of one decision can carry forward into later decisions.

  57. 57

    How does reinforcement learning differ from learning from a fixed dataset?

    Model answer

    Reinforcement learning can alternate between collecting new data through interaction and training, whereas a fixed-dataset method learns from data already provided.

    Explanation

    The agent’s actions can create additional experience for later rounds of learning.

  58. 58

    How does trial and error produce training data in reinforcement learning?

    Model answer

    The agent tries a strategy, receives outcomes or feedback, and records the resulting sequence of actions and observations as experience.

    Explanation

    Even an unsuccessful trial, such as a robot falling, can provide data about what happened.

  59. 59

    How can reinforcement learning support automatic theorem proving?

    Model answer

    A model can generate candidate proofs, have them verified, and use correct proofs as new training data to improve later proof generation.

    Explanation

    Repeatedly generating, checking, and training on correct proofs can create a bootstrapping cycle.

  60. 60

    How can reinforcement learning create a bootstrapping effect in theorem proving?

    Model answer

    Correct generated proofs become training examples, helping the model generate more correct proofs that can be verified and added in subsequent rounds.

    Explanation

    The model’s own successful outputs can expand the data used to improve it.

  61. 61

    How can reinforcement learning be used to improve a language model’s generated text?

    Model answer

    A model generates text from a prompt, a reward source evaluates the text, and the reward guides updates intended to improve future outputs.

    Explanation

    The reward may come from human feedback, a reward model, or another model.

  62. 62

    Why can generating text from a language model be treated as a sequential decision process?

    Model answer

    Each token is generated in turn, and earlier tokens affect the context used to generate later tokens.

    Explanation

    The sequence of token choices creates dependencies across generation steps.

  63. 63

    How does stochastic token generation work?

    Model answer

    At each step, the model produces a probability distribution over possible next tokens and samples one token from it.

    Explanation

    The sampled token is then used as context for generating the next token.

  64. 64

    Why can stochastic sampling make it difficult to train a language model using ordinary backpropagation through the whole generation process?

    Model answer

    Sampling is not a differentiable operation, so gradients cannot always be propagated through the generated-token sequence in the usual way.

    Explanation

    Reinforcement-learning methods can provide a way to train models when generation includes stochastic decisions.

  65. 65

    What is the role of policy-gradient methods in language-model training?

    Model answer

    Policy-gradient methods use reward information to update a model’s stochastic choices, including its generated outputs.

    Explanation

    They are used when the sampling steps make direct differentiation difficult.

  66. 66

    What does reinforcement learning with human feedback (RLHF) use to guide model updates?

    Model answer

    It uses human feedback, often represented through rewards, to guide the model toward more desirable outputs.

    Explanation

    The reward signal evaluates generated text and informs later training.

  67. 67

    How can reinforcement learning collect useful data for robotics?

    Model answer

    A robot can attempt actions, collect trajectories of actions and observations, and train on successful trajectories to improve its behavior.

    Explanation

    The robot’s interaction with its environment provides new experience rather than relying only on a fixed dataset.

  68. 68

    What is the purpose of making machine-learning software and hardware more compatible?

    Model answer

    Better compatibility can make algorithms run more efficiently and reduce the resources and costs required for computation.

    Explanation

    For large-scale systems, even moderate improvements in speed can have substantial practical and economic value.

  69. 69

    Why can a modest speed improvement in a large AI system be economically significant?

    Model answer

    When computation is very expensive, a speed improvement can reduce operating costs and allow work to be completed sooner.

    Explanation

    The benefit grows with the scale and expense of the computation.

  70. 70

    What social impact of AI does the lecture identify as requiring consideration?

    Model answer

    The lecture highlights that AI may replace many jobs, making its social effects important to consider.

    Explanation

    The effects of AI extend beyond technical performance to people and society.

  71. 71

    How are fairness and social impact related to the study of AI?

    Model answer

    They are important considerations because AI systems can affect people and society, not just accomplish technical tasks.

    Explanation

    Evaluating AI includes considering its broader consequences, such as changes to employment.

  72. 72

    Why should training a person to understand machine learning differ from simply generating a solution with an AI tool?

    Model answer

    The aim of learning is to develop the student’s own understanding, so directly submitting tool-generated results would bypass that learning.

    Explanation

    The lecture frames AI tools as potential collaborators while emphasizing that the learner must still build their own knowledge.

1 of 72
Question 1 of 72

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent