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

Study methods

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

Reinforcement Learning Overview

  • 45Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: ML Paradigms
The three paradigms of machine learning are supervised learning, unsupervised learning, and
.

45 questions

  1. 1
    The three paradigms of machine learning are supervised learning, unsupervised learning, and
    _____
    .
    Hint

    Think about learning through rewards and punishments, like training a pet.

    Answer

    reinforcement learning

  2. 2
    Reinforcement learning is inspired by
    _____
    in psychology.
    Hint

    This concept involves learning through consequences (rewards and punishments).

    Answer

    operant conditioning

  3. 3
    In reinforcement learning, the goal is to learn through
    _____
    reward signals that occur sporadically.
    Hint

    Opposite of dense; rewards are not given at every step.

    Answer

    sparse

  4. 4
    In contrast to reinforcement learning, supervised learning learns by comparing its output to
    _____
    for each data point.
    Hint

    Also called ground truth or target values.

    Answer

    labels

  5. 5
    In reinforcement learning, sequences of actions that lead to good results are
    _____
    , while those leading to bad results are discouraged.
    Hint

    Think 'strengthened' or 'rewarded'.

    Answer

    reinforced

  6. 6
    A round of execution in the environment with a beginning and an end is called an
    _____
    .
    Hint

    It's like a single play-through of a game.

    Answer

    episode

  7. 7
    In a discrete environment, the number of states is
    _____
    (finite and countable).
    Hint

    Opposite of infinite; each square on a grid is a distinct state.

    Answer

    finite

  8. 8
    An environment where the agent knows exactly its current state with no hidden information is called
    _____
    .
    Hint

    Think of a game where you can see the entire board.

    Answer

    fully observable

  9. 9
    In a
    _____
    environment, actions have guaranteed outcomes with no probabilities involved.
    Hint

    Opposite of stochastic; moving up always goes up.

    Answer

    deterministic

  10. 10
    In Q-learning, each state has
    _____
    Q-values, one for each possible action.
    Hint

    How many directions can the agent move?

    Answer

    four

  11. 11
    Q-values represent the expected
    _____
    reward from that point onward if the agent chooses that action and then always chooses the best action.
    Hint

    Sum of all future rewards, not just the immediate one.

    Answer

    accumulated

  12. 12
    Immediate rewards like +100 for reaching the goal are different from Q-values because Q-values are
    _____
    of future rewards.
    Hint

    They are not guaranteed; they are the average outcome the agent expects.

    Answer

    expectations

  13. 13
    When initial Q-values are tied, the agent must
    _____
    to avoid getting stuck.
    Hint

    If it always chooses the first tied action, it may never explore others.

    Answer

    randomly select one

  14. 14
    The strategy of always choosing the action with the highest Q-value is called
    _____
    .
    Hint

    Using what you already know to maximize reward.

    Answer

    exploitation

  15. 15
    The
    _____
    dilemma is the trade-off between trying new actions to gain knowledge and sticking with known good actions.
    Hint

    Explore to discover new paths; exploit to use known paths.

    Answer

    exploration versus exploitation

  16. 16
    The epsilon-greedy method selects a random action with probability
    _____
    and the best action otherwise.
    Hint

    It's a small parameter, often 0.1 or 0.2.

    Answer

    epsilon

  17. 17
    The discount factor gamma makes rewards further away worth
    _____
    than immediate rewards.
    Hint

    Think of inflation; money tomorrow is worth less than money today.

    Answer

    less

  18. 18
    The learning rate alpha controls how much new information
    _____
    the old Q-value.
    Hint

    It's a step size; a high alpha means fast learning, low alpha means gradual updates.

    Answer

    overrides

  19. 19
    For terminal states, the Q-value of any action is implicitly
    _____
    because there is no future.
    Hint

    No more rewards can be earned after the episode ends.

    Answer

    zero

  20. 20
    When updating Q-values for a terminal state, the term involving the future expectation is
    _____
    .
    Hint

    The formula simplifies because there is no next state.

    Answer

    removed

  21. 21
    A function that maps a state to the action the agent should take is called a
    _____
    .
    Hint

    It defines the agent's behavior.

    Answer

    policy

  22. 22
    Initializing Q-values with a high value is called
    _____
    initialization, which encourages exploration.
    Hint

    The agent 'optimistically' thinks unknown states are good.

    Answer

    optimistic

  23. 23
    In the provided environment, the agent starts at the
    _____
    corner of the grid.
    Hint

    It's the lower left square.

    Answer

    bottom-left

  24. 24
    The action '0' corresponds to moving
    _____
    in the environment implementation.
    Hint

    It decrements the row index.

    Answer

    up

  25. 25
    The maximum number of steps per episode in the code is set to R*C, where R and C are
    _____
    .
    Hint

    The dimensions of the grid.

    Answer

    rows and columns

  26. 26
    The parameter that controls the probability of random action in epsilon-greedy is called
    _____
    .
    Hint

    It's often denoted by ε.

    Answer

    epsilon

  27. 27
    In a non-deterministic environment, the agent may trip and move to a different square than intended; this is simulated by adding a random
    _____
    to the coordinates.
    Hint

    A small change in position.

    Answer

    offset

  28. 28
    The learning rate alpha is typically a value between
    _____
    .
    Hint

    It's a fraction controlling how much new info overrides old.

    Answer

    0 and 1

  29. 29
    The environment class has a method called
    _____
    that applies an action and returns the new state, reward, and whether it's terminal.
    Hint

    It's the main interaction function.

    Answer

    act

  30. 30
    In the grid environment, the reward of +100 is located at the
    _____
    corner.
    Hint

    It's the opposite corner from the start.

    Answer

    top-right

  31. 31
    The punishment of -100 is located at the
    _____
    row, last column.
    Hint

    It's just below the reward square.

    Answer

    second

  32. 32
    The Q-learning algorithm that does not handle terminal states correctly may lead to Q-values
    _____
    than 100, which is nonsensical.
    Hint

    Because the agent thinks it can still earn rewards after reaching the goal.

    Answer

    greater

  33. 33
    Two other reinforcement learning algorithms mentioned besides Q-learning are SARSA and
    _____
    .
    Hint

    Named after a famous city known for gambling.

    Answer

    Monte Carlo

  34. 34
    Combining deep learning with reinforcement learning is called
    _____
    .
    Hint

    It handles high-dimensional, continuous state spaces.

    Answer

    deep reinforcement learning

  35. 35
    In a continuous environment, the number of states is effectively
    _____
    .
    Hint

    Unlike the discrete grid with 16 states.

    Answer

    infinite

  36. 36
    The environment's reset method returns a copy of the initial state to avoid unintended modifications, a lesson learned from a
    _____
    .
    Hint

    The lecturer once forgot to copy the state.

    Answer

    bug

  37. 37
    The performance graph mentioned as a potential improvement would show how
    _____
    changes over time.
    Hint

    To see if the agent improves.

    Answer

    reward

  38. 38
    The initial Q-values in the code are set to a default value of
    _____
    .
    Hint

    The agent starts with no knowledge.

    Answer

    zero

  39. 39
    The parameter for the probability of stumbling is set in the environment's constructor with a default of
    _____
    .
    Hint

    No randomness by default.

    Answer

    0

  40. 40
    In the policy visualization, arrows show the
    _____
    action for each state.
    Hint

    The action chosen by the policy.

    Answer

    best

  41. 41
    When the environment is non-deterministic, using a learning rate alpha of 1 can cause the agent to
    _____
    previously learned good actions after a bad outcome.
    Hint

    It completely forgets the old value.

    Answer

    unlearn

  42. 42
    The environment class is named
    _____
    in the code.
    Hint

    It's a cute Portuguese name meaning 'little map'.

    Answer

    mapinha

  43. 43
    The agent class is named
    _____
    in the code.
    Hint

    It implements the Q-learning algorithm.

    Answer

    QLearn

  44. 44
    The number of episodes in the initial experiment is
    _____
    .
    Hint

    It's a relatively small number for a 4x4 grid.

    Answer

    100

  45. 45
    Exploration rate epsilon is set to
    _____
    in the first experiment.
    Hint

    Half the time the agent chooses randomly.

    Answer

    0.5

1 of 45
Question 1 of 45

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent