<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Tabular Solution Methods on Massimo Nocentini</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/</link><description>Recent content in Tabular Solution Methods on Massimo Nocentini</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/index.xml" rel="self" type="application/rss+xml"/><item><title>The Reinforcement Learning Problem</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/01-introduction/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/01-introduction/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Nobody tells an infant&lt;/span&gt; which muscle to move. It moves anyway, and the world answers: a toy rattles, a hand reaches the mouth, the bottle comes or does not. Out of that stream of consequences it learns what to do. &lt;strong&gt;Reinforcement learning&lt;/strong&gt;&lt;span class="index-anchor" data-index="reinforcement learning"&gt;&lt;/span&gt; is the computational study of this kind of learning: an agent that acts, observes how good the outcome was, and adjusts its behavior so as to collect as much reward as possible over time.&lt;label for="sn-2c58f7-2" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-2c58f7-2" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="sutton2018"&gt;Richard S. Sutton and Andrew G. Barto. &lt;cite&gt;Reinforcement Learning: An Introduction&lt;/cite&gt;. Adaptive Computation and Machine Learning. MIT Press, Cambridge, MA, second edition, 2018. ISBN 978-0-262-03924-6. URL &lt;a href="http://incompleteideas.net/book/the-book-2nd.html"&gt;http://incompleteideas.net/book/the-book-2nd.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; This chapter fixes the vocabulary of everything that follows, shows on a small game the first temporal-difference update, and sketches the three historical threads that produced the field. The formal machinery (Markov decision processes, Bellman equations) waits for &lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/03-mdp/"&gt;Chapter&amp;nbsp;3&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Multi-armed Bandits</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/02-bandits/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/02-bandits/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Strip away states and delayed consequences&lt;/span&gt;, and what remains of reinforcement learning is a single question asked over and over: which action is best, when the only way to find out is to try them and see what they pay? That is the &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;k&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;k&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-armed bandit problem. It isolates the feature that most distinguishes reinforcement learning from supervised learning, &lt;strong&gt;evaluative feedback&lt;/strong&gt;&lt;span class="index-anchor" data-index="evaluative feedback"&gt;&lt;/span&gt;: a reward says how good the chosen action was, not which action would have been best (see &lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/01-introduction/#sec:intro-evaluative"&gt;Section&amp;nbsp;1.1.1&lt;/a&gt;). This chapter builds the estimators and the exploration rules that later chapters reuse everywhere: sample averages and their incremental form, constant step sizes and the bias–variance trade-off they imply, optimistic initial values, upper confidence bounds, and gradient ascent on action preferences, which is the first policy-gradient method of the book. A final section goes beyond Sutton and Barto to the theory of &lt;em&gt;regret&lt;/em&gt; and optimal exploration.&lt;/p&gt;</description></item><item><title>Finite Markov Decision Processes</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/03-mdp/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/03-mdp/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;A bandit has one situation&lt;/span&gt; and many actions; the problems Sutton and Barto study have many situations, and the action taken in one of them decides which ones come next. The &lt;strong&gt;Markov decision process&lt;/strong&gt; (MDP) is the mathematical form of that problem: rewards are still evaluative, as in &lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/02-bandits/"&gt;Chapter&amp;nbsp;2&lt;/a&gt;, but they are now &lt;em&gt;delayed&lt;/em&gt;, because an action changes the state and therefore every reward that follows.&lt;label for="sn-967ac4-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-967ac4-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="sutton2018"&gt;Richard S. Sutton and Andrew G. Barto. &lt;cite&gt;Reinforcement Learning: An Introduction&lt;/cite&gt;. Adaptive Computation and Machine Learning. MIT Press, Cambridge, MA, second edition, 2018. ISBN 978-0-262-03924-6. URL &lt;a href="http://incompleteideas.net/book/the-book-2nd.html"&gt;http://incompleteideas.net/book/the-book-2nd.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; This chapter sets up the objects that every later chapter manipulates — dynamics, returns, policies, value functions — and derives the two families of equations that tie them together: the Bellman equations for a fixed policy, which are linear, and the Bellman optimality equations, which are not. Everything in the rest of the book is a way of solving one of them, exactly or approximately, with or without a model.&lt;/p&gt;</description></item><item><title>Dynamic Programming</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/04-dp/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/04-dp/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Dynamic programming turns&lt;/span&gt; the Bellman equations of &lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/03-mdp/"&gt;Chapter&amp;nbsp;3&lt;/a&gt; into assignment statements. Given a perfect model &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;p&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;mo mathvariant="normal" lspace="0em" rspace="0em"&gt;′&lt;/mo&gt;&lt;/msup&gt;&lt;mo separator="true"&gt;,&lt;/mo&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;mo&gt;∣&lt;/mo&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;mo separator="true"&gt;,&lt;/mo&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;p(s&amp;#x27;, r \mid s, a)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;,&lt;/span&gt; it computes &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mi&gt;π&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;v_\pi&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; by repeatedly replacing the left side of &lt;span class="eqref"&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/03-mdp/#eq-mdp-bellman-v"&gt;(3.9)&lt;/a&gt;&lt;/span&gt; with its right side, and computes &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;v_*&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; the same way from &lt;span class="eqref"&gt;&lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/03-mdp/#eq-mdp-bellman-opt-v"&gt;(3.17)&lt;/a&gt;&lt;/span&gt;.&lt;label for="sn-11f3f4-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-11f3f4-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="sutton2018"&gt;Richard S. Sutton and Andrew G. Barto. &lt;cite&gt;Reinforcement Learning: An Introduction&lt;/cite&gt;. Adaptive Computation and Machine Learning. MIT Press, Cambridge, MA, second edition, 2018. ISBN 978-0-262-03924-6. URL &lt;a href="http://incompleteideas.net/book/the-book-2nd.html"&gt;http://incompleteideas.net/book/the-book-2nd.html&lt;/a&gt;&lt;/span&gt;; and &lt;span class="bib-entry" data-cite="bellman1957"&gt;Richard Bellman. &lt;cite&gt;Dynamic Programming&lt;/cite&gt;. Princeton University Press, Princeton, NJ, 1957. A Rand Corporation Research Study; xxv+342 pp.&lt;/span&gt;&lt;/span&gt; The assumption of a perfect model and the cost of sweeping the whole state set limit its direct use, but almost every method in the rest of the book is an attempt to get the effect of dynamic programming (DP) with less computation and without the model. This chapter proves that the assignments work — they are contractions — proves the policy improvement theorem, and assembles policy iteration and value iteration from the two pieces. The pattern that emerges, generalized policy iteration, is the organizing idea of the whole book.&lt;/p&gt;</description></item><item><title>Monte Carlo Methods</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/05-monte-carlo/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/05-monte-carlo/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Dynamic programming needs&lt;/span&gt; the full distribution &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;p&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;mo mathvariant="normal" lspace="0em" rspace="0em"&gt;′&lt;/mo&gt;&lt;/msup&gt;&lt;mo separator="true"&gt;,&lt;/mo&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;mo&gt;∣&lt;/mo&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;mo separator="true"&gt;,&lt;/mo&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;p(s&amp;#x27;, r \mid s, a)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;;&lt;/span&gt; the methods of this chapter need only &lt;em&gt;episodes&lt;/em&gt;. A value is an expected return, so it can be estimated the way any expectation is estimated: run the policy, record what happened, and average.&lt;label for="sn-d1e484-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-d1e484-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="sutton2018"&gt;Richard S. Sutton and Andrew G. Barto. &lt;cite&gt;Reinforcement Learning: An Introduction&lt;/cite&gt;. Adaptive Computation and Machine Learning. MIT Press, Cambridge, MA, second edition, 2018. ISBN 978-0-262-03924-6. URL &lt;a href="http://incompleteideas.net/book/the-book-2nd.html"&gt;http://incompleteideas.net/book/the-book-2nd.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; That idea, applied state by state, is all of Monte Carlo prediction. Turning it into a control method requires two more ingredients met in earlier chapters. From &lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/02-bandits/"&gt;Chapter&amp;nbsp;2&lt;/a&gt; comes the need to &lt;em&gt;keep exploring&lt;/em&gt;, because an action that is never tried is never evaluated. From &lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/04-dp/"&gt;Chapter&amp;nbsp;4&lt;/a&gt; comes generalized policy iteration (&lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/04-dp/#sec:dp-gpi"&gt;Section&amp;nbsp;4.7&lt;/a&gt;), the alternation of evaluation and improvement that works even when neither is carried out completely. The new difficulty, and the theme of the second half of the chapter, is learning about one policy while behaving according to another. Its tool is importance sampling, and its two variants, ordinary and weighted, trade bias against variance in a way that will reappear in every off-policy method of the book.&lt;/p&gt;</description></item><item><title>Temporal-Difference Learning</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/06-td/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/06-td/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Monte Carlo waits&lt;/span&gt; for the end of the episode, because only then is the return known; dynamic programming does not wait for anything, but it needs a model. Temporal-difference (TD) learning takes the sampling of the first and the bootstrapping of the second: after a single transition it moves the estimate of the state it has left toward the reward just received plus the &lt;em&gt;estimated&lt;/em&gt; value of the state it has reached.&lt;label for="sn-ad380d-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-ad380d-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="sutton1988"&gt;Richard S. Sutton. Learning to Predict by the Methods of Temporal Differences. &lt;cite&gt;Machine Learning&lt;/cite&gt;, 3(1):9–44, 1988. &lt;span class="smallcaps"&gt;doi:&lt;/span&gt; &lt;a href="https://doi.org/10.1007/BF00115009"&gt;10.1007/BF00115009&lt;/a&gt;&lt;/span&gt;; and &lt;span class="bib-entry" data-cite="sutton2018"&gt;Richard S. Sutton and Andrew G. Barto. &lt;cite&gt;Reinforcement Learning: An Introduction&lt;/cite&gt;. Adaptive Computation and Machine Learning. MIT Press, Cambridge, MA, second edition, 2018. ISBN 978-0-262-03924-6. URL &lt;a href="http://incompleteideas.net/book/the-book-2nd.html"&gt;http://incompleteideas.net/book/the-book-2nd.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; Sutton and Barto call it the idea that is &amp;ldquo;central and novel to reinforcement learning&amp;rdquo;, and this chapter shows why. TD learning converges to the right answer, it is faster than Monte Carlo on Markov problems for a reason that can be stated precisely (it computes the maximum-likelihood model&amp;rsquo;s values without building the model), and its control versions, Sarsa and Q-learning, are the two most widely used algorithms of the field. They also bring a new pathology, maximization bias, with a remedy whose descendants run in today&amp;rsquo;s deep reinforcement learning.&lt;/p&gt;</description></item><item><title>n-step Bootstrapping</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/07-nstep/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/07-nstep/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Monte Carlo waits for the end&lt;/span&gt; of the episode and uses the whole return; one-step TD uses a single reward and then trusts the current estimate for everything that follows. Nothing forces us to choose between these two. We can wait &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;n&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; steps, sum the &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;n&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; rewards we have seen, and only then bootstrap. This chapter studies the whole family of such methods. They are worth having for two reasons. Intermediate values of &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;n&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt; often learn faster than either extreme. And they decouple two time scales that one-step methods tie together: how often the agent acts, and how far ahead it looks before trusting its own estimates. Sutton and Barto call this escaping &amp;ldquo;the tyranny of the time step&amp;rdquo;.&lt;label for="sn-e8cc28-1" class="margin-toggle sidenote-number"&gt;&lt;/label&gt;&lt;input type="checkbox" id="sn-e8cc28-1" class="margin-toggle"/&gt;&lt;span class="sidenote citation"&gt;&lt;span class="bib-entry" data-cite="sutton2018"&gt;Richard S. Sutton and Andrew G. Barto. &lt;cite&gt;Reinforcement Learning: An Introduction&lt;/cite&gt;. Adaptive Computation and Machine Learning. MIT Press, Cambridge, MA, second edition, 2018. ISBN 978-0-262-03924-6. URL &lt;a href="http://incompleteideas.net/book/the-book-2nd.html"&gt;http://incompleteideas.net/book/the-book-2nd.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; The chapter also takes off-policy learning further than &lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/05-monte-carlo/"&gt;Chapter&amp;nbsp;5&lt;/a&gt; and &lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/06-td/"&gt;Chapter&amp;nbsp;6&lt;/a&gt; did. We meet three ideas, importance sampling with per-decision control variates, tree backups that need no importance sampling at all, and the algorithm &lt;span class="tufte-nobr"&gt;&lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;mo stretchy="false"&gt;(&lt;/mo&gt;&lt;mi&gt;σ&lt;/mi&gt;&lt;mo stretchy="false"&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;Q(\sigma)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;,&lt;/span&gt; which contains both.&lt;/p&gt;</description></item><item><title>Planning and Learning with Tabular Methods</title><link>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/08-planning/</link><dc:creator>Massimo Nocentini</dc:creator><guid>https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/08-planning/</guid><description>&lt;p&gt;&lt;span class="newthought"&gt;Dynamic programming needs a model&lt;/span&gt; of the environment, and Monte Carlo and TD learning do not. Up to now this has been presented as the line that separates two families: &lt;strong&gt;model-based&lt;/strong&gt;&lt;span class="index-anchor" data-index="model-based reinforcement learning"&gt;&lt;/span&gt; methods, which &lt;em&gt;plan&lt;/em&gt;, and &lt;strong&gt;model-free&lt;/strong&gt;&lt;span class="index-anchor" data-index="model-free reinforcement learning"&gt;&lt;/span&gt; methods, which &lt;em&gt;learn&lt;/em&gt;. This chapter argues that the line is thin. Both kinds of method compute value functions, and both do it by backing values up along possible trajectories. They differ in where the trajectories come from: a model or the world. Once this is seen, a learning rule can be used as a planner just by feeding it simulated experience, and planning, acting and learning can run together in one agent. The previous chapters joined Monte Carlo and TD learning through the &lt;span class="katex tufte-math-euler"&gt;&lt;span class="katex-mathml"&gt;&lt;math xmlns="http://www.w3.org/1998/Math/MathML"&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding="application/x-tex"&gt;n&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;/span&gt;-step methods of &lt;a class="xref" href="https://massimo-nocentini.github.io/book/reinforcement-learning/part-1/07-nstep/"&gt;Chapter&amp;nbsp;7&lt;/a&gt;; this one joins both to dynamic programming. The second half of the chapter is about &lt;em&gt;where&lt;/em&gt; to spend computation: which states to update, in which order, with which kind of update, and whether to plan in the background or at the moment of decision. That last question leads to Monte Carlo Tree Search and, beyond the book, to the learned-model search of AlphaZero and MuZero.&lt;/p&gt;</description></item></channel></rss>