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

  • 74Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: ML Foundations
The classic definition describes machine learning as giving computers the ability to learn without being
programmed.

74 questions

  1. 1
    The classic definition describes machine learning as giving computers the ability to learn without being
    _____
    programmed.
    Hint

    Think of the contrast between learning from data and having a person specify every rule.

    Answer

    explicitly

    Explanation

    The classic definition describes machine learning as enabling computers to learn without being explicitly programmed.

  2. 2
    In Mitchell’s definition of learning, the three components are experience, task, and
    _____
    measure.
    Hint

    This component specifies how success on the task is evaluated.

    Answer

    performance

    Explanation

    A program learns from experience with respect to a task when its performance, measured by a performance measure, improves.

  3. 3
    In Mitchell’s definition, experience is another way to refer broadly to
    _____
    used for learning.
    Hint

    It can include examples gathered from many different sources.

    Answer

    data

    Explanation

    Experience corresponds broadly to data, including human-labeled, real-world, web, or synthetic data.

  4. 4
    A program is said to learn when its performance on a task improves as it gains more
    _____
    .
    Hint

    This is the part of the definition that represents what the system learns from.

    Answer

    experience

    Explanation

    Mitchell’s definition connects learning to improved task performance resulting from experience.

  5. 5
    A performance measure is important because it gives learning a
    _____
    to optimize toward.
    Hint

    Consider what tells a learning process whether it is getting better.

    Answer

    goal

    Explanation

    A performance measure, such as accuracy or winning rate, provides a goal that guides learning.

  6. 6
    For a game-playing system, the game is the task, game data is the experience, and the
    _____
    is a performance measure.
    Hint

    This measure reflects how often the system succeeds in the game.

    Answer

    winning rate

    Explanation

    In the game example, the task is playing the game, experience is data, and winning rate measures performance.

  7. 7
    The lecture identifies
    _____
    and linear algebra as important mathematical prerequisites for machine learning.
    Hint

    This mathematical subject studies uncertainty and random events.

    Answer

    probability

    Explanation

    Probability and linear algebra are important prerequisites for understanding the course material.

  8. 8
    The course emphasizes mathematical derivations and modeling formulations more than
    _____
    .
    Hint

    The emphasis is on understanding algorithmic ideas rather than primarily implementing code.

    Answer

    programming

    Explanation

    The course focuses on mathematical foundations and the ideas behind algorithms, rather than programming practice.

  9. 9
    Under the course AI-tools policy, students cannot copy tool-generated results directly into their
    _____
    .
    Hint

    Think of the work that students turn in for assessment.

    Answer

    submission

    Explanation

    AI tools may be used with restrictions, including not copying their results directly into a submission.

  10. 10
    The course frames AI tools as collaborators, not as systems that should generate code directly for a student’s
    _____
    .
    Hint

    The restriction concerns work being submitted in response to course prompts.

    Answer

    questions

    Explanation

    The policy allows tools as collaborators but does not allow generated code to go directly into students’ questions or submissions.

  11. 11
    The stated purpose of the AI-tools restriction is to encourage students to train
    _____
    .
    Hint

    The policy focuses on the learner’s own understanding rather than training an automated agent.

    Answer

    yourself

    Explanation

    The instructor presents the restriction as a way to encourage learning by the student rather than training an agent to do the work.

  12. 12
    The lecture argues that model-training methods remain similar to earlier approaches, while the way people
    _____
    models has changed greatly.
    Hint

    The contrast is between how models are trained and what people do with them afterward.

    Answer

    use

    Explanation

    The lecture distinguishes relatively stable training methodology from newer ways of interacting with models, such as prompting them.

  13. 13
    In supervised learning, training examples include both inputs and their corresponding
    _____
    .
    Hint

    These are the values the model is trained to predict.

    Answer

    outputs

    Explanation

    Supervised learning uses paired inputs and outputs, so the model can learn a mapping from one to the other.

  14. 14
    In the house-price example, square footage is the input and house price is the
    _____
    .
    Hint

    This is the quantity the model is asked to predict.

    Answer

    output

    Explanation

    The model receives square footage as input and predicts the corresponding house price as output.

  15. 15
    The notation xxx commonly represents an example’s
    _____
    in machine learning.
    Hint

    It is the information given to a model before it makes a prediction.

    Answer

    input

    Explanation

    The lecture uses xxx for inputs and yyy for outputs.

  16. 16
    The notation yyy commonly represents the
    _____
    that a model is trying to predict.
    Hint

    For a house-price model, this is the price.

    Answer

    output

    Explanation

    The lecture uses yyy to denote the output corresponding to an input xxx.

  17. 17
    When a prediction target is a continuous quantity such as a house price, the task is called
    _____
    .
    Hint

    This task type is used for numerical values that can vary continuously.

    Answer

    regression

    Explanation

    Regression predicts continuous outputs, such as prices.

  18. 18
    When a model assigns an input to one of several discrete labels, the task is called
    _____
    .
    Hint

    This task type selects among categories rather than predicting a continuous number.

    Answer

    classification

    Explanation

    Classification assigns labels, such as house or townhouse, to inputs.

  19. 19
    A model that decides whether a property is a house or a townhouse is solving a two-class
    _____
    problem.
    Hint

    The output is one of two discrete categories.

    Answer

    classification

    Explanation

    House and townhouse are discrete labels, so predicting between them is classification.

  20. 20
    In a two-dimensional classification example, a line that divides the input plane into regions acts as a
    _____
    .
    Hint

    It assigns examples to categories based on which side of the dividing boundary they fall.

    Answer

    classifier

    Explanation

    A classifier can separate the plane into regions and assign a different class to inputs in each region.

  21. 21
    The terms features and inputs have both been used for the values provided to a
    _____
    .
    Hint

    These values describe an example before the prediction is made.

    Answer

    model

    Explanation

    Features and inputs both refer to the values given to a machine-learning model.

  22. 22
    A label is an output assigned to a particular
    _____
    .
    Hint

    Labels pair with the examples whose categories or outcomes they describe.

    Answer

    input

    Explanation

    Labeling means providing a designated output for an input; labels may be supplied by humans or machines.

  23. 23
    In image classification, raw image pixels are the input and the image’s main object is the
    _____
    .
    Hint

    This is the discrete category the model predicts for an image.

    Answer

    label

    Explanation

    Image classification maps raw pixels to a discrete label identifying the main object, such as a bird or cat.

  24. 24
    A bounding box can be specified by the coordinates of its bottom-left and top-right corners, for a total of
    _____
    numerical values.
    Hint

    Each corner is described using two coordinates.

    Answer

    four

    Explanation

    The two corners each require two coordinates, so the bounding box is represented by four numerical values.

  25. 25
    In machine translation, the source-language text is the input and the translated text is the
    _____
    .
    Hint

    It is the text produced in the target language.

    Answer

    output

    Explanation

    Machine translation learns a mapping from text in one language to text in another.

  26. 26
    A supervised data set has inputs paired with labeled
    _____
    .
    Hint

    These provide the target values used during training.

    Answer

    outputs

    Explanation

    Supervised learning relies on examples that include both inputs and their corresponding target outputs.

  27. 27
    In unsupervised learning, a data set contains inputs but no provided
    _____
    .
    Hint

    The model is not given the target answers that supervised learning uses.

    Answer

    outputs

    Explanation

    Unsupervised learning starts with inputs alone, without labeled outputs or an explicitly specified prediction target.

  28. 28
    Because unsupervised data have no labels, the learning goal is often to discover patterns or
    _____
    in the data.
    Hint

    This is something that may be present even when target answers are unavailable.

    Answer

    structure

    Explanation

    Unsupervised methods aim to extract patterns or structure from data without labels.

  29. 29
    The kind of structure found in an unlabeled data set can depend on the
    _____
    used to analyze it.
    Hint

    Different analytical approaches can reveal different patterns in the same data.

    Answer

    methodology

    Explanation

    The lecture notes that what counts as interesting structure may depend on the method applied.

  30. 30
    A method that groups data points according to similarity is called
    _____
    .
    Hint

    It creates groups of related examples without needing labels.

    Answer

    clustering

    Explanation

    Clustering finds data points that are similar to one another and places them in groups.

  31. 31
    In gene-expression analysis, grouping individuals with similar expression patterns can help identify different
    _____
    .
    Hint

    The groups may be used to study diseases or symptoms associated with patterns of genes.

    Answer

    types

    Explanation

    Clustering gene-expression data can reveal groups of individuals with distinct patterns and help researchers investigate disease or symptom relationships.

  32. 32
    A document-term table can represent each document by counting how often each
    _____
    occurs in it.
    Hint

    The table records the frequency of textual units across documents.

    Answer

    word

    Explanation

    The document example counts occurrences of each word; similar frequency patterns can reveal related documents and terms.

  33. 33
    Reordering documents and terms in a frequency table can reveal groups with similar
    _____
    .
    Hint

    The groups become more visible when related rows or columns are placed together.

    Answer

    patterns

    Explanation

    Sorting the document-term table can expose clusters of documents and words with similar frequency patterns.

  34. 34
    The technique named for finding structure in the document-word example is
    _____
    .
    Hint

    It is an abbreviation mentioned in connection with document and word relationships.

    Answer

    LSA

    Explanation

    The lecture identifies LSA as a technique used for analyzing structure in document-word data.

  35. 35
    A numerical representation of a word as a vector is called a word
    _____
    .
    Hint

    It places words in a numerical space where relationships can be represented geometrically.

    Answer

    embedding

    Explanation

    Word embeddings encode words as vectors, which can capture semantic similarities and relationships.

  36. 36
    In a word embedding space, semantically similar words can have vectors that are close to one
    _____
    .
    Hint

    The geometry reflects similarity through the distance between representations.

    Answer

    another

    Explanation

    Words with related meanings, such as the names of some capital cities, can have nearby vectors.

  37. 37
    In word embeddings, a direction can encode a relationship such as the relationship between a country and its
    _____
    .
    Hint

    The lecture illustrates this relation using countries and their major cities.

    Answer

    capital

    Explanation

    Vector directions can represent relationships; moving in a learned direction from a country may lead toward its capital’s representation.

  38. 38
    The word embeddings described in the lecture were learned from
    _____
    data rather than labeled examples.
    Hint

    The training corpus did not need human-provided target labels for each word.

    Answer

    unlabelled

    Explanation

    These embeddings were learned from unlabeled text, such as Wikipedia, by using patterns in the text.

  39. 39
    Deep learning uses a neural network whose nodes are compared to neurons and whose edges are compared to
    _____
    .
    Hint

    These are the connections between neurons in the brain analogy.

    Answer

    synapses

    Explanation

    The lecture uses a brain analogy in which network nodes resemble neurons and edges resemble synapses.

  40. 40
    The edges in a neural network correspond to learned model
    _____
    .
    Hint

    These are numerical quantities adjusted during training.

    Answer

    parameters

    Explanation

    The lecture describes network edges as corresponding to parameters, with modern models containing very large numbers of them.

  41. 41
    A neural network produces predictions by processing an input, such as an image, and outputting a
    _____
    .
    Hint

    For image classification, this is the predicted object category.

    Answer

    label

    Explanation

    In the image example, the network receives the image and produces a class label.

  42. 42
    To train a model, a loss function measures how well its predictions match the desired
    _____
    .
    Hint

    These are the target values associated with the training inputs.

    Answer

    outputs

    Explanation

    A loss function evaluates prediction errors and supplies a quantity that training seeks to reduce.

  43. 43
    The procedure used to automatically compute gradients through a complex network is called
    _____
    .
    Hint

    It propagates information backward through the network to calculate parameter gradients.

    Answer

    back propagation

    Explanation

    Back propagation efficiently computes gradients for complex models, enabling gradient-based training.

  44. 44
    The course presents deep learning as a technique that has enabled many modern machine-learning
    _____
    .
    Hint

    These include tasks involving images and language.

    Answer

    applications

    Explanation

    Deep learning provides techniques that underpin applications such as image recognition and language modeling.

  45. 45
    A large language model is described as a general-purpose model trained on massive
    _____
    data sets.
    Hint

    The data are not necessarily supplied with task-specific target labels.

    Answer

    unlabelled

    Explanation

    The lecture characterizes large language models as general-purpose models learned from massive unlabeled data.

  46. 46
    Unlike a model built for one narrow prediction, a general-purpose language model can address many different
    _____
    .
    Hint

    The lecture contrasts a single-task system with a model able to respond to a wide range of requests.

    Answer

    tasks

    Explanation

    Large language models are presented as general-purpose systems that can handle many tasks rather than just one.

  47. 47
    Predicting the next token in a language model is fundamentally a
    _____
    problem because the next token is chosen from discrete options.
    Hint

    The model selects among categories rather than predicting a continuous measurement.

    Answer

    classification

    Explanation

    Each possible next token is a discrete choice, so next-token prediction can be viewed as classification.

  48. 48
    When a language model predicts the next token, it selects from a vocabulary of discrete
    _____
    .
    Hint

    Each candidate word or token is one possible output category.

    Answer

    choices

    Explanation

    The model predicts one next token from a set of possible tokens, making the output a discrete choice.

  49. 49
    A language model’s response can depend on how the user phrases a request; this is why
    _____
    matters.
    Hint

    It is the practice of wording inputs to guide a model’s response.

    Answer

    prompting

    Explanation

    The lecture notes that models may respond differently depending on how a question or instruction is phrased.

  50. 50
    Training a model to respond more reliably to user instructions is described as making it more responsive to
    _____
    .
    Hint

    These are directions given by the user to the model.

    Answer

    instructions

    Explanation

    Instruction-focused training aims to make models follow users’ orders and respond appropriately to directions.

  51. 51
    Supervised fine-tuning is commonly abbreviated as
    _____
    .
    Hint

    The abbreviation has three letters and refers to a supervised training approach.

    Answer

    SFT

    Explanation

    SFT stands for supervised fine-tuning, one form of supervised learning used in building models.

  52. 52
    The course plans to cover the architecture and loss functions used to
    _____
    large language models.
    Hint

    These choices are part of the model-building process.

    Answer

    train

    Explanation

    The course overview includes the architectures and loss functions used to train large language models.

  53. 53
    A diffusion model can generate realistic images by starting from
    _____
    .
    Hint

    The process transforms a disordered starting signal into a structured image.

    Answer

    noise

    Explanation

    The lecture describes diffusion models as generating realistic images from noise or instructions.

  54. 54
    The image-generation example is unsupervised because it uses images without provided
    _____
    .
    Hint

    The model learns from the images themselves rather than category answers attached to each one.

    Answer

    labels

    Explanation

    The example uses collections of realistic images without labels and trains a model to generate additional images.

  55. 55
    Reinforcement learning is suited to tasks that require making
    _____
    decisions over time.
    Hint

    Each decision occurs as part of a sequence rather than as an isolated prediction.

    Answer

    sequential

    Explanation

    Reinforcement learning is commonly used when actions are taken in sequence and later choices depend on earlier ones.

  56. 56
    In a sequential decision task, the action chosen now can affect the system’s
    _____
    .
    Hint

    A poor movement, for example, may lead to a later failure that cannot easily be undone.

    Answer

    future

    Explanation

    Actions have consequences for later states and decisions, creating dependencies across time.

  57. 57
    Robot walking is a reinforcement-learning example because the robot must repeatedly choose
    _____
    .
    Hint

    These include decisions about how to move its arms and legs.

    Answer

    actions

    Explanation

    A robot learns movement by choosing actions, observing their consequences, and adjusting its behavior.

  58. 58
    Traditional supervised and unsupervised learning often begin with a fixed data set, whereas reinforcement learning can collect data
    _____
    .
    Hint

    The system gathers new experience by acting and receiving feedback.

    Answer

    interactively

    Explanation

    Reinforcement learning can alternate between gathering experience and training, instead of relying only on a fixed data set.

  59. 59
    A reinforcement-learning method can improve through trial and
    _____
    .
    Hint

    The system tries a strategy, observes the consequences, and learns from failures as well as successes.

    Answer

    error

    Explanation

    Trial and error allows an agent to use feedback from its actions to improve its behavior.

  60. 60
    A sequence of actions and observations gathered during an attempt is called a data
    _____
    .
    Hint

    It records the path through a sequence of states and decisions.

    Answer

    trajectory

    Explanation

    A trajectory contains sequential information from an attempt, such as a robot’s actions and observations before it falls or succeeds.

  61. 61
    In automatic theorem proving, a model can generate candidate proofs, which are then checked and the correct ones are selected as new training
    _____
    .
    Hint

    The verified examples can be used in a later round of training.

    Answer

    data

    Explanation

    Correctly verified generated proofs can be added to the data used to train the model again.

  62. 62
    Repeatedly generating successful examples, adding them to training, and generating more can create a
    _____
    effect.
    Hint

    Each round builds on the model and data produced by earlier rounds.

    Answer

    bootstrapping

    Explanation

    The lecture describes a bootstrapping effect in which newly generated correct examples support further improvement and data collection.

  63. 63
    In a language-model reinforcement-learning setup, a separate module can assign generated text a
    _____
    .
    Hint

    This value indicates whether the generated response is considered good.

    Answer

    reward

    Explanation

    A reward signal evaluates generated text and can guide updates that encourage better responses.

  64. 64
    The reward signal guides updates so that the language model produces better text in the next
    _____
    .
    Hint

    The updated model generates new responses after training on feedback.

    Answer

    round

    Explanation

    The reward is used to improve the model’s future generations through iterative training.

  65. 65
    Stochastic token generation involves sampling from a probability
    _____
    .
    Hint

    It assigns probabilities to possible next tokens before one is selected.

    Answer

    distribution

    Explanation

    At each generation step, the model produces a probability distribution over possible tokens and samples one.

  66. 66
    Because sampling a token is not a differentiable operation in the traditional sense, directly backpropagating through the full generation process can be difficult; reinforcement learning methods address this issue using
    _____
    .
    Hint

    This technique is used to optimize a policy when decisions involve sampling.

    Answer

    policy gradient

    Explanation

    Policy gradient methods can train models that make stochastic decisions even when the sampling steps are not differentiable in the usual way.

  67. 67
    In language generation, each sampled token can be treated as a decision, and the sequence is sequential because each token affects later
    _____
    .
    Hint

    The model conditions its next generation step on what it has already generated.

    Answer

    tokens

    Explanation

    Generated tokens form a sequence: earlier outputs condition the model’s later outputs.

  68. 68
    The use of reinforcement learning for language models is not fundamentally contradictory to its use in robotics; it is a different
    _____
    .
    Hint

    The two applications use a shared framework but emphasize different kinds of decisions.

    Answer

    viewpoint

    Explanation

    The lecture presents robot actions and language-model token generation as related sequential decision problems, viewed in different contexts.

  69. 69
    The course plans to discuss how machine-learning software and hardware can be made more
    _____
    .
    Hint

    This concerns making algorithms work efficiently with the systems that run them.

    Answer

    compatible

    Explanation

    Machine-learning systems work includes improving the fit between software, algorithms, and hardware.

  70. 70
    If an algorithm runs twice as fast, its runtime for the same work is reduced to about one-half, illustrating why computational
    _____
    matters.
    Hint

    Improving this can reduce time and the resources needed to run a model.

    Answer

    efficiency

    Explanation

    Efficiency improvements can have major practical value because large-scale model computation is expensive.

  71. 71
    The course intends to use toy examples to explain fundamental techniques rather than focusing primarily on real-world
    _____
    .
    Hint

    The emphasis is on core methods rather than surveying every domain where they are used.

    Answer

    applications

    Explanation

    The course overview says it focuses on foundational techniques and uses simplified examples to demonstrate them.

  72. 72
    The course emphasizes how models are tuned and trained rather than teaching students mainly how to use tools such as coding assistants to write
    _____
    .
    Hint

    This is the output produced by programming tools.

    Answer

    code

    Explanation

    The course focuses on the fundamental technology for training and tuning models, not primarily on using coding assistants to produce programs.

  73. 73
    An additional planned topic concerns the fairness and
    _____
    impact of AI.
    Hint

    This includes considering how AI affects people and society.

    Answer

    social

    Explanation

    The course overview identifies fairness and social impact as important topics for AI, including effects on employment.

  74. 74
    One reason the social impact of AI matters is that AI may replace many
    _____
    .
    Hint

    The concern relates to changes in employment caused by AI systems.

    Answer

    jobs

    Explanation

    The lecture raises the possibility of AI replacing jobs as a reason to consider its broader social effects.

1 of 74
Question 1 of 74

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent