1. Home
  2. Explore
  3. Computer Science
  4. Reinforcement Learning Basics

Study methods

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

Reinforcement Learning Basics

  • 76Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Bias Variance
The error that measures how well a model performs on unseen data is called the
error.

76 questions

  1. 1
    The error that measures how well a model performs on unseen data is called the
    _____
    error.
    Hint

    It is contrasted with training error.

    Answer

    generalization

  2. 2
    The three additive components of test error are irreducible error, bias, and
    _____
    .
    Hint

    This component measures sensitivity to changes in the training data.

    Answer

    variance

  3. 3
    Noise in the test examples contributes to
    _____
    error.
    Hint

    This component cannot be eliminated by changing the model.

    Answer

    irreducible

  4. 4
    The systematic error made by a model, such as consistent underprediction or overprediction, is called
    _____
    .
    Hint

    It reflects how far the model's average prediction is from the target.

    Answer

    bias

  5. 5
    A model's sensitivity to noise in the training data is called
    _____
    .
    Hint

    High values indicate that the model changes substantially across training sets.

    Answer

    variance

  6. 6
    Increasing model capacity generally reduces
    _____
    but may increase variance.
    Hint

    More complex models can fit systematic patterns more closely.

    Answer

    bias

  7. 7
    Increasing regularization generally reduces variance but increases
    _____
    .
    Hint

    Regularization constrains the model and can make it less flexible.

    Answer

    bias

  8. 8
    A useful heuristic estimates bias using training error and estimates variance using the gap between cross-validation error and
    _____
    error.
    Hint

    The gap compares performance on seen and held-out data.

    Answer

    training

  9. 9
    When diagnosing model performance, training error and
    _____
    error should be examined simultaneously.
    Hint

    This error is measured on held-out validation examples.

    Answer

    cross-validation

  10. 10
    Reducing training error alone is insufficient because machine learning seeks good performance on
    _____
    data.
    Hint

    The goal is not merely to fit the examples already provided.

    Answer

    unseen

  11. 11
    Supervised learning learns a hypothesis that maps an input xxx to an output
    _____
    .
    Hint

    This variable is the target or label.

    Answer

    yyy

  12. 12
    Supervised learning uses noisy examples of input-output
    _____
    .
    Hint

    Each example contains both an input and its corresponding target.

    Answer

    pairs

  13. 13
    The goal of supervised learning is for the learned hypothesis to generalize well to
    _____
    data.
    Hint

    This data was not used to fit the model.

    Answer

    unseen

  14. 14
    A supervised learning problem seeks to minimize a loss function on
    _____
    data rather than only on the given training data.
    Hint

    This is the central distinction between machine learning and ordinary optimization.

    Answer

    unseen

  15. 15
    The classification-versus-regression distinction is based primarily on the data type of the output variable
    _____
    .
    Hint

    This is the variable being predicted.

    Answer

    yyy

  16. 16
    When the output variable takes discrete values such as zero or one, the problem is called
    _____
    .
    Hint

    The task assigns examples to categories.

    Answer

    classification

  17. 17
    Predicting one of the ten digit labels from zero through nine is an example of
    _____
    classification.
    Hint

    There are more than two possible categories.

    Answer

    multiclass

  18. 18
    When the output variable is continuous, the problem is called
    _____
    .
    Hint

    The target can take real-valued measurements.

    Answer

    regression

  19. 19
    In reinforcement learning, direct labels indicating the correct action are replaced by a
    _____
    signal.
    Hint

    This signal indicates how good an outcome was.

    Answer

    reward

  20. 20
    Unlike supervised-learning examples, reinforcement-learning decisions are dependent across
    _____
    .
    Hint

    The agent repeatedly acts and observes consequences.

    Answer

    time

  21. 21
    A generalized linear model allows the conditional distribution of yyy given xxx to belong to the
    _____
    family.
    Hint

    This family includes distributions used for discrete and continuous responses.

    Answer

    exponential

  22. 22
    A discriminative model directly learns the conditional distribution
    _____
    .
    Hint

    It models the output given the input.

    Answer

    p(y∣x)p(y \mid x)p(y∣x)

  23. 23
    A generative model learns how to generate a complete input-output pair, represented as
    _____
    .
    Hint

    It models both the input and the output jointly.

    Answer

    (x,y)(x,y)(x,y)

  24. 24
    Using the chain rule, a joint generative model can be factored as p(y)p(y)p(y) times
    _____
    .
    Hint

    The second factor describes the input conditional on the output.

    Answer

    p(x∣y)p(x \mid y)p(x∣y)

  25. 25
    Naive Bayes is a generative model discussed for the case where xxx is
    _____
    .
    Hint

    Its features were treated as taking categorical values.

    Answer

    discrete

  26. 26
    Gaussian discriminant analysis is a generative model discussed for
    _____
    -valued inputs.
    Hint

    Its input distribution is Gaussian.

    Answer

    real

  27. 27
    For any p(x∣y)p(x \mid y)p(x∣y) in the exponential family, the resulting p(y∣x)p(y \mid x)p(y∣x) has a
    _____
    regression form.
    Hint

    This form is commonly used for classification.

    Answer

    logistic

  28. 28
    A kernel is a symmetric positive
    _____
    function with an implicit feature map.
    Hint

    The full term is a standard mathematical property of valid kernels.

    Answer

    definite

  29. 29
    Support vector machines use kernels primarily for
    _____
    problems.
    Hint

    They separate examples into categories.

    Answer

    classification

  30. 30
    Gaussian processes use kernels primarily for
    _____
    problems.
    Hint

    They predict continuous-valued outputs.

    Answer

    regression

  31. 31
    In ordinary parametric models, complexity depends on the number of
    _____
    , whereas in kernel methods it depends on the number of examples.
    Hint

    These correspond to columns of the design matrix.

    Answer

    features

  32. 32
    Kernel methods can represent a potentially
    _____
    number of features through their implicit feature maps.
    Hint

    The feature map need not be explicitly constructed.

    Answer

    infinite

  33. 33
    Neural networks can be viewed as a generalized linear model at the last layer preceded by a learnable
    _____
    map.
    Hint

    Earlier layers transform the input representation.

    Answer

    feature

  34. 34
    An MDP, or Markov decision process, is represented as a
    _____
    -tuple.
    Hint

    Its components are state space, action space, transitions, discount factor, and reward.

    Answer

    five

  35. 35
    The set of all possible states an agent can occupy is denoted by
    _____
    .
    Hint

    It is the state space component of the MDP.

    Answer

    S\mathcal{S}S

  36. 36
    The set of actions available to the agent is denoted by
    _____
    .
    Hint

    Examples include moving north, south, east, or west.

    Answer

    A\mathcal{A}A

  37. 37
    The transition probabilities specify the probability of reaching a successor state given the current state and chosen
    _____
    .
    Hint

    They describe how the environment responds to the agent's decision.

    Answer

    action

  38. 38
    The transition model is stochastic when the same state-action choice can lead to different next states with different
    _____
    .
    Hint

    The outcome is not deterministic.

    Answer

    probabilities

  39. 39
    If an agent in state sss takes action aaa, the probability of reaching state s′s's′ is written as
    _____
    .
    Hint

    Use a conditional probability with the successor state on the left.

    Answer

    p(s′∣s,a)p(s' \mid s,a)p(s′∣s,a)

  40. 40
    The discount factor, usually denoted by γ\gammaγ, lies between
    _____
    and one.
    Hint

    It reduces the weight of rewards received later.

    Answer

    zero

  41. 41
    A reward function r(s)r(s)r(s) gives the immediate real-valued reward for entering a particular
    _____
    .
    Hint

    In the basic formulation, reward depends only on where the agent arrives.

    Answer

    state

  42. 42
    When different actions have different costs, the reward may instead be modeled as a function of a state-action
    _____
    .
    Hint

    The reward then depends on both where the agent is and what it does.

    Answer

    pair

  43. 43
    A sequence of states and actions generated by an agent and its environment can be called a trial, episode, or
    _____
    .
    Hint

    This term describes a path through the state-action process.

    Answer

    trajectory

  44. 44
    The discount factor weights the reward at the first future step by γ\gammaγ and the reward two steps in the future by
    _____
    .
    Hint

    Each additional time step contributes one more factor of γ\gammaγ.

    Answer

    γ2\gamma^2γ2

  45. 45
    A positive discount factor encourages an agent to obtain positive rewards
    _____
    rather than later.
    Hint

    Earlier rewards receive less discounting.

    Answer

    sooner

  46. 46
    A policy is a function that maps each state to an
    _____
    .
    Hint

    It tells the agent what to do in a given situation.

    Answer

    action

  47. 47
    The value Vπ(s)V^{\pi}(s)Vπ(s) is the expected sum of discounted future
    _____
    obtained by following policy π\piπ from state sss.
    Hint

    It is a long-term measure, unlike the immediate reward.

    Answer

    rewards

  48. 48
    The immediate reward for being in a state is distinct from value because value includes the expected
    _____
    rewards.
    Hint

    Value looks beyond the current step.

    Answer

    future

  49. 49
    The expectation in Vπ(s)V^{\pi}(s)Vπ(s) is necessary because the future states are random under stochastic
    _____
    probabilities.
    Hint

    These probabilities determine where the environment moves the agent next.

    Answer

    transition

  50. 50
    The current starting state in the definition of Vπ(s)V^{\pi}(s)Vπ(s) is fixed by conditioning, while future states remain
    _____
    .
    Hint

    Only the starting point is specified in advance.

    Answer

    random

  51. 51
    The recursive equation expressing current value as immediate reward plus discounted expected successor value is called the
    _____
    equation.
    Hint

    It is a central recursive relation in reinforcement learning.

    Answer

    Bellman

  52. 52
    The Bellman equation for a fixed policy can be written as $V^{\pi}(s)=r(s)+\gamma\sum
    _____
    {s'}p(s'\mid s,\pi(s))V^{\pi}(s')$.
    Hint

    The blank asks for the name of the displayed relationship.

    Answer

    Bellman equation

  53. 53
    Given a policy, its value function can be calculated by averaging the accumulated discounted rewards over repeated
    _____
    .
    Hint

    Repeat the agent's interaction with the environment and average the returns.

    Answer

    trials

  54. 54
    The optimal Bellman equation maximizes over the available
    _____
    instead of following a fixed policy.
    Hint

    The best action is selected at each state.

    Answer

    actions

  55. 55
    The optimal policy chooses, at each state, the action with the greatest expected successor
    _____
    .
    Hint

    It uses the long-term desirability of the states that may be reached.

    Answer

    value

  56. 56
    For a fixed policy, the Bellman equations form a system of
    _____
    equations in the state values.
    Hint

    The unknown values occur only to the first power and are multiplied by known coefficients.

    Answer

    linear

  57. 57
    In the transition matrix PπP^{\pi}Pπ, each row represents the distribution over successor states after following the policy from one current
    _____
    .
    Hint

    Rows are indexed by where the agent currently is.

    Answer

    state

  58. 58
    Value iteration initializes the value function, commonly setting V(s)V(s)V(s) equal to
    _____
    for every state.
    Hint

    The algorithm may begin from any initialization, but this is the standard one described.

    Answer

    zero

  59. 59
    Value iteration repeats the Bellman update until
    _____
    .
    Hint

    The values eventually stop changing significantly.

    Answer

    convergence

  60. 60
    The Bellman backup operator is a
    _____
    mapping, which explains why repeated value updates converge.
    Hint

    Distances between outputs are smaller than distances between corresponding inputs.

    Answer

    contraction

  61. 61
    The fixed point of the Bellman backup operator is the optimal
    _____
    function.
    Hint

    It is denoted by V∗V^{*}V∗.

    Answer

    value

  62. 62
    A fixed point is unchanged when the Bellman operator is applied to it
    _____
    .
    Hint

    The output is identical to the input.

    Answer

    again

  63. 63
    Value iteration can begin from any initialization because the contraction property drives the values toward the same
    _____
    point.
    Hint

    This point remains unchanged under further Bellman backups.

    Answer

    fixed

  64. 64
    In synchronous value iteration, updates for all states are first stored as temporary values and then applied in
    _____
    .
    Hint

    The old values are used consistently before replacement.

    Answer

    one shot

  65. 65
    In asynchronous value iteration, an updated state value may be used immediately when updating other
    _____
    .
    Hint

    Updates are not delayed until an entire sweep is complete.

    Answer

    states

  66. 66
    Value iteration approaches the exact optimal value arbitrarily closely but may not reach it in a finite number of
    _____
    .
    Hint

    It is an iterative approximation method.

    Answer

    iterations

  67. 67
    Policy iteration begins by initializing the policy
    _____
    .
    Hint

    Any initial assignment of actions to states can be used.

    Answer

    randomly

  68. 68
    The first major step of policy iteration evaluates the current policy by setting the value function equal to
    _____
    .
    Hint

    This is the value obtained by following the current policy.

    Answer

    VπV^{\pi}Vπ

  69. 69
    After evaluating a policy, policy iteration improves it by selecting the action that maximizes expected future
    _____
    .
    Hint

    The action is chosen using the current value estimate.

    Answer

    value

  70. 70
    Policy iteration alternates between policy evaluation and policy
    _____
    .
    Hint

    The second step changes the policy using the evaluated values.

    Answer

    improvement

  71. 71
    Policy iteration can detect convergence by checking whether the policy changes after a complete
    _____
    .
    Hint

    If no state changes its selected action, the policy has stabilized.

    Answer

    update

  72. 72
    Policy evaluation requires inverting an SSS by SSS matrix, giving an approximate computational cost of order
    _____
    .
    Hint

    Matrix inversion is cubic in the number of states.

    Answer

    S3S^3S3

  73. 73
    A value-iteration sweep over all states and actions has approximate cost O(S2A)O(S^2 A)O(S2A), where SSS is the number of states and AAA is the number of
    _____
    .
    Hint

    The update maximizes over this set.

    Answer

    actions

  74. 74
    For large state spaces, policy iteration can be more computationally
    _____
    than value iteration.
    Hint

    Its policy-evaluation step involves matrix inversion.

    Answer

    expensive

  75. 75
    Policy iteration reaches the exact optimal value after a finite number of
    _____
    .
    Hint

    This contrasts with value iteration's asymptotic approximation.

    Answer

    steps

  76. 76
    The policy obtained by applying an action argmax to the optimal value function is called the
    _____
    policy.
    Hint

    It is denoted by π∗\pi^{*}π∗.

    Answer

    optimal

1 of 76
Question 1 of 76

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent