{
  "source_file": "0930",
  "source_platform": "Medium",
  "author": "Avishek Biswas",
  "title_listed": "The Reinforcement Learning Handbook: A Guide to Foundational Questions",
  "keywords": "",
  "domain": "机器学习",
  "content_type": "深度技术解析",
  "is_paid_flag": "否",
  "url": "https://towardsdatascience.com/the-handbook-of-reinforcement-learning-guide-to-the-foundational-questions/",
  "publish_date": "2025-11-06",
  "corpus_stage": "",
  "notes": "",
  "id": "0c379eeb2b16",
  "collected_at": "2026-10-02T10:24:58",
  "title": "The Reinforcement Learning Handbook: A Guide to Foundational Questions | Towards Data Science",
  "body_markdown": "![Revisit consent button](../images/body-df29beacd7496220cc94.svg)\nWe value your privacy\nWe use cookies to enhance your browsing experience, serve personalised ads or content, and analyse our traffic. By clicking \"Accept All\", you consent to our use of cookies.\nCustomise Reject All Accept All\nCustomise Consent Preferences ![](../images/body-2159bb67f3de8ad870eb.svg)\nWe use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.\nThe cookies that are categorised as \"Necessary\" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... Show more\nNecessaryAlways Active\nNecessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.\n  * Cookie\nBCTempID\n  * Duration\n10 minutes\n  * Description\nNo description available.\n\n\n  * Cookie\n__cf_bm\n  * Duration\n1 hour\n  * Description\nThis cookie, set by Cloudflare, is used to support Cloudflare Bot Management. \n\n\n  * Cookie\nAWSALBCORS\n  * Duration\n7 days\n  * Description\nAmazon Web Services set this cookie for load balancing.\n\n\n  * Cookie\n_cfuvid\n  * Duration\nsession\n  * Description\nCloudflare sets this cookie to track users across sessions to optimize user experience by maintaining session consistency and providing personalized services\n\n\n  * Cookie\nli_gc\n  * Duration\n6 months\n  * Description\nLinkedin set this cookie for storing visitor's consent regarding using cookies for non-essential purposes.\n\n\n  * Cookie\n__hssrc\n  * Duration\nsession\n  * Description\nThis cookie is set by Hubspot whenever it changes the session cookie. The __hssrc cookie set to 1 indicates that the user has restarted the browser, and if the cookie does not exist, it is assumed to be a new session.\n\n\n  * Cookie\n__hssc\n  * Duration\n1 hour\n  * Description\nHubSpot sets this cookie to keep track of sessions and to determine if HubSpot should increment the session number and timestamps in the __hstc cookie.\n\n\n  * Cookie\nwpEmojiSettingsSupports\n  * Duration\nsession\n  * Description\nWordPress sets this cookie when a user interacts with emojis on a WordPress site. It helps determine if the user's browser can display emojis properly.\n\n\n  * Cookie\nBCSessionID\n  * Duration\n1 year 1 month 4 days\n  * Description\nBlueconic sets this cookie as a unique identifier for the BlueConic profile.\n\n\n  * Cookie\n_octo\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nlogged_in\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\n__Secure-YEC\n  * Duration\npast\n  * Description\nYouTube sets this cookie to stores the user's video player preferences using embedded YouTube video\n\n\n  * Cookie\n__eoi\n  * Duration\n6 months\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nAWSALBTGCORS\n  * Duration\n7 days\n  * Description\nNo description available.\n\n\n  * Cookie\nlogin-status-p\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nAWSALBTG\n  * Duration\n7 days\n  * Description\nNo description available.\n\n\n  * Cookie\ncsrf_token\n  * Duration\nsession\n  * Description\nNo description available.\n\n\n  * Cookie\ntoken_v2\n  * Duration\n1 day\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nD\n  * Duration\n1 year\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nPHPSESSID\n  * Duration\nsession\n  * Description\nThis cookie is native to PHP applications. The cookie stores and identifies a user's unique session ID to manage user sessions on the website. The cookie is a session cookie and will be deleted when all the browser windows are closed.\n\n\n  * Cookie\nVISITOR_PRIVACY_METADATA\n  * Duration\n6 months\n  * Description\nYouTube sets this cookie to store the user's cookie consent state for the current domain. \n\n\n  * Cookie\ncookietest\n  * Duration\nsession\n  * Description\nThe cookietest cookie is typically used to determine whether the user's browser accepts cookies, essential for website functionality and user experience.\n\n\n  * Cookie\n__Host-airtable-session\n  * Duration\n1 year\n  * Description\nThis cookie is used to enable us to integrate the services of Airtable.\n\n\n  * Cookie\n__Host-airtable-session.sig\n  * Duration\n1 year\n  * Description\nThis cookie is used to enable us to integrate the services of Airtable.\n\n\n  * Cookie\nm\n  * Duration\n1 year 1 month 4 days\n  * Description\nStripe sets this cookie for fraud prevention purposes. It identifies the device used to access the website, allowing the website to be formatted accordingly.\n\n\n  * Cookie\nBIGipServer*\n  * Duration\nsession\n  * Description\nMarketo sets this cookie to collect information about the user's online activity and build a profile about their interests to provide advertisements relevant to the user. \n\n\n  * Cookie\n__cfruid\n  * Duration\nsession\n  * Description\nCloudflare sets this cookie to identify trusted web traffic.\n\n\n  * Cookie\n_GRECAPTCHA\n  * Duration\n6 months\n  * Description\nGoogle Recaptcha service sets this cookie to identify bots to protect the website against malicious spam attacks.\n\n\n  * Cookie\n__Secure-YNID\n  * Duration\n6 months\n  * Description\nGoogle cookie used to protect user security and prevent fraud, especially during the login process.\n\n\n  * Cookie\ncookieyes-consent\n  * Duration\n1 year\n  * Description\nCookieYes sets this cookie to remember users' consent preferences so that their preferences are respected on subsequent visits to this site. It does not collect or store any personal information about the site visitors.\n\n\nFunctional\nFunctional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.\n  * Cookie\nlidc\n  * Duration\n1 day\n  * Description\nLinkedIn sets the lidc cookie to facilitate data center selection.\n\n\n  * Cookie\nbrw\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nbrwConsent\n  * Duration\n5 minutes\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nWMF-Uniq\n  * Duration\n1 year\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nloom_anon_comment\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nloom_referral_video\n  * Duration\nsession\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nVISITOR_INFO1_LIVE\n  * Duration\n6 months\n  * Description\nA cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.\n\n\n  * Cookie\nyt-remote-connected-devices\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to store the user's video preferences using embedded YouTube videos.\n\n\n  * Cookie\nytidb::LAST_RESULT_ENTRY_KEY\n  * Duration\nNever Expires\n  * Description\nThe cookie ytidb::LAST_RESULT_ENTRY_KEY is used by YouTube to store the last search result entry that was clicked by the user. This information is used to improve the user experience by providing more relevant search results in the future.\n\n\n  * Cookie\nyt-remote-device-id\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to store the user's video preferences using embedded YouTube videos.\n\n\n  * Cookie\nyt-remote-session-name\n  * Duration\nsession\n  * Description\nThe yt-remote-session-name cookie is used by YouTube to store the user's video player preferences using embedded YouTube video.\n\n\n  * Cookie\nyt-remote-fast-check-period\n  * Duration\nsession\n  * Description\nThe yt-remote-fast-check-period cookie is used by YouTube to store the user's video player preferences for embedded YouTube videos.\n\n\n  * Cookie\nyt-remote-session-app\n  * Duration\nsession\n  * Description\nThe yt-remote-session-app cookie is used by YouTube to store user preferences and information about the interface of the embedded YouTube video player.\n\n\n  * Cookie\nyt-remote-cast-available\n  * Duration\nsession\n  * Description\nThe yt-remote-cast-available cookie is used to store the user's preferences regarding whether casting is available on their YouTube video player.\n\n\n  * Cookie\nyt-remote-cast-installed\n  * Duration\nsession\n  * Description\nThe yt-remote-cast-installed cookie is used to store the user's video player preferences using embedded YouTube video.\n\n\n  * Cookie\ncp_session\n  * Duration\n3 months\n  * Description\nCodepen sets this cookie for Help systems found in the website.\n\n\n  * Cookie\nloid\n  * Duration\n1 year 1 month 4 days\n  * Description\nThis cookie is set by the Reddit. The cookie enables the sharing of content from the website onto the social media platform.\n\n\nAnalytics\nAnalytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.\n  * Cookie\n__hstc\n  * Duration\n6 months\n  * Description\nHubspot set this main cookie for tracking visitors. It contains the domain, initial timestamp (first visit), last timestamp (last visit), current timestamp (this visit), and session number (increments for each subsequent session).\n\n\n  * Cookie\nhubspotutk\n  * Duration\n6 months\n  * Description\nHubSpot sets this cookie to keep track of the visitors to the website. This cookie is passed to HubSpot on form submission and used when deduplicating contacts.\n\n\n  * Cookie\n_ga\n  * Duration\n1 year 1 month 4 days\n  * Description\nGoogle Analytics sets this cookie to calculate visitor, session and campaign data and track site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognise unique visitors.\n\n\n  * Cookie\n_ga_*\n  * Duration\n1 year 1 month 4 days\n  * Description\nGoogle Analytics sets this cookie to store and count page views.\n\n\n  * Cookie\n__Host-psifi.analyticsTrace\n  * Duration\n6 hours\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\n__Host-psifi.analyticsTraceV2\n  * Duration\n6 hours\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\n_gh_sess\n  * Duration\nsession\n  * Description\nGitHub sets this cookie for temporary application and framework state between pages like what step the user is on in a multiple step form.\n\n\n  * Cookie\nYSC\n  * Duration\nsession\n  * Description\nYSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.\n\n\n  * Cookie\najs_anonymous_id\n  * Duration\n1 year\n  * Description\nThis cookie is set by Segment to count the number of people who visit a certain site by tracking if they have visited before.\n\n\n  * Cookie\nvuid\n  * Duration\n1 year 1 month 4 days\n  * Description\nVimeo installs this cookie to collect tracking information by setting a unique ID to embed videos on the website. \n\n\nPerformance\nPerformance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.\n  * Cookie\nAWSALB\n  * Duration\n7 days\n  * Description\nAWSALB is an application load balancer cookie set by Amazon Web Services to map the session to the target.\n\n\n  * Cookie\nacq\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nacq.sig\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nptc\n  * Duration\n2 years\n  * Description\nNo description available.\n\n\nAdvertisement\nAdvertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.\n  * Cookie\nmuc_ads\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to collect user behaviour and interaction data to optimize the website.\n\n\n  * Cookie\nguest_id_marketing\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor.\n\n\n  * Cookie\nguest_id_ads\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor.\n\n\n  * Cookie\npersonalization_id\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to integrate and share features for social media and also store information about how the user uses the website, for tracking and targeting.\n\n\n  * Cookie\nguest_id\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor. It registers if a user is signed in to the Twitter platform and collects information about ad preferences.\n\n\n  * Cookie\nbcookie\n  * Duration\n1 year\n  * Description\nLinkedIn sets this cookie from LinkedIn share buttons and ad tags to recognize browser IDs.\n\n\n  * Cookie\n__Secure-ROLLOUT_TOKEN\n  * Duration\n6 months\n  * Description\nYouTube sets this cookie to manage feature rollout and experimentation. It helps Google control which new features or interface changes are shown to users as part of testing and staged rollouts, ensuring consistent experience for a given user during an experiment.\n\n\n  * Cookie\nyt.innertube::nextId\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.\n\n\n  * Cookie\nyt.innertube::requests\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.\n\n\n  * Cookie\nsession_tracker\n  * Duration\nsession\n  * Description\nThis cookie is set by the Reddit. This cookie is used to identify trusted web traffic. It also helps in adverstising on the website.\n\n\n  * Cookie\nedgebucket\n  * Duration\nsession\n  * Description\nReddit sets this cookie to save the information about a log-on Reddit user, for the purpose of advertisement recommendations and updating the content.\n\n\n  * Cookie\ndid\n  * Duration\n1 year\n  * Description\nArbor sets this cookie to show targeted ads to site visitors.This cookie expires after 2 months or 1 year.\n\n\nUncategorised\nOther uncategorised cookies are those that are being analysed and have not been classified into a category as yet.\nNo cookies to display.\nReject All Save My Preferences Accept All\nToggle Search[](https://towardsdatascience.com/)Toggle Mobile Navigation\n[](https://towardsdatascience.com/)\nPublish AI, ML & data-science insights to a global community of data professionals.\nSign in[Submit an Article](https://write.insightmediagroup.io)\n[Latest](https://towardsdatascience.com/latest/)[Editor's Picks](https://towardsdatascience.com/tag/editors-pick/)[Newsletter](https://towardsdatascience.com/tag/the-variable/)[ShipAI](https://towardsdatascience.com/shipai/)\n* * *\n[Write For TDS](https://towardsdatascience.com/submissions/)\n[LinkedIn](https://www.linkedin.com/company/towards-data-science/)[X](https://x.com/TDataScience)Toggle Search\n[Reinforcement Learning](https://towardsdatascience.com/category/artificial-intelligence/reinforcement-learning/)\n# The Reinforcement Learning Handbook: A Guide to Foundational Questions\nSimplifying all the concepts required to master reinforcement learning\n[Avishek Biswas](https://towardsdatascience.com/author/neural.avb/)\nNovember 6, 202516 min read\n![Reinforcement Learning](../images/000.png)\nThis article will explain the fundamental concepts you need to know to understand Reinforcement Learning!\nWe will progress from the absolute basics of \"_what even is RL_ \" to more advanced topics, including agent exploration, values and policies, and distinguish between popular training approaches. Along the way, we will also learn about the various challenges in RL and how researchers have tackled them.\nAt the end of the article, I will also share a YouTube video I made that explains all the concepts in this article in a visually engaging way. If you are not much of a reader, you can check out that companion video instead!\n_Note: All images are produced by the author unless otherwise specified._\n## Reinforcement Learning Basics\nSuppose you want to train an AI model to learn how to navigate an obstacle course. RL is a branch of Machine Learning where our models learn by collecting experiences - taking actions and observing what happens. More formally, RL consists of two components - the agent and the environment.\nLearn this step by step with the interactive [Machine Learning](https://roadmap.sh/machine-learning) roadmap.\n### The Agent\nThe learning process involves two key activities that happen over and over again: **exploration** and **training**. During exploration, the agent collects experiences in the environment by taking actions and finding out what happens. And then, during the training activity, the agent uses these collected experiences to improve itself.\n![](../images/001.jpeg)\nThe agent collects experiences in the environment, and uses these experience to train a policy\n### The Environment\nOnce the agent selects an action, the environment updates. It also returns a reward depending on how well the agent is doing. The environment designer programs how the reward is structured.\nFor example, suppose you are working on an environment that teaches an AI to avoid obstacles and reach the goal. You can program your environment to return a positive reward when the agent is moving closer to the goal. But if the agent collides with an obstacle, you can program it to receive a large negative reward.\nIn other words, the environment provides a _positive reinforcement_ (a high positive reward, for example) when the agent does something _good_ and a _punishment_ (a negative reward for example) when it does something _bad._\nAlthough the agent is oblivious to how the environment actually operates, it can still determine from its reward patterns how to pick optimal actions that lead to maximum rewards.\n![](../images/002.jpeg)\nThe environment and the agent are at the center of RL\n### Policy\nAt each step, the agent AI observes the current state of the environment and selects an action. The goal of RL is to learn a mapping from observations to actions, i.e. **\"given the state I am observing, what action should I choose\"?**\n**In RL terms, this mapping from the state to action is also called a policy.**\nThis policy defines how the agent behaves in different states, and in _deep_ reinforcement learning we learn this function by training some kind of a _deep_ neural network.\n### Reinforcement Learning\n![](../images/003.jpeg)\nThe agent observes state S, queries a network to generate action A. The environment executes the action and returns a reward r and the next state s'. This continues until the episode terminates. Each step the agent takes is later used to train the agent's policy network.\nUnderstanding the distinctions and interplay between the agent, the policy, and the environment is very integral to understand Reinforcement Learning. \n  1. The Agent is the learner that explores and takes actions within the environment\n  2. The Policy is the strategy (often a neural network) that the agent uses to determine which action to take given a state. In RL, our ultimate goal is to train this strategy.\n  3. The Environment is the external system that the agent interacts with, which provides feedback in the form of rewards and new states.\n\n\nHere is a quick one-liner definition you should remember:\n> In Reinforcement Learning, the **agent** follows a **policy** to select actions within the **environment**.\n## Observations and Actions\nThe agent explores the environment by taking a sequence of \"steps\". Each step is one decision. The agent _observes_ the environment's state. Decideson an _action_. Receives a _reward_. Observes the _next state_. In this section, let's understand what observations and actions are.\n### Observation\nObservation is what the agent sees from the environment - the information it receives about the environment's current state. In an obstacle navigation environment, the observation might be LiDAR projections to detect the obstacles. For Atari games, it might be a history of the last few pixel frames. For text generation, it might be the context of the generated tokens so far. In chess, it is the position of all the pieces, whose move it is, etc.\nThe observation ideally contains all the information the agent needs to take an action.\nThe action space is all the available decisions the agent can take. Actions can be discrete or continuous. A discrete action space is when the agent has to choose between a specific set of categorical decisions. For example, in Atari games, the actions might be the buttons of an Atari controller. For text generation, it is to choose between all the tokens present in the model's vocabulary. In chess, it could be a list of available moves. \n![](../images/body-890ad7ebc60c22a3cb62.gif)\nExample of an observation and action picked by an RL agent learning to navigate an obstacle course\nThe environment designer can also choose a continuous action space - where the agent generates continuous values to take a \"step\" in the environment. For example, in our obstacle navigation example, the agent can choose the x and y velocities to get a fine grain control of the movement. In a human character control task, the action is often to output the torque or target angle for every joint in the character's skeleton.\n## The most important lesson\nBut here is something very important to understand: To the agent and the policy - the environment and its specifics can be a complete black box. The agent will receive vector-state information as an observation, generate an action, receive a reward, and later learn from it.\nSo in your mind, you can consider the agent and the environment as two separate entities. The environment defines the state space, the action space, the reward strategies, and the rules.\nThese rules are decoupled from how the agent explores and how the policy is trained on the collected experiences.\nWhen studying a research paper, it is important to clarify in our mind which aspect of RL we are reading about. Is it about a new environment? Is it about a new policy training method? Is it about an exploration strategy? Depending on the answer, you can treat other things as a black box.\n## Exploration\nHow does the agent explore and collect experiences?\nEvery RL algorithm must solve one of the largest dilemmas in training RL agents - exploration vs exploitation.\n**Exploration means trying out new actions to gather information about the environment.** Imagine you are learning to fight a boss in a difficult video game. At first, you are going to try different approaches, different weapons, spells, random things just to see what sticks and what doesn't.\nHowever, once you start seeing some rewards, like consistently deal damage to the boss, you will stop exploring and start exploiting the strategy you have already acquired. **Exploitation means greedily picking actions you think will get the best rewards.**\n> A good RL exploration strategy must balance exploration and exploitation.\nA popular exploration strategy is **Epsilon-Greedy** , where the agent explores with a random action a fraction of the time (defined by a parameter epsilon), and exploits its best-known action the rest of the time. This epsilon value is usually high at the start and is gradually decreased to favor exploitation as the agent learns.\n![](../images/body-cec4908eccb962d1db72.jpeg)\nEpsilon Greedy is an exploration method where the RL Agent selects a random action from time to time\nEpsilon greedy only works in discrete action spaces. In continuous spaces, exploration is often handled in two popular ways. One way is to add a bit of random noise to the action the agent decides to take. Another popular technique is to add an **entropy bonus** to the loss function, which encourages the policy to be less certain about its choices, naturally leading to more varied actions and exploration.\nSome other ways to encourage exploration are:\n  * Design the environment to use random initialization of states at the beginning of the episodes.\n  * Intrinsic exploration methods where the agent acts out of its own \"curiosity.\" Algorithms like Curiosity and RND reward the agent for visiting novel states or taking actions where the outcome is hard to predict.\n\n\nI cover these fascinating methods in my Agentic Curiosity video, so be sure to check that out!\nPlease accept cookies to access this content\n## Training Algorithms\nA majority of research papers and academic topics in Reinforcement Learning are about optimizing the agent's strategy to pick actions. The goal of optimization algorithms is to learn actions that maximize the long-term expected rewards.\nLet's take a look at the different algorithmic choices one by one.\n## Model-Based vs Model-Free\nAlright, so our agent has explored the environment and collected a ton of experience. Now what?\nDoes the agent learn to act directly from these experiences? Or does it first try to model the environment's dynamics and physics?\nOne approach is **model-based learning.** Here, the agent first uses its experience to build its own internal simulation, or a world model. This model learns to predict the consequences of its actions, i.e., given a state and action, what is the resulting next state and reward? Once it has this model, it can practice and plan entirely within its own imagination, running thousands of simulations to find the best strategy without ever taking a risky step in the real world.\n![](../images/body-398ccd015c8fc19a6f4c.jpeg)\nModel-based RL learns a separate model to learn how the environment works\nThis is particularly useful in environments where collecting real world experience can be expensive - like robotics or self-driving cars. Examples of Model-Based RL are: [Dyna-Q](https://arxiv.org/abs/1801.06176), [World Models](https://arxiv.org/abs/1803.10122), [Dreamer](https://arxiv.org/abs/2301.04104), etc. I'll write a separate article someday to cover these models in more detail.\nThe second is called **model-free learning**. This is what the rest of the article is going to cover. Here, the agent treats the environment as a black box and learns a policy directly from the collected experiences. Let's talk more about Model-free RL in the next section.\n## Value-Based Learning\nThere are two main approaches to model-free RL algorithms.\nValue-based algorithms learn to evaluate how good each state is. Policy-based algorithms learn directly how to act in each state.\n![](../images/body-517d20eb56b5a81e6a53.jpeg)\nValue Based vs Policy Based methods\nIn value-based methods, the RL agent learns the _\"value\"_ of being in a specific state. The value of a state literally means how good the state is. The intuition is that if the agent knows which states are good, it can pick actions that lead to those states more regularly.\nAnd thankful there is a mathematical way of doing this - **the Bellman Equation**.\n**V(s) = r + γ * max V(s').**\nThis recurrence equation basically says the **value** **V(s)** of _state s_ is equal to the immediate **reward r** of being in the state plus the**value** of the best _next-state s_ ' the agent can reach from s. Gamma (**γ**) is a discounted factor (between 0 and 1) that nerfs the goodness of the next state. It essentially decides how much the agent cares about rewards in the distant future versus immediate rewards. A **γ** close to **1** makes the agent \"far-sighted,\" whereas a **γ** close to **0** makes the agent \"short-sighted,\" greedily caring almost only about the very next reward.\n### Q-Learning\nWe learnt the intuition behind state values, but how do we use that information to learn actions? The Q-Learning equation answers this.\n**Q(s, a) = r + γ * max_a Q(s', a')**\nThe Q-value Q(s,a) is the _**q**_ _uality-value_ of the action a in state s. The above equation basically states: The quality of an action a in state s is the immediate reward **r** you get from being in state s, plus the discounted quality value of the next best action.\nSo in summary: \n  * **Q-values** are the quality values of each action in each state.\n  * **V-values** are the value of a specific state; it is equal to the maximum Q-value of all actions in that state.\n  * **Policy π** at a specific state is the action that has the highest Q-value in that state.\n\n\n![](../images/body-0963967acd4d9a2aa273.jpeg)\nQ-values, State values, and Policy are deeply interconnected\nTo learn more about Q-Learning, you can research [Deep Q Networks](https://arxiv.org/abs/1312.5602), and their descendants, like [Double Deep Q Networks](https://arxiv.org/abs/1509.06461) and [Dueling Deep Q Networks.](https://arxiv.org/abs/1511.06581)\nValue-based learning trains RL agents by learning the value of being in specific states. However, is there a direct way to learn optimal actions without needing to learn state values? Yes.\nPolicy learning methods directly learn optimal action strategies without explicitly learning state values. Before we learn how, we must learn another important concept first. Temporal Difference Learning vs Monte Carlo Sampling.\n## TD Learning vs MC Sampling\nHow does the agent consolidate future experiences to learn?\nIn Temporal Difference (TD) Learning, the agent updates its value estimates after every single step using the Bellman equation. And it does so by seeing its own estimate of the Q-value in the next state. This strategy is called 1-step TD Learning, or one-step Temporal Difference Learning. You take one step and update your learning based on your past estimates.\n![](../images/body-5fce1a433d4efa079150.gif)\nIn TD Learning, we take one step and use the value estimates of the next state\nThe second option is called Monte-Carlo sampling. Here, the agent waits for the entire episode to finish before updating anything. And then it uses the complete return from the episode:   \nQ(s,a) = r₁ + γr₂ + γ²r₃ + ... + γⁿrₙ\n![](../images/body-e79b9b9ba3ba663e6850.gif)\nIn MC Sampling, we complete the entire episode to compute the estimates from actual rewards\n### Trade-offs between TD Learning and MC Sampling\nTD Learning is pretty cool coz the agent can learn something from every single step, even before it completes an episode. Meaning you can save your collected experiences for a long time and keep training even on old experiences, but with new Q-values. However, TD learning is heavily biased by the agent's current estimate of the state. So if the agent's estimates are wrong, it will keep reinforcing those wrong estimates. This is called the \"_bootstrapping problem_.\"\nOn the other hand, Monte Carlo learning is always accurate because it uses the true returns from actual episodes. But in most RL environments, rewards and state transitions can be random. Also, as the agent explores the environment, its own actions can be random, so the states it visits during rollout are also random. This results in the pure TD-Learning method suffering from high variance issues as returns can vary dramatically between episodes.\n## Policy Gradients\nAlright, now that we have understood the concept of TD-Learning vs MC Sampling, it's time to get back to Policy-Based Learning methods.\nRecall that value-based methods like DQN first have to explicitly calculate the value, or Q-value, for every single possible action, and then they pick the best one. But it is possible to skip this step, and Policy Gradient methods like **REINFORCE** do exactly that.\n![](../images/body-2dbadeca12069a98c0f6.jpeg)\nPolicy gradient methods input the state and output the probability of actions to take\nIn REINFORCE, the policy network outputs probabilities for each action, and we train it to increase the probability of actions that lead to good outcomes. For discrete spaces, PG methods output the probability of each action as a categorical distribution. For continuous spaces, PG methods output as Gaussian distributions, predicting the mean and standard deviation of each element in the action vector.\nSo the question is, how exactly do you train such a model that directly predicts action probabilities from states?\nHere is where the **Policy Gradient Theorem** comes in. In this article, I will explain the core idea intuitively.\n  * Our policy gradient model is often denoted in the literature as pi_theta(a|s). Here, theta denotes the weights of the neural network. pi_theta(a|s) is the predicted probability of action a in state s by neural network theta.\n  * From a newly initialized policy network, we let the agent play out a full episode and collect all the rewards.\n  * For every action it took, figure out the total discounted return that came after it. This is done using the Monte Carlo approach.\n  * Finally, to actually train the model, the policy gradient theorem asks us to maximize the formula provided in the figure below.\n  * If the return was high, this update will make that action more probable in the future by increasing pi(a|s). If the return was negative, this update will make the action less probable by reducing the pi(a|s).\n\n\n![](../images/body-5ff69f693658df21af44.png)\nPolicy Gradients\n**The distinction between Q-Learning and REINFORCE**\nOne of the core differences between Q-Learning and REINFORCE is that Q-Learning uses 1-step TD Learning, and REINFORCE uses Monte Carlo Sampling.\nBy using 1-step TD, Q-learning must determine the quality value Q of each state-action possibility. Because recall that in 1-step TD the agent can take just one step in the environment and determine a quality score of the state.\nOn the other hand, with Monte Carlo sampling, the agent does not need to rely on an estimator to learn. Instead, it uses actual returns observed during exploration. This makes REINFORCE \"unbiased\" with the caveat that it requires multiple samples to correctly estimate the value of a trajectory. Furthermore, the agent cannot train until it fully finishes a trajectory (that is reach a terminal state), and it cannot reuse trajectories after the policy network updates.\nIn practice, REINFORCE often leads to stability issues and sample inefficiency. Let's talk about how Actor Critic addresses these limitations.\n## Advantage Actor Critic\nIf you try to use vanilla REINFORCE on most complex problems, it will struggle, and the reason why is twofold.\nThe first is because it suffers from high variance coz it's a Monte Carlo sampling method. Second, it has no sense of baseline. Like, imagine an environment that always gives you a positive reward, then the returns will never be negative, so REINFORCE will increase the probabilities of all actions, albeit in a disproportionate way.\nWe don't want to reward actions just for getting a positive score. We want to reward them for being **better than average**.\nAnd that is where the concept of _advantage_ becomes important. Instead of just using the raw return to update our policy, we'll subtract the expected return for that state. So our new update signal becomes: \n**Advantage = The Return you got - The Return you expected**\nWhile Advantage gives us a baseline for our observed returns, let's also discuss the concept of Actor Critic methods.\n**Actor Critic** combines the best of Value-Based Methods (like DQN) and the best of Policy-Based Methods (like REINFORCE). Actor Critic methods train a separate \"critic\" neural network that is only trained to evaluate states, much like the Q-Network from earlier.\nThe actor method, on the other hand, learns the policy. \n![](../images/body-ded22e7542456775a330.png)\nAdvantage Actor Critic\nCombining Advantage and Actor critics, we can understand how the [popular A2C algorithm](https://arxiv.org/abs/1602.01783) works:\n  * Initialize 2 neural networks: the policy or actor network, and the value or critic network. The actor network inputs a state and outputs action probabilities. The critic network inputs a state and outputs a single float representing the state's value.\n  * We generate some rollouts in the environment by querying the actor\n  * We update the critic network using either TD Learning or Monte Carlo Learning. There are more advanced approaches, like [Generalized Advantage Estimates](https://arxiv.org/abs/1506.02438) as well, that combine the two approaches for more stable learning.\n  * We evaluate the advantage by subtracting the observed return from the average return generated by the Critic Network\n  * Finally, we update the Policy network by using the advantage and the policy gradient equation.\n\n\nActor-critic methods solve the variance problem in policy gradients by using a value function as a baseline. PPO (Proximal Policy Optimization) extends A2C by adding the concepts of \"trust regions\" into the learning algorithm, which prevents excessive changes to the network weights during learning. We won't get into details about [PPO](https://arxiv.org/abs/1707.06347) in this article; maybe someday we will open that Pandora's box.\n## Conclusion\nThis article is a companion piece to the YouTube video below I made. Feel free to check it out, if you enjoyed this read.\nPlease accept cookies to access this content\nEvery algorithm makes specific choices for each question, and these choices cascade through the entire system, affecting everything from sample efficiency to stability to real-world performance.\nIn the end, creating an RL algorithm is about answering these problems by making your choices. DQNs choose to learn values. policy methods directly learns a **policy**. Monte Carlo methods update after a full episode using actual returns - this makes them unbiased, but they have high variance because of the stochastic nature of RL exploration. TD Learning instead chooses to learn at every step based on the agent's own estimates. Actor Critic methods combine DQNs and Policy Gradients by learning an actor and a critic network separately.\nNote that there's a lot we didn't cover today. But this is a good base to get you started with Reinforcement Learning. \nThat's the end of this article, see you in the next one! You can use the links below to discover more of my work.\n**My Patreon:**  \n<https://www.patreon.com/NeuralBreakdownwithAVB>\n**My YouTube channel:**  \n<https://www.youtube.com/@avb_fj>\n**Follow me on Twitter:**  \n<https://x.com/neural_avb>\n**Read my articles:**   \n<https://towardsdatascience.com/author/neural-avb/>\n## Register Now to Continue Reading\n### Unlock Towards Data Science with a Free Account\nAll articles on Towards Data Science are available to registered users. Create a free account today to access this article and thousands more.\nRegister for freeSign in to your account\n* * *\n![](../images/body-849620ef9680d77fc51e.jpeg)\nWritten By\n## [Avishek Biswas](https://towardsdatascience.com/author/neural.avb/)\n[See all from Avishek Biswas](https://towardsdatascience.com/author/neural.avb/)\n[Editor's Picks](https://towardsdatascience.com/tag/editors-pick/)[Artificial Intelligence](https://towardsdatascience.com/tag/artificial-intelligence/)[Machine Learning](https://towardsdatascience.com/tag/machine-learning/)[Q Learning](https://towardsdatascience.com/tag/q-learning/)[Reinforcement Learning](https://towardsdatascience.com/tag/reinforcement-learning/)\nShare This Article\n  * [](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Ftowardsdatascience.com%2Fthe-handbook-of-reinforcement-learning-guide-to-the-foundational-questions%2F&title=The%20Reinforcement%20Learning%20Handbook%3A%20A%20Guide%20to%20Foundational%20Questions)\n  * [](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Ftowardsdatascience.com%2Fthe-handbook-of-reinforcement-learning-guide-to-the-foundational-questions%2F&title=The%20Reinforcement%20Learning%20Handbook%3A%20A%20Guide%20to%20Foundational%20Questions)\n  * [](https://x.com/share?url=https%3A%2F%2Ftowardsdatascience.com%2Fthe-handbook-of-reinforcement-learning-guide-to-the-foundational-questions%2F&text=The%20Reinforcement%20Learning%20Handbook%3A%20A%20Guide%20to%20Foundational%20Questions)\n\n\nTowards Data Science is a community publication. Submit your insights to reach our global audience and earn through the TDS Author Payment Program.\n[Write for TDS](https://towardsdatascience.com/submissions/)\n## Related Articles\n  * [![](../images/004.jpg)](https://towardsdatascience.com/deep-reinforcement-learning-the-actor-critic-method/)\n## [Deep Reinforcement Learning: The Actor-Critic Method](https://towardsdatascience.com/deep-reinforcement-learning-the-actor-critic-method/)\n[Reinforcement Learning](https://towardsdatascience.com/category/artificial-intelligence/reinforcement-learning/)\nRobot friends collaborate to learn to fly a drone\n[Vedant Jumle](https://towardsdatascience.com/author/vedantjumle/)\nJanuary 1, 202617 min read\n  * [![](../images/body-63beb50f664a055ed739.jpg)](https://towardsdatascience.com/latest-picks-why-how-to-use-the-naive-bayes-algorithms-in-a-regulated-industry-with-sklearn-51c11c87300a/)\n## [Latest picks: Why & How to use the Naive Bayes algorithms in a regulated industry with sklearn](https://towardsdatascience.com/latest-picks-why-how-to-use-the-naive-bayes-algorithms-in-a-regulated-industry-with-sklearn-51c11c87300a/)\n[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)\nYour daily dose of data science\n[TDS Editors](https://towardsdatascience.com/author/towardsdatascience/)\nDecember 2, 20201 min read\n  * [![](../images/006.jpg)](https://towardsdatascience.com/all-you-need-to-know-to-start-speech-processing-with-deep-learning-102c916edf62/)\n## [Terms you need to know to start Speech Processing with Deep Learning](https://towardsdatascience.com/all-you-need-to-know-to-start-speech-processing-with-deep-learning-102c916edf62/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nWe all love our Alexa's and our Siri's. Understand some of the key terms used in audio technology.\n[Harsh Maheshwari](https://towardsdatascience.com/author/anveenaik/)\nMay 10, 20215 min read\n  * [![](../images/007.jpg)](https://towardsdatascience.com/fake-news-detection-in-environmental-communication-322ad64dfaba/)\n## [Fake News Detection in Environmental Communication](https://towardsdatascience.com/fake-news-detection-in-environmental-communication-322ad64dfaba/)\n[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)\nA Computational Conundrum\n[Veronica Villa](https://towardsdatascience.com/author/veronica.villa/)\nNovember 17, 20226 min read\n  * [![](../images/008.jpg)](https://towardsdatascience.com/i-vibe-coded-an-app-in-just-two-hours-and-regretted-it-the-next-day/)\n## [I Vibe-Coded an App in Just Two Hours (And Regretted It the Next Day)](https://towardsdatascience.com/i-vibe-coded-an-app-in-just-two-hours-and-regretted-it-the-next-day/)\n[Agentic AI](https://towardsdatascience.com/category/artificial-intelligence/agentic-ai/)\nI saved my day with a mere $52 bill. But you don't have to repeat my mistake.\n[Thuwarakesh Murallie](https://towardsdatascience.com/author/thuwarakesh/)\nSeptember 7, 20266 min read\n  * [![](../images/009.png)](https://towardsdatascience.com/my-first-exploratory-data-analysis-with-chatgpt-7f100005efdc/)\n## [My First Exploratory Data Analysis with ChatGPT](https://towardsdatascience.com/my-first-exploratory-data-analysis-with-chatgpt-7f100005efdc/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nUnleashing the power of ChatGPT: A deep dive into an exploratory data analysis and future opportunities\n[Jye Sawtell-Rickson](https://towardsdatascience.com/author/jyesr/)\nMay 10, 202316 min read\n  * [![](../images/010.jpeg)](https://towardsdatascience.com/random-forest-regression-5f605132d19d/)\n## [Random Forest Regression](https://towardsdatascience.com/random-forest-regression-5f605132d19d/)\n[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)\nA basic explanation and use case in 7 minutes\n[Nima Beheshti](https://towardsdatascience.com/author/nimab/)\nMarch 2, 20227 min read\n  * [![](../images/011.jpg)](https://towardsdatascience.com/tpot-automated-machine-learning-in-python-e56800e69c11/)\n## [TPOT: Automated Machine Learning in Python](https://towardsdatascience.com/tpot-automated-machine-learning-in-python-e56800e69c11/)\n[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)\nMachine learning for everybody?\n[Dario Radečić](https://towardsdatascience.com/author/radecicdario/)\nJuly 2, 20207 min read\n  * [![](../images/012.png)](https://towardsdatascience.com/gato-the-latest-from-deepmind-towards-true-ai-1ac06e1d18cd/)\n## [Gato, the latest from Deepmind. Towards true AI?](https://towardsdatascience.com/gato-the-latest-from-deepmind-towards-true-ai-1ac06e1d18cd/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nGato can play games, generate text, process images, and control robotic arms. And it's not even too big. Is true AI coming up?\n[Luciano Abriata](https://towardsdatascience.com/author/lucianosphere/)\nMay 28, 20225 min read\n\n\n  * [YouTube](https://www.youtube.com/c/TowardsDataScience)\n  * [X](https://x.com/TDataScience)\n  * [LinkedIn](https://www.linkedin.com/company/towards-data-science/)\n  * [Threads](https://www.threads.net/@towardsdatascience)\n  * [Bluesky](https://bsky.app/profile/towardsdatascience.com)\n\n\n[](https://towardsdatascience.com/)\nYour home for data science and AI. The world's leading publication for data science, data analytics, data engineering, machine learning, and artificial intelligence professionals.\nSubscribe to Our Newsletter[Write For TDS](https://towardsdatascience.com/submissions/)•[About](https://towardsdatascience.com/about-towards-data-science-d691af11cc2f/)•[Advertise](https://contact.towardsdatascience.com/advertise-with-towards-data-science)•[Privacy Policy](https://towardsdatascience.com/privacy-policy/)•[Terms of Use](https://towardsdatascience.com/website-terms-of-use/)\n© Insight Media Group, LLC 2026•[The New Stack](https://thenewstack.io)•[roadmap.sh](https://roadmap.sh)•[Creator Network](https://insightmediagroup.io/creator-network)\n####  Recommended Articles \nClose\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607639/image?etag=1781250125848&width=500&height=500) Javascript Fatigue: HTMX Is All You Need to Build ChatGPT — Part 1 ](https://towardsdatascience.com/javascript-fatigue-you-dont-need-js-to-build-chatgpt/ \"Javascript Fatigue: HTMX Is All You Need to Build ChatGPT — Part 1\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607930/image?etag=1782124566054&width=500&height=500) The Subset Sum Problem Solved in Linear Time for Dense Enough Inputs ](https://towardsdatascience.com/subset-sum-problem-solved-in-linear-time-for-dense-enough-inputs/ \"The Subset Sum Problem Solved in Linear Time for Dense Enough Inputs\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/3660/image?etag=1780176246070&width=500&height=500) Does Your Company Have a Data Strategy? ](https://towardsdatascience.com/does-your-company-have-a-data-strategy-e8944dbec4ae/ \"Does Your Company Have a Data Strategy?\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/4970/image?etag=1780565225463&width=500&height=500) Productivity Tips, Data Career Insights, and Other Recent Must-Reads ](https://towardsdatascience.com/productivity-tips-data-career-insights-and-other-recent-must-reads-5c47eb7a2fe0/ \"Productivity Tips, Data Career Insights, and Other Recent Must-Reads\")\n\n\n",
  "metadata": {
    "title": "The Reinforcement Learning Handbook: A Guide to Foundational Questions | Towards Data Science",
    "description": "Simplifying all the concepts required to master reinforcement learning",
    "keywords": null,
    "author": "Avishek Biswas",
    "og:locale": "en_US",
    "og:type": "article",
    "og:title": "The Reinforcement Learning Handbook: A Guide to Foundational Questions",
    "og:description": "Simplifying all the concepts required to master reinforcement learning",
    "og:url": "https://towardsdatascience.com/the-handbook-of-reinforcement-learning-guide-to-the-foundational-questions/",
    "og:site_name": "Towards Data Science",
    "og:image": "https://assets.insightmediagroup.io/media/wp-content/uploads/2025/11/ArticleThumbnail.png",
    "og:image:width": "1280",
    "og:image:height": "720",
    "og:image:type": "image/png",
    "twitter:card": "summary_large_image",
    "twitter:site": "@TDataScience",
    "twitter:creator": "@TDataScience",
    "twitter:label1": "Written by",
    "twitter:data1": "Avishek Biswas",
    "twitter:label2": "Est. reading time",
    "twitter:data2": "16 min read",
    "article:published_time": "2025-11-06T09:30:07.000Z",
    "article:modified_time": "2025-11-06T09:30:07.000Z",
    "article:author": "https://towardsdatascience.com/author/neural.avb/"
  },
  "paywall": {
    "listed_paid": false,
    "detected": false,
    "marker": "",
    "public_only": false,
    "policy": "付费/会员内容只保留页面公开可见部分，不绕过付费墙"
  },
  "crawl": {
    "success": true,
    "status_code": 200,
    "error": ""
  },
  "code_blocks": [],
  "images": [
    {
      "status": "http_404",
      "url": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607639/image?etag=1781250125848&width=500&height=500",
      "src": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607639/image?etag=1781250125848&width=500&height=500",
      "alt": "",
      "downloaded": false,
      "discovery": "saved_markdown",
      "retried_at": "2026-10-20T18:00:37Z"
    },
    {
      "status": "http_404",
      "url": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607930/image?etag=1782124566054&width=500&height=500",
      "src": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607930/image?etag=1782124566054&width=500&height=500",
      "alt": "",
      "downloaded": false,
      "discovery": "saved_markdown",
      "retried_at": "2026-10-20T18:00:37Z"
    },
    {
      "status": "http_404",
      "url": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/3660/image?etag=1780176246070&width=500&height=500",
      "src": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/3660/image?etag=1780176246070&width=500&height=500",
      "alt": "",
      "downloaded": false,
      "discovery": "saved_markdown",
      "retried_at": "2026-10-20T18:00:38Z"
    },
    {
      "status": "http_404",
      "url": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/4970/image?etag=1780565225463&width=500&height=500",
      "src": "https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/4970/image?etag=1780565225463&width=500&height=500",
      "alt": "",
      "downloaded": false,
      "discovery": "saved_markdown",
      "retried_at": "2026-10-20T18:00:38Z"
    }
  ],
  "audio": [],
  "videos": [
    {
      "url": "https://www.youtube.com/c/TowardsDataScience",
      "kind": "channel_reference",
      "status": "reference_only"
    },
    {
      "url": "https://www.youtube.com/@avb_fj",
      "kind": "channel_reference",
      "status": "reference_only"
    }
  ],
  "links": [
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/latest/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/editors-pick/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/the-variable/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/shipai/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/submissions/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/category/artificial-intelligence/reinforcement-learning/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/author/neural.avb/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/author/neural-avb/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/artificial-intelligence/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/machine-learning/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/q-learning/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/tag/reinforcement-learning/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/deep-reinforcement-learning-the-actor-critic-method/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/author/vedantjumle/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/latest-picks-why-how-to-use-the-naive-bayes-algorithms-in-a-regulated-industry-with-sklearn-51c11c87300a/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/category/artificial-intelligence/machine-learning/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/author/towardsdatascience/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/all-you-need-to-know-to-start-speech-processing-with-deep-learning-102c916edf62/"
    },
    {
      "type": "internal",
      "href": "https://towardsdatascience.com/category/artificial-intelligence/"
    },
    {
      "type": "external",
      "href": "https://write.insightmediagroup.io"
    },
    {
      "type": "external",
      "href": "https://www.linkedin.com/company/towards-data-science/"
    },
    {
      "type": "external",
      "href": "https://x.com/TDataScience"
    },
    {
      "type": "external",
      "href": "https://roadmap.sh/machine-learning"
    },
    {
      "type": "external",
      "href": "https://arxiv.org/abs/1801.06176"
    },
    {
      "type": "external",
      "href": "https://arxiv.org/abs/1803.10122"
    },
    {
      "type": "external",
      "href": "https://arxiv.org/abs/2301.04104"
    },
    {
      "type": "external",
      "href": "https://arxiv.org/abs/1312.5602"
    },
    {
      "type": "external",
      "href": "https://arxiv.org/abs/1509.06461"
    },
    {
      "type": "external",
      "href": "https://arxiv.org/abs/1511.06581"
    },
    {
      "type": "external",
      "href": "https://arxiv.org/abs/1602.01783"
    },
    {
      "type": "external",
      "href": "https://arxiv.org/abs/1506.02438"
    },
    {
      "type": "external",
      "href": "https://arxiv.org/abs/1707.06347"
    },
    {
      "type": "external",
      "href": "https://www.patreon.com/NeuralBreakdownwithAVB"
    },
    {
      "type": "external",
      "href": "https://www.youtube.com/@avb_fj"
    },
    {
      "type": "external",
      "href": "https://x.com/neural_avb"
    },
    {
      "type": "external",
      "href": "https://www.facebook.com/sharer/sharer.php?title=The+Reinforcement+Learning+Handbook%3A+A+Guide+to+Foundational+Questions&u=https%3A%2F%2Ftowardsdatascience.com%2Fthe-handbook-of-reinforcement-learning-guide-to-the-foundational-questions%2F"
    },
    {
      "type": "external",
      "href": "https://www.linkedin.com/shareArticle?mini=true&title=The+Reinforcement+Learning+Handbook%3A+A+Guide+to+Foundational+Questions&url=https%3A%2F%2Ftowardsdatascience.com%2Fthe-handbook-of-reinforcement-learning-guide-to-the-foundational-questions%2F"
    },
    {
      "type": "external",
      "href": "https://x.com/share?text=The+Reinforcement+Learning+Handbook%3A+A+Guide+to+Foundational+Questions&url=https%3A%2F%2Ftowardsdatascience.com%2Fthe-handbook-of-reinforcement-learning-guide-to-the-foundational-questions%2F"
    },
    {
      "type": "external",
      "href": "https://www.youtube.com/c/TowardsDataScience"
    }
  ],
  "repair_version": 2,
  "repaired_at": "2026-10-20T17:30:13Z",
  "source_url": "https://towardsdatascience.com/the-handbook-of-reinforcement-learning-guide-to-the-foundational-questions/",
  "delivery_status": "unverified",
  "discovery_status": "http_403",
  "missing_reason": "源页面未重新核验:http_403；已按保留正文补采图片",
  "repair_error": "",
  "actual_video_files": [],
  "expected_saved_body_images": 4,
  "image_discovery": "saved_markdown",
  "source_body_markdown": "![Revisit consent button](https://cdn-cookieyes.com/assets/images/revisit.svg)\nWe value your privacy\nWe use cookies to enhance your browsing experience, serve personalised ads or content, and analyse our traffic. By clicking \"Accept All\", you consent to our use of cookies.\nCustomise Reject All Accept All\nCustomise Consent Preferences ![](https://cdn-cookieyes.com/assets/images/close.svg)\nWe use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.\nThe cookies that are categorised as \"Necessary\" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... Show more\nNecessaryAlways Active\nNecessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.\n  * Cookie\nBCTempID\n  * Duration\n10 minutes\n  * Description\nNo description available.\n\n\n  * Cookie\n__cf_bm\n  * Duration\n1 hour\n  * Description\nThis cookie, set by Cloudflare, is used to support Cloudflare Bot Management. \n\n\n  * Cookie\nAWSALBCORS\n  * Duration\n7 days\n  * Description\nAmazon Web Services set this cookie for load balancing.\n\n\n  * Cookie\n_cfuvid\n  * Duration\nsession\n  * Description\nCloudflare sets this cookie to track users across sessions to optimize user experience by maintaining session consistency and providing personalized services\n\n\n  * Cookie\nli_gc\n  * Duration\n6 months\n  * Description\nLinkedin set this cookie for storing visitor's consent regarding using cookies for non-essential purposes.\n\n\n  * Cookie\n__hssrc\n  * Duration\nsession\n  * Description\nThis cookie is set by Hubspot whenever it changes the session cookie. The __hssrc cookie set to 1 indicates that the user has restarted the browser, and if the cookie does not exist, it is assumed to be a new session.\n\n\n  * Cookie\n__hssc\n  * Duration\n1 hour\n  * Description\nHubSpot sets this cookie to keep track of sessions and to determine if HubSpot should increment the session number and timestamps in the __hstc cookie.\n\n\n  * Cookie\nwpEmojiSettingsSupports\n  * Duration\nsession\n  * Description\nWordPress sets this cookie when a user interacts with emojis on a WordPress site. It helps determine if the user's browser can display emojis properly.\n\n\n  * Cookie\nBCSessionID\n  * Duration\n1 year 1 month 4 days\n  * Description\nBlueconic sets this cookie as a unique identifier for the BlueConic profile.\n\n\n  * Cookie\n_octo\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nlogged_in\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\n__Secure-YEC\n  * Duration\npast\n  * Description\nYouTube sets this cookie to stores the user's video player preferences using embedded YouTube video\n\n\n  * Cookie\n__eoi\n  * Duration\n6 months\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nAWSALBTGCORS\n  * Duration\n7 days\n  * Description\nNo description available.\n\n\n  * Cookie\nlogin-status-p\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nAWSALBTG\n  * Duration\n7 days\n  * Description\nNo description available.\n\n\n  * Cookie\ncsrf_token\n  * Duration\nsession\n  * Description\nNo description available.\n\n\n  * Cookie\ntoken_v2\n  * Duration\n1 day\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nD\n  * Duration\n1 year\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nPHPSESSID\n  * Duration\nsession\n  * Description\nThis cookie is native to PHP applications. The cookie stores and identifies a user's unique session ID to manage user sessions on the website. The cookie is a session cookie and will be deleted when all the browser windows are closed.\n\n\n  * Cookie\nVISITOR_PRIVACY_METADATA\n  * Duration\n6 months\n  * Description\nYouTube sets this cookie to store the user's cookie consent state for the current domain. \n\n\n  * Cookie\ncookietest\n  * Duration\nsession\n  * Description\nThe cookietest cookie is typically used to determine whether the user's browser accepts cookies, essential for website functionality and user experience.\n\n\n  * Cookie\n__Host-airtable-session\n  * Duration\n1 year\n  * Description\nThis cookie is used to enable us to integrate the services of Airtable.\n\n\n  * Cookie\n__Host-airtable-session.sig\n  * Duration\n1 year\n  * Description\nThis cookie is used to enable us to integrate the services of Airtable.\n\n\n  * Cookie\nm\n  * Duration\n1 year 1 month 4 days\n  * Description\nStripe sets this cookie for fraud prevention purposes. It identifies the device used to access the website, allowing the website to be formatted accordingly.\n\n\n  * Cookie\nBIGipServer*\n  * Duration\nsession\n  * Description\nMarketo sets this cookie to collect information about the user's online activity and build a profile about their interests to provide advertisements relevant to the user. \n\n\n  * Cookie\n__cfruid\n  * Duration\nsession\n  * Description\nCloudflare sets this cookie to identify trusted web traffic.\n\n\n  * Cookie\n_GRECAPTCHA\n  * Duration\n6 months\n  * Description\nGoogle Recaptcha service sets this cookie to identify bots to protect the website against malicious spam attacks.\n\n\n  * Cookie\n__Secure-YNID\n  * Duration\n6 months\n  * Description\nGoogle cookie used to protect user security and prevent fraud, especially during the login process.\n\n\n  * Cookie\ncookieyes-consent\n  * Duration\n1 year\n  * Description\nCookieYes sets this cookie to remember users' consent preferences so that their preferences are respected on subsequent visits to this site. It does not collect or store any personal information about the site visitors.\n\n\nFunctional\nFunctional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.\n  * Cookie\nlidc\n  * Duration\n1 day\n  * Description\nLinkedIn sets the lidc cookie to facilitate data center selection.\n\n\n  * Cookie\nbrw\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nbrwConsent\n  * Duration\n5 minutes\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nWMF-Uniq\n  * Duration\n1 year\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nloom_anon_comment\n  * Duration\n1 year\n  * Description\nNo description available.\n\n\n  * Cookie\nloom_referral_video\n  * Duration\nsession\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nVISITOR_INFO1_LIVE\n  * Duration\n6 months\n  * Description\nA cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.\n\n\n  * Cookie\nyt-remote-connected-devices\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to store the user's video preferences using embedded YouTube videos.\n\n\n  * Cookie\nytidb::LAST_RESULT_ENTRY_KEY\n  * Duration\nNever Expires\n  * Description\nThe cookie ytidb::LAST_RESULT_ENTRY_KEY is used by YouTube to store the last search result entry that was clicked by the user. This information is used to improve the user experience by providing more relevant search results in the future.\n\n\n  * Cookie\nyt-remote-device-id\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to store the user's video preferences using embedded YouTube videos.\n\n\n  * Cookie\nyt-remote-session-name\n  * Duration\nsession\n  * Description\nThe yt-remote-session-name cookie is used by YouTube to store the user's video player preferences using embedded YouTube video.\n\n\n  * Cookie\nyt-remote-fast-check-period\n  * Duration\nsession\n  * Description\nThe yt-remote-fast-check-period cookie is used by YouTube to store the user's video player preferences for embedded YouTube videos.\n\n\n  * Cookie\nyt-remote-session-app\n  * Duration\nsession\n  * Description\nThe yt-remote-session-app cookie is used by YouTube to store user preferences and information about the interface of the embedded YouTube video player.\n\n\n  * Cookie\nyt-remote-cast-available\n  * Duration\nsession\n  * Description\nThe yt-remote-cast-available cookie is used to store the user's preferences regarding whether casting is available on their YouTube video player.\n\n\n  * Cookie\nyt-remote-cast-installed\n  * Duration\nsession\n  * Description\nThe yt-remote-cast-installed cookie is used to store the user's video player preferences using embedded YouTube video.\n\n\n  * Cookie\ncp_session\n  * Duration\n3 months\n  * Description\nCodepen sets this cookie for Help systems found in the website.\n\n\n  * Cookie\nloid\n  * Duration\n1 year 1 month 4 days\n  * Description\nThis cookie is set by the Reddit. The cookie enables the sharing of content from the website onto the social media platform.\n\n\nAnalytics\nAnalytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.\n  * Cookie\n__hstc\n  * Duration\n6 months\n  * Description\nHubspot set this main cookie for tracking visitors. It contains the domain, initial timestamp (first visit), last timestamp (last visit), current timestamp (this visit), and session number (increments for each subsequent session).\n\n\n  * Cookie\nhubspotutk\n  * Duration\n6 months\n  * Description\nHubSpot sets this cookie to keep track of the visitors to the website. This cookie is passed to HubSpot on form submission and used when deduplicating contacts.\n\n\n  * Cookie\n_ga\n  * Duration\n1 year 1 month 4 days\n  * Description\nGoogle Analytics sets this cookie to calculate visitor, session and campaign data and track site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognise unique visitors.\n\n\n  * Cookie\n_ga_*\n  * Duration\n1 year 1 month 4 days\n  * Description\nGoogle Analytics sets this cookie to store and count page views.\n\n\n  * Cookie\n__Host-psifi.analyticsTrace\n  * Duration\n6 hours\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\n__Host-psifi.analyticsTraceV2\n  * Duration\n6 hours\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\n_gh_sess\n  * Duration\nsession\n  * Description\nGitHub sets this cookie for temporary application and framework state between pages like what step the user is on in a multiple step form.\n\n\n  * Cookie\nYSC\n  * Duration\nsession\n  * Description\nYSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.\n\n\n  * Cookie\najs_anonymous_id\n  * Duration\n1 year\n  * Description\nThis cookie is set by Segment to count the number of people who visit a certain site by tracking if they have visited before.\n\n\n  * Cookie\nvuid\n  * Duration\n1 year 1 month 4 days\n  * Description\nVimeo installs this cookie to collect tracking information by setting a unique ID to embed videos on the website. \n\n\nPerformance\nPerformance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.\n  * Cookie\nAWSALB\n  * Duration\n7 days\n  * Description\nAWSALB is an application load balancer cookie set by Amazon Web Services to map the session to the target.\n\n\n  * Cookie\nacq\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nacq.sig\n  * Duration\npast\n  * Description\nDescription is currently not available.\n\n\n  * Cookie\nptc\n  * Duration\n2 years\n  * Description\nNo description available.\n\n\nAdvertisement\nAdvertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.\n  * Cookie\nmuc_ads\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to collect user behaviour and interaction data to optimize the website.\n\n\n  * Cookie\nguest_id_marketing\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor.\n\n\n  * Cookie\nguest_id_ads\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor.\n\n\n  * Cookie\npersonalization_id\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to integrate and share features for social media and also store information about how the user uses the website, for tracking and targeting.\n\n\n  * Cookie\nguest_id\n  * Duration\n1 year 1 month 4 days\n  * Description\nTwitter sets this cookie to identify and track the website visitor. It registers if a user is signed in to the Twitter platform and collects information about ad preferences.\n\n\n  * Cookie\nbcookie\n  * Duration\n1 year\n  * Description\nLinkedIn sets this cookie from LinkedIn share buttons and ad tags to recognize browser IDs.\n\n\n  * Cookie\n__Secure-ROLLOUT_TOKEN\n  * Duration\n6 months\n  * Description\nYouTube sets this cookie to manage feature rollout and experimentation. It helps Google control which new features or interface changes are shown to users as part of testing and staged rollouts, ensuring consistent experience for a given user during an experiment.\n\n\n  * Cookie\nyt.innertube::nextId\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.\n\n\n  * Cookie\nyt.innertube::requests\n  * Duration\nNever Expires\n  * Description\nYouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.\n\n\n  * Cookie\nsession_tracker\n  * Duration\nsession\n  * Description\nThis cookie is set by the Reddit. This cookie is used to identify trusted web traffic. It also helps in adverstising on the website.\n\n\n  * Cookie\nedgebucket\n  * Duration\nsession\n  * Description\nReddit sets this cookie to save the information about a log-on Reddit user, for the purpose of advertisement recommendations and updating the content.\n\n\n  * Cookie\ndid\n  * Duration\n1 year\n  * Description\nArbor sets this cookie to show targeted ads to site visitors.This cookie expires after 2 months or 1 year.\n\n\nUncategorised\nOther uncategorised cookies are those that are being analysed and have not been classified into a category as yet.\nNo cookies to display.\nReject All Save My Preferences Accept All\nToggle Search[](https://towardsdatascience.com/)Toggle Mobile Navigation\n[](https://towardsdatascience.com/)\nPublish AI, ML & data-science insights to a global community of data professionals.\nSign in[Submit an Article](https://write.insightmediagroup.io)\n[Latest](https://towardsdatascience.com/latest/)[Editor's Picks](https://towardsdatascience.com/tag/editors-pick/)[Newsletter](https://towardsdatascience.com/tag/the-variable/)[ShipAI](https://towardsdatascience.com/shipai/)\n* * *\n[Write For TDS](https://towardsdatascience.com/submissions/)\n[LinkedIn](https://www.linkedin.com/company/towards-data-science/)[X](https://x.com/TDataScience)Toggle Search\n[Reinforcement Learning](https://towardsdatascience.com/category/artificial-intelligence/reinforcement-learning/)\n# The Reinforcement Learning Handbook: A Guide to Foundational Questions\nSimplifying all the concepts required to master reinforcement learning\n[Avishek Biswas](https://towardsdatascience.com/author/neural.avb/)\nNovember 6, 202516 min read\n![Reinforcement Learning](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/11/ArticleThumbnail.png)\nThis article will explain the fundamental concepts you need to know to understand Reinforcement Learning!\nWe will progress from the absolute basics of \"_what even is RL_ \" to more advanced topics, including agent exploration, values and policies, and distinguish between popular training approaches. Along the way, we will also learn about the various challenges in RL and how researchers have tackled them.\nAt the end of the article, I will also share a YouTube video I made that explains all the concepts in this article in a visually engaging way. If you are not much of a reader, you can check out that companion video instead!\n_Note: All images are produced by the author unless otherwise specified._\n## Reinforcement Learning Basics\nSuppose you want to train an AI model to learn how to navigate an obstacle course. RL is a branch of Machine Learning where our models learn by collecting experiences - taking actions and observing what happens. More formally, RL consists of two components - the agent and the environment.\nLearn this step by step with the interactive [Machine Learning](https://roadmap.sh/machine-learning) roadmap.\n### The Agent\nThe learning process involves two key activities that happen over and over again: **exploration** and **training**. During exploration, the agent collects experiences in the environment by taking actions and finding out what happens. And then, during the training activity, the agent uses these collected experiences to improve itself.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/10/Slide4-1-1024x576.jpeg)\nThe agent collects experiences in the environment, and uses these experience to train a policy\n### The Environment\nOnce the agent selects an action, the environment updates. It also returns a reward depending on how well the agent is doing. The environment designer programs how the reward is structured.\nFor example, suppose you are working on an environment that teaches an AI to avoid obstacles and reach the goal. You can program your environment to return a positive reward when the agent is moving closer to the goal. But if the agent collides with an obstacle, you can program it to receive a large negative reward.\nIn other words, the environment provides a _positive reinforcement_ (a high positive reward, for example) when the agent does something _good_ and a _punishment_ (a negative reward for example) when it does something _bad._\nAlthough the agent is oblivious to how the environment actually operates, it can still determine from its reward patterns how to pick optimal actions that lead to maximum rewards.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/10/Slide2-1024x576.jpeg)\nThe environment and the agent are at the center of RL\n### Policy\nAt each step, the agent AI observes the current state of the environment and selects an action. The goal of RL is to learn a mapping from observations to actions, i.e. **\"given the state I am observing, what action should I choose\"?**\n**In RL terms, this mapping from the state to action is also called a policy.**\nThis policy defines how the agent behaves in different states, and in _deep_ reinforcement learning we learn this function by training some kind of a _deep_ neural network.\n### Reinforcement Learning\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/10/Slide5-1024x576.jpeg)\nThe agent observes state S, queries a network to generate action A. The environment executes the action and returns a reward r and the next state s'. This continues until the episode terminates. Each step the agent takes is later used to train the agent's policy network.\nUnderstanding the distinctions and interplay between the agent, the policy, and the environment is very integral to understand Reinforcement Learning. \n  1. The Agent is the learner that explores and takes actions within the environment\n  2. The Policy is the strategy (often a neural network) that the agent uses to determine which action to take given a state. In RL, our ultimate goal is to train this strategy.\n  3. The Environment is the external system that the agent interacts with, which provides feedback in the form of rewards and new states.\n\n\nHere is a quick one-liner definition you should remember:\n> In Reinforcement Learning, the **agent** follows a **policy** to select actions within the **environment**.\n## Observations and Actions\nThe agent explores the environment by taking a sequence of \"steps\". Each step is one decision. The agent _observes_ the environment's state. Decideson an _action_. Receives a _reward_. Observes the _next state_. In this section, let's understand what observations and actions are.\n### Observation\nObservation is what the agent sees from the environment - the information it receives about the environment's current state. In an obstacle navigation environment, the observation might be LiDAR projections to detect the obstacles. For Atari games, it might be a history of the last few pixel frames. For text generation, it might be the context of the generated tokens so far. In chess, it is the position of all the pieces, whose move it is, etc.\nThe observation ideally contains all the information the agent needs to take an action.\nThe action space is all the available decisions the agent can take. Actions can be discrete or continuous. A discrete action space is when the agent has to choose between a specific set of categorical decisions. For example, in Atari games, the actions might be the buttons of an Atari controller. For text generation, it is to choose between all the tokens present in the model's vocabulary. In chess, it could be a list of available moves. \n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/11/DisplayLidar_full_5x.gif)\nExample of an observation and action picked by an RL agent learning to navigate an obstacle course\nThe environment designer can also choose a continuous action space - where the agent generates continuous values to take a \"step\" in the environment. For example, in our obstacle navigation example, the agent can choose the x and y velocities to get a fine grain control of the movement. In a human character control task, the action is often to output the torque or target angle for every joint in the character's skeleton.\n## The most important lesson\nBut here is something very important to understand: To the agent and the policy - the environment and its specifics can be a complete black box. The agent will receive vector-state information as an observation, generate an action, receive a reward, and later learn from it.\nSo in your mind, you can consider the agent and the environment as two separate entities. The environment defines the state space, the action space, the reward strategies, and the rules.\nThese rules are decoupled from how the agent explores and how the policy is trained on the collected experiences.\nWhen studying a research paper, it is important to clarify in our mind which aspect of RL we are reading about. Is it about a new environment? Is it about a new policy training method? Is it about an exploration strategy? Depending on the answer, you can treat other things as a black box.\n## Exploration\nHow does the agent explore and collect experiences?\nEvery RL algorithm must solve one of the largest dilemmas in training RL agents - exploration vs exploitation.\n**Exploration means trying out new actions to gather information about the environment.** Imagine you are learning to fight a boss in a difficult video game. At first, you are going to try different approaches, different weapons, spells, random things just to see what sticks and what doesn't.\nHowever, once you start seeing some rewards, like consistently deal damage to the boss, you will stop exploring and start exploiting the strategy you have already acquired. **Exploitation means greedily picking actions you think will get the best rewards.**\n> A good RL exploration strategy must balance exploration and exploitation.\nA popular exploration strategy is **Epsilon-Greedy** , where the agent explores with a random action a fraction of the time (defined by a parameter epsilon), and exploits its best-known action the rest of the time. This epsilon value is usually high at the start and is gradually decreased to favor exploitation as the agent learns.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/10/Slide25-1024x576.jpeg)\nEpsilon Greedy is an exploration method where the RL Agent selects a random action from time to time\nEpsilon greedy only works in discrete action spaces. In continuous spaces, exploration is often handled in two popular ways. One way is to add a bit of random noise to the action the agent decides to take. Another popular technique is to add an **entropy bonus** to the loss function, which encourages the policy to be less certain about its choices, naturally leading to more varied actions and exploration.\nSome other ways to encourage exploration are:\n  * Design the environment to use random initialization of states at the beginning of the episodes.\n  * Intrinsic exploration methods where the agent acts out of its own \"curiosity.\" Algorithms like Curiosity and RND reward the agent for visiting novel states or taking actions where the outcome is hard to predict.\n\n\nI cover these fascinating methods in my Agentic Curiosity video, so be sure to check that out!\nPlease accept cookies to access this content\n## Training Algorithms\nA majority of research papers and academic topics in Reinforcement Learning are about optimizing the agent's strategy to pick actions. The goal of optimization algorithms is to learn actions that maximize the long-term expected rewards.\nLet's take a look at the different algorithmic choices one by one.\n## Model-Based vs Model-Free\nAlright, so our agent has explored the environment and collected a ton of experience. Now what?\nDoes the agent learn to act directly from these experiences? Or does it first try to model the environment's dynamics and physics?\nOne approach is **model-based learning.** Here, the agent first uses its experience to build its own internal simulation, or a world model. This model learns to predict the consequences of its actions, i.e., given a state and action, what is the resulting next state and reward? Once it has this model, it can practice and plan entirely within its own imagination, running thousands of simulations to find the best strategy without ever taking a risky step in the real world.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/10/Slide14-1024x576.jpeg)\nModel-based RL learns a separate model to learn how the environment works\nThis is particularly useful in environments where collecting real world experience can be expensive - like robotics or self-driving cars. Examples of Model-Based RL are: [Dyna-Q](https://arxiv.org/abs/1801.06176), [World Models](https://arxiv.org/abs/1803.10122), [Dreamer](https://arxiv.org/abs/2301.04104), etc. I'll write a separate article someday to cover these models in more detail.\nThe second is called **model-free learning**. This is what the rest of the article is going to cover. Here, the agent treats the environment as a black box and learns a policy directly from the collected experiences. Let's talk more about Model-free RL in the next section.\n## Value-Based Learning\nThere are two main approaches to model-free RL algorithms.\nValue-based algorithms learn to evaluate how good each state is. Policy-based algorithms learn directly how to act in each state.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/10/Slide39-1024x576.jpeg)\nValue Based vs Policy Based methods\nIn value-based methods, the RL agent learns the _\"value\"_ of being in a specific state. The value of a state literally means how good the state is. The intuition is that if the agent knows which states are good, it can pick actions that lead to those states more regularly.\nAnd thankful there is a mathematical way of doing this - **the Bellman Equation**.\n**V(s) = r + γ * max V(s').**\nThis recurrence equation basically says the **value** **V(s)** of _state s_ is equal to the immediate **reward r** of being in the state plus the**value** of the best _next-state s_ ' the agent can reach from s. Gamma (**γ**) is a discounted factor (between 0 and 1) that nerfs the goodness of the next state. It essentially decides how much the agent cares about rewards in the distant future versus immediate rewards. A **γ** close to **1** makes the agent \"far-sighted,\" whereas a **γ** close to **0** makes the agent \"short-sighted,\" greedily caring almost only about the very next reward.\n### Q-Learning\nWe learnt the intuition behind state values, but how do we use that information to learn actions? The Q-Learning equation answers this.\n**Q(s, a) = r + γ * max_a Q(s', a')**\nThe Q-value Q(s,a) is the _**q**_ _uality-value_ of the action a in state s. The above equation basically states: The quality of an action a in state s is the immediate reward **r** you get from being in state s, plus the discounted quality value of the next best action.\nSo in summary: \n  * **Q-values** are the quality values of each action in each state.\n  * **V-values** are the value of a specific state; it is equal to the maximum Q-value of all actions in that state.\n  * **Policy π** at a specific state is the action that has the highest Q-value in that state.\n\n\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/10/Slide36-1024x576.jpeg)\nQ-values, State values, and Policy are deeply interconnected\nTo learn more about Q-Learning, you can research [Deep Q Networks](https://arxiv.org/abs/1312.5602), and their descendants, like [Double Deep Q Networks](https://arxiv.org/abs/1509.06461) and [Dueling Deep Q Networks.](https://arxiv.org/abs/1511.06581)\nValue-based learning trains RL agents by learning the value of being in specific states. However, is there a direct way to learn optimal actions without needing to learn state values? Yes.\nPolicy learning methods directly learn optimal action strategies without explicitly learning state values. Before we learn how, we must learn another important concept first. Temporal Difference Learning vs Monte Carlo Sampling.\n## TD Learning vs MC Sampling\nHow does the agent consolidate future experiences to learn?\nIn Temporal Difference (TD) Learning, the agent updates its value estimates after every single step using the Bellman equation. And it does so by seeing its own estimate of the Q-value in the next state. This strategy is called 1-step TD Learning, or one-step Temporal Difference Learning. You take one step and update your learning based on your past estimates.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/11/TD_full_2x.gif)\nIn TD Learning, we take one step and use the value estimates of the next state\nThe second option is called Monte-Carlo sampling. Here, the agent waits for the entire episode to finish before updating anything. And then it uses the complete return from the episode:   \nQ(s,a) = r₁ + γr₂ + γ²r₃ + ... + γⁿrₙ\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/11/MC_full_2x.gif)\nIn MC Sampling, we complete the entire episode to compute the estimates from actual rewards\n### Trade-offs between TD Learning and MC Sampling\nTD Learning is pretty cool coz the agent can learn something from every single step, even before it completes an episode. Meaning you can save your collected experiences for a long time and keep training even on old experiences, but with new Q-values. However, TD learning is heavily biased by the agent's current estimate of the state. So if the agent's estimates are wrong, it will keep reinforcing those wrong estimates. This is called the \"_bootstrapping problem_.\"\nOn the other hand, Monte Carlo learning is always accurate because it uses the true returns from actual episodes. But in most RL environments, rewards and state transitions can be random. Also, as the agent explores the environment, its own actions can be random, so the states it visits during rollout are also random. This results in the pure TD-Learning method suffering from high variance issues as returns can vary dramatically between episodes.\n## Policy Gradients\nAlright, now that we have understood the concept of TD-Learning vs MC Sampling, it's time to get back to Policy-Based Learning methods.\nRecall that value-based methods like DQN first have to explicitly calculate the value, or Q-value, for every single possible action, and then they pick the best one. But it is possible to skip this step, and Policy Gradient methods like **REINFORCE** do exactly that.\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/10/Slide18-1024x576.jpeg)\nPolicy gradient methods input the state and output the probability of actions to take\nIn REINFORCE, the policy network outputs probabilities for each action, and we train it to increase the probability of actions that lead to good outcomes. For discrete spaces, PG methods output the probability of each action as a categorical distribution. For continuous spaces, PG methods output as Gaussian distributions, predicting the mean and standard deviation of each element in the action vector.\nSo the question is, how exactly do you train such a model that directly predicts action probabilities from states?\nHere is where the **Policy Gradient Theorem** comes in. In this article, I will explain the core idea intuitively.\n  * Our policy gradient model is often denoted in the literature as pi_theta(a|s). Here, theta denotes the weights of the neural network. pi_theta(a|s) is the predicted probability of action a in state s by neural network theta.\n  * From a newly initialized policy network, we let the agent play out a full episode and collect all the rewards.\n  * For every action it took, figure out the total discounted return that came after it. This is done using the Monte Carlo approach.\n  * Finally, to actually train the model, the policy gradient theorem asks us to maximize the formula provided in the figure below.\n  * If the return was high, this update will make that action more probable in the future by increasing pi(a|s). If the return was negative, this update will make the action less probable by reducing the pi(a|s).\n\n\n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/11/image-36-1024x576.png)\nPolicy Gradients\n**The distinction between Q-Learning and REINFORCE**\nOne of the core differences between Q-Learning and REINFORCE is that Q-Learning uses 1-step TD Learning, and REINFORCE uses Monte Carlo Sampling.\nBy using 1-step TD, Q-learning must determine the quality value Q of each state-action possibility. Because recall that in 1-step TD the agent can take just one step in the environment and determine a quality score of the state.\nOn the other hand, with Monte Carlo sampling, the agent does not need to rely on an estimator to learn. Instead, it uses actual returns observed during exploration. This makes REINFORCE \"unbiased\" with the caveat that it requires multiple samples to correctly estimate the value of a trajectory. Furthermore, the agent cannot train until it fully finishes a trajectory (that is reach a terminal state), and it cannot reuse trajectories after the policy network updates.\nIn practice, REINFORCE often leads to stability issues and sample inefficiency. Let's talk about how Actor Critic addresses these limitations.\n## Advantage Actor Critic\nIf you try to use vanilla REINFORCE on most complex problems, it will struggle, and the reason why is twofold.\nThe first is because it suffers from high variance coz it's a Monte Carlo sampling method. Second, it has no sense of baseline. Like, imagine an environment that always gives you a positive reward, then the returns will never be negative, so REINFORCE will increase the probabilities of all actions, albeit in a disproportionate way.\nWe don't want to reward actions just for getting a positive score. We want to reward them for being **better than average**.\nAnd that is where the concept of _advantage_ becomes important. Instead of just using the raw return to update our policy, we'll subtract the expected return for that state. So our new update signal becomes: \n**Advantage = The Return you got - The Return you expected**\nWhile Advantage gives us a baseline for our observed returns, let's also discuss the concept of Actor Critic methods.\n**Actor Critic** combines the best of Value-Based Methods (like DQN) and the best of Policy-Based Methods (like REINFORCE). Actor Critic methods train a separate \"critic\" neural network that is only trained to evaluate states, much like the Q-Network from earlier.\nThe actor method, on the other hand, learns the policy. \n![](https://assets.insightmediagroup.io/media/wp-content/uploads/2025/11/image-29-1024x576.png)\nAdvantage Actor Critic\nCombining Advantage and Actor critics, we can understand how the [popular A2C algorithm](https://arxiv.org/abs/1602.01783) works:\n  * Initialize 2 neural networks: the policy or actor network, and the value or critic network. The actor network inputs a state and outputs action probabilities. The critic network inputs a state and outputs a single float representing the state's value.\n  * We generate some rollouts in the environment by querying the actor\n  * We update the critic network using either TD Learning or Monte Carlo Learning. There are more advanced approaches, like [Generalized Advantage Estimates](https://arxiv.org/abs/1506.02438) as well, that combine the two approaches for more stable learning.\n  * We evaluate the advantage by subtracting the observed return from the average return generated by the Critic Network\n  * Finally, we update the Policy network by using the advantage and the policy gradient equation.\n\n\nActor-critic methods solve the variance problem in policy gradients by using a value function as a baseline. PPO (Proximal Policy Optimization) extends A2C by adding the concepts of \"trust regions\" into the learning algorithm, which prevents excessive changes to the network weights during learning. We won't get into details about [PPO](https://arxiv.org/abs/1707.06347) in this article; maybe someday we will open that Pandora's box.\n## Conclusion\nThis article is a companion piece to the YouTube video below I made. Feel free to check it out, if you enjoyed this read.\nPlease accept cookies to access this content\nEvery algorithm makes specific choices for each question, and these choices cascade through the entire system, affecting everything from sample efficiency to stability to real-world performance.\nIn the end, creating an RL algorithm is about answering these problems by making your choices. DQNs choose to learn values. policy methods directly learns a **policy**. Monte Carlo methods update after a full episode using actual returns - this makes them unbiased, but they have high variance because of the stochastic nature of RL exploration. TD Learning instead chooses to learn at every step based on the agent's own estimates. Actor Critic methods combine DQNs and Policy Gradients by learning an actor and a critic network separately.\nNote that there's a lot we didn't cover today. But this is a good base to get you started with Reinforcement Learning. \nThat's the end of this article, see you in the next one! You can use the links below to discover more of my work.\n**My Patreon:**  \n<https://www.patreon.com/NeuralBreakdownwithAVB>\n**My YouTube channel:**  \n<https://www.youtube.com/@avb_fj>\n**Follow me on Twitter:**  \n<https://x.com/neural_avb>\n**Read my articles:**   \n<https://towardsdatascience.com/author/neural-avb/>\n## Register Now to Continue Reading\n### Unlock Towards Data Science with a Free Account\nAll articles on Towards Data Science are available to registered users. Create a free account today to access this article and thousands more.\nRegister for freeSign in to your account\n* * *\n![](https://assets.insightmediagroup.io/media/1787657599061_2dgnrr.jpeg)\nWritten By\n## [Avishek Biswas](https://towardsdatascience.com/author/neural.avb/)\n[See all from Avishek Biswas](https://towardsdatascience.com/author/neural.avb/)\n[Editor's Picks](https://towardsdatascience.com/tag/editors-pick/)[Artificial Intelligence](https://towardsdatascience.com/tag/artificial-intelligence/)[Machine Learning](https://towardsdatascience.com/tag/machine-learning/)[Q Learning](https://towardsdatascience.com/tag/q-learning/)[Reinforcement Learning](https://towardsdatascience.com/tag/reinforcement-learning/)\nShare This Article\n  * [](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Ftowardsdatascience.com%2Fthe-handbook-of-reinforcement-learning-guide-to-the-foundational-questions%2F&title=The%20Reinforcement%20Learning%20Handbook%3A%20A%20Guide%20to%20Foundational%20Questions)\n  * [](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Ftowardsdatascience.com%2Fthe-handbook-of-reinforcement-learning-guide-to-the-foundational-questions%2F&title=The%20Reinforcement%20Learning%20Handbook%3A%20A%20Guide%20to%20Foundational%20Questions)\n  * [](https://x.com/share?url=https%3A%2F%2Ftowardsdatascience.com%2Fthe-handbook-of-reinforcement-learning-guide-to-the-foundational-questions%2F&text=The%20Reinforcement%20Learning%20Handbook%3A%20A%20Guide%20to%20Foundational%20Questions)\n\n\nTowards Data Science is a community publication. Submit your insights to reach our global audience and earn through the TDS Author Payment Program.\n[Write for TDS](https://towardsdatascience.com/submissions/)\n## Related Articles\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2026/01/20251228_1152_Actor-Critic-Drone-Teamwork_simple_compose_01kdhsyv2reaj8tqbawwb75ttj.jpg)](https://towardsdatascience.com/deep-reinforcement-learning-the-actor-critic-method/)\n## [Deep Reinforcement Learning: The Actor-Critic Method](https://towardsdatascience.com/deep-reinforcement-learning-the-actor-critic-method/)\n[Reinforcement Learning](https://towardsdatascience.com/category/artificial-intelligence/reinforcement-learning/)\nRobot friends collaborate to learn to fly a drone\n[Vedant Jumle](https://towardsdatascience.com/author/vedantjumle/)\nJanuary 1, 202617 min read\n  * [![](https://towardsdatascience.com/images/fallback-image.jpg)](https://towardsdatascience.com/latest-picks-why-how-to-use-the-naive-bayes-algorithms-in-a-regulated-industry-with-sklearn-51c11c87300a/)\n## [Latest picks: Why & How to use the Naive Bayes algorithms in a regulated industry with sklearn](https://towardsdatascience.com/latest-picks-why-how-to-use-the-naive-bayes-algorithms-in-a-regulated-industry-with-sklearn-51c11c87300a/)\n[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)\nYour daily dose of data science\n[TDS Editors](https://towardsdatascience.com/author/towardsdatascience/)\nDecember 2, 20201 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2021/05/0le_pq4WOHXGiQqZq-scaled.jpg)](https://towardsdatascience.com/all-you-need-to-know-to-start-speech-processing-with-deep-learning-102c916edf62/)\n## [Terms you need to know to start Speech Processing with Deep Learning](https://towardsdatascience.com/all-you-need-to-know-to-start-speech-processing-with-deep-learning-102c916edf62/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nWe all love our Alexa's and our Siri's. Understand some of the key terms used in audio technology.\n[Harsh Maheshwari](https://towardsdatascience.com/author/anveenaik/)\nMay 10, 20215 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2022/11/0lGJ_uTXJTDCIrFDU-scaled.jpg)](https://towardsdatascience.com/fake-news-detection-in-environmental-communication-322ad64dfaba/)\n## [Fake News Detection in Environmental Communication](https://towardsdatascience.com/fake-news-detection-in-environmental-communication-322ad64dfaba/)\n[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)\nA Computational Conundrum\n[Veronica Villa](https://towardsdatascience.com/author/veronica.villa/)\nNovember 17, 20226 min read\n  * [![](https://assets.insightmediagroup.io/media/1788472885830_flwfxd.jpg)](https://towardsdatascience.com/i-vibe-coded-an-app-in-just-two-hours-and-regretted-it-the-next-day/)\n## [I Vibe-Coded an App in Just Two Hours (And Regretted It the Next Day)](https://towardsdatascience.com/i-vibe-coded-an-app-in-just-two-hours-and-regretted-it-the-next-day/)\n[Agentic AI](https://towardsdatascience.com/category/artificial-intelligence/agentic-ai/)\nI saved my day with a mere $52 bill. But you don't have to repeat my mistake.\n[Thuwarakesh Murallie](https://towardsdatascience.com/author/thuwarakesh/)\nSeptember 7, 20266 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2023/05/1AuZsZZc5dyfC2VAS8IGSNA.png)](https://towardsdatascience.com/my-first-exploratory-data-analysis-with-chatgpt-7f100005efdc/)\n## [My First Exploratory Data Analysis with ChatGPT](https://towardsdatascience.com/my-first-exploratory-data-analysis-with-chatgpt-7f100005efdc/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nUnleashing the power of ChatGPT: A deep dive into an exploratory data analysis and future opportunities\n[Jye Sawtell-Rickson](https://towardsdatascience.com/author/jyesr/)\nMay 10, 202316 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2022/03/1TegTeL2BoLb6TQvUXnWKKQ-scaled.jpeg)](https://towardsdatascience.com/random-forest-regression-5f605132d19d/)\n## [Random Forest Regression](https://towardsdatascience.com/random-forest-regression-5f605132d19d/)\n[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)\nA basic explanation and use case in 7 minutes\n[Nima Beheshti](https://towardsdatascience.com/author/nimab/)\nMarch 2, 20227 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2020/07/07JFVyGvhXVk9lRhM-scaled.jpg)](https://towardsdatascience.com/tpot-automated-machine-learning-in-python-e56800e69c11/)\n## [TPOT: Automated Machine Learning in Python](https://towardsdatascience.com/tpot-automated-machine-learning-in-python-e56800e69c11/)\n[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)\nMachine learning for everybody?\n[Dario Radečić](https://towardsdatascience.com/author/radecicdario/)\nJuly 2, 20207 min read\n  * [![](https://assets.insightmediagroup.io/media/wp-content/uploads/2022/05/1ogjCjbyMVaXgs3A_eIlllQ.png)](https://towardsdatascience.com/gato-the-latest-from-deepmind-towards-true-ai-1ac06e1d18cd/)\n## [Gato, the latest from Deepmind. Towards true AI?](https://towardsdatascience.com/gato-the-latest-from-deepmind-towards-true-ai-1ac06e1d18cd/)\n[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)\nGato can play games, generate text, process images, and control robotic arms. And it's not even too big. Is true AI coming up?\n[Luciano Abriata](https://towardsdatascience.com/author/lucianosphere/)\nMay 28, 20225 min read\n\n\n  * [YouTube](https://www.youtube.com/c/TowardsDataScience)\n  * [X](https://x.com/TDataScience)\n  * [LinkedIn](https://www.linkedin.com/company/towards-data-science/)\n  * [Threads](https://www.threads.net/@towardsdatascience)\n  * [Bluesky](https://bsky.app/profile/towardsdatascience.com)\n\n\n[](https://towardsdatascience.com/)\nYour home for data science and AI. The world's leading publication for data science, data analytics, data engineering, machine learning, and artificial intelligence professionals.\nSubscribe to Our Newsletter[Write For TDS](https://towardsdatascience.com/submissions/)•[About](https://towardsdatascience.com/about-towards-data-science-d691af11cc2f/)•[Advertise](https://contact.towardsdatascience.com/advertise-with-towards-data-science)•[Privacy Policy](https://towardsdatascience.com/privacy-policy/)•[Terms of Use](https://towardsdatascience.com/website-terms-of-use/)\n© Insight Media Group, LLC 2026•[The New Stack](https://thenewstack.io)•[roadmap.sh](https://roadmap.sh)•[Creator Network](https://insightmediagroup.io/creator-network)\n####  Recommended Articles \nClose\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607639/image?etag=1781250125848&width=500&height=500) Javascript Fatigue: HTMX Is All You Need to Build ChatGPT — Part 1 ](https://towardsdatascience.com/javascript-fatigue-you-dont-need-js-to-build-chatgpt/ \"Javascript Fatigue: HTMX Is All You Need to Build ChatGPT — Part 1\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607930/image?etag=1782124566054&width=500&height=500) The Subset Sum Problem Solved in Linear Time for Dense Enough Inputs ](https://towardsdatascience.com/subset-sum-problem-solved-in-linear-time-for-dense-enough-inputs/ \"The Subset Sum Problem Solved in Linear Time for Dense Enough Inputs\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/3660/image?etag=1780176246070&width=500&height=500) Does Your Company Have a Data Strategy? ](https://towardsdatascience.com/does-your-company-have-a-data-strategy-e8944dbec4ae/ \"Does Your Company Have a Data Strategy?\")\n  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/4970/image?etag=1780565225463&width=500&height=500) Productivity Tips, Data Career Insights, and Other Recent Must-Reads ](https://towardsdatascience.com/productivity-tips-data-career-insights-and-other-recent-must-reads-5c47eb7a2fe0/ \"Productivity Tips, Data Career Insights, and Other Recent Must-Reads\")\n\n\n",
  "body_base_path": "attachments/0c379eeb2b16/pages/",
  "body_markdown_path": "attachments/0c379eeb2b16/pages/archived-body.md",
  "local_html": "attachments/0c379eeb2b16/pages/archived-body.html",
  "body_source": "prior_capture"
}