Navigation
  • Share
  • Breadcrumb

    Evergreen

    MFORL

    Open the repository.

    code to implement content in Mathematical Foundation Of Reinforcement Learning

    In chapter 1-7, state, action and policy are represented in tabular form.

    In chapter 8-10, state, action and policy are represented in function form.

    core

    The mforl folder is the core lib of all code files, where foundamental concepts, classes, methods are defined.

    The mforl lib can be divided into two parts: tabular and function, corresponding to different form of state, action and policy.

    requirements

    • python >= 3.9
    • numpy
    • torch
    • tqdm

    Chapter files

    ChapterFiles
    2calc_state_value_given_a_policy.py
    4value_iteration.py, policy_iteration.py, truncated_policy_iteration.py
    5mc_basic.py, mc_exploring_starts.py, mc_epsilon_greedy.py
    6stochastic_approximation.py
    7TD_learning_of_state_value.py, sarsa.py, n_step_sarsa.py, q_learning_on_policy.py, q_learning_off_policy.py
    8TD_learning_of_state_values_without_autograd.py, TD_learning_of_state_values_with_artificial_neural_network.py, sarsa_with_function_approximation.py, q_learning_with_function_approximation.py, deep_q_learning_with_function_approximation.py, deep_q_learning_with_function_approximation_v2.py
    9REINFORCE.py, REINFORCE_with_return_averaging.py
    10QAC.py, A2C.py, DPG.py