{"id":923,"date":"2019-01-09T10:54:24","date_gmt":"2019-01-09T10:54:24","guid":{"rendered":"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/?post_type=chapter&#038;p=923"},"modified":"2019-01-09T11:42:58","modified_gmt":"2019-01-09T11:42:58","slug":"temporal-difference-learning","status":"publish","type":"chapter","link":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/chapter\/temporal-difference-learning\/","title":{"rendered":"Temporal Difference Learning"},"content":{"raw":"<div><span style=\"float: right\"><a href=\"https:\/\/youtu.be\/efygizE6cOs\" target=\"_blank\" rel=\"noopener\"><img src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"epgp books\" width=\"75px\" height=\"75px;\" \/><\/a>\r\n<\/span><\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>Learning Objectives<\/strong>\r\n\r\n&nbsp;\r\n\r\nThe learning objectives of the module are as follows:\r\n\r\n&nbsp;\r\n\r\n\u2022 To understand Temporal Difference Learning \u2022 To describe the Optimal Value Functions\r\n\r\n\u2022 To analyse TD-Prediction\r\n\r\n\u2022 To describe Learning an action value function\r\n\r\n&nbsp;\r\n\r\n<strong>40.1 Introduction<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Policy evaluation algorithms are\u00a0\u00a0 intended to estimate the value functions <em>V<\/em> <em>\u03c0\u00a0<\/em>or\u00a0<em>Q\u03c0 <\/em>for a given policy<em> \u03c0<\/em>. Typically these are on-policy algorithms, and the considered policy is assumed to be stationary (or \u201calmost\u201d stationary). There are three classes of policy evaluation algorithms namely Monte Carlo methods, Dynamic Programming, and Temporal Difference Learning or TD learning. Monte Carlo methods do not need a model of the learning environment. From experience in form of sequences of state -action-reward-samples they can approximate future rewards. Monte-Carlo methods are based on the simple idea of averaging a number of random samples of a random quantity in order to estimate its average. Dynamic Programming is based on the Bellman Equation where the problem is broken down into sub problems and depends on a perfect model of the environment. However both Dynamic Programming and Monte Carlo methods only update after a complete sequence that is when the final state is reached. The main issues are whether it is possible to avoid the computational expense and space requirements for storing the transition model estimate of a full Dynamic programming policy evaluation.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">TD learning is considered as the most novel idea in reinforcement learning. Temporal Difference Learning is a model free approach which does not store an estimate of entire transition function but instead stores estimate of Vp, which requires only O(n) space. It carries out local, cheap updates of utility\/value function on a per-action basis. As you may recall Value Functions are state-action pair functions that estimate how good a particular action will be in a given state, or what the return for\u00a0<span style=\"font-size: 1em;text-align: initial\">that action is expected to be a Temporal Difference (TD). Learning methods can be used to estimate these value functions. If the value functions were to be calculated without estimation, the agent would need to wait until the final reward was received before any state-action pair values can be updated. Once the final reward was received, the path taken to reach the final state would need to be traced back and each value updated accordingly.<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>40.1.1 Comparison \u2013 Monte Carlo, Dynamic Programming and TD Approaches<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Before we discuss TD method let us compare Monte Carlo and Dynamic Programming methods. We will discuss two aspects namely bootstrapping and sampling. In bootstrapping update involves an estimate from a nearby state . While Monte Carlo method does not bootstrap that is each state is independently estimated, Dynamic Programming methods bootstraps that is estimates for each state is dependent on nearby states. In sampling update involves an actual return Monte Carlo method does sampling that is learns from experience in the environment and gets an actual return. Dynamic programming does not sample but learns by spreading constraints until convergence through iterating the Bellman equations without interaction with the environment.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">TD bootstraps that is learning involves an estimate of a nearby state. TD also samples where update involves an actual return.<\/p>\r\n&nbsp;\r\n\r\n<strong>40.2\u00a0 Optimal Value Functions<\/strong>\r\n\r\n&nbsp;\r\n\r\nBefore we discuss TD learning let us recall that for finite MDPs, policies can be <strong>partially ordered <\/strong>that is there is always at least one (and possibly many) polic y that is better than or equal to all the others. This is an <strong>optimal policy<\/strong>. We denote them all <em>p<\/em><em>*.<\/em> Optimal policies share the same <strong>optimal state-value function<\/strong>:\r\n\r\n&nbsp;\r\n\r\n<em><img class=\"aligncenter size-full wp-image-928\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-307.png\" alt=\"\" width=\"549\" height=\"129\" \/><\/em>\r\n<p style=\"text-align: justify\">This is the expected return for taking action \u2018<em>a\u2019<\/em> in state \u2018<em>s\u2019<\/em> and thereafter following an optimal policy. Now let us discuss the Bellman optimality equation for V*.<\/p>\r\n&nbsp;\r\n\r\n<strong>40.2.1 Bellman Optimality Equation for V*<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">The value of a state under an optimal policy must equal the expected return for the best action from that state where <strong>V*<\/strong>is the unique solution of this system of nonlinear equations.<\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-929\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-308.png\" alt=\"\" width=\"396\" height=\"124\" \/><img class=\"aligncenter size-full wp-image-930\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-309.png\" alt=\"\" width=\"212\" height=\"59\" \/>\r\n\r\n&nbsp;\r\n\r\nThe relevant backup diagram is shown in Figure 40.1.\r\n\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-931\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-310.png\" alt=\"\" width=\"363\" height=\"268\" \/>\r\n\r\n&nbsp;\r\n<p style=\"text-align: center\"><strong>Figure 40.1 Backup diagram<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: left\"><strong> 40.2.2 Bellman Optimality Equation for Q*<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The unique solution of this system is given by the nonlinear equations, where <strong>Q*<\/strong> is the unique solution of this system of nonlinear equations<\/p>\r\n<img class=\"aligncenter size-full wp-image-932\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-311.png\" alt=\"\" width=\"369\" height=\"103\" \/>\r\n\r\n&nbsp;\r\n\r\nThe relevant backup diagram is shown in Figure 40.2.\r\n\r\n<img class=\"aligncenter size-full wp-image-933\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-312.png\" alt=\"\" width=\"284\" height=\"264\" \/>\r\n<p style=\"text-align: justify\">Given <em>Q<\/em>* , the agent does not even have to do a one-step-ahead search in order to find the optimal Action-Value functions.<\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-934\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-313.png\" alt=\"\" width=\"412\" height=\"56\" \/><strong>\r\n40.2.3 Solving the Bellman Optimality Equation<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Finding an optimal policy by solving the Bellman Optimality Equation requires the following that is accurate knowledge of environment dynamics, enough space and time to do the computation, and the Markov Property must be satisfied. The space\u00a0<span style=\"font-size: 1em;text-align: initial\">required is polynomial in number of states but the number of states is often huge (e.g., backgammon has about 10**20 states). Therefore usually we have to settle for approximations. Many reinforcement learning methods can be understood as approximately solving the Bellman Optimality Equation.<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>40.3 Policy Evaluation<\/strong>\r\n\r\n&nbsp;\r\n\r\n<img class=\"aligncenter wp-image-935\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-314.png\" alt=\"\" width=\"708\" height=\"258\" \/>\r\n<p style=\"text-align: justify\">Monte Carlo methods do not need full knowledge of environment, but just needs experience, or simulated experience (Figure 40.3). One method is by averaging sample returns which is generally defined only for episodic tasks. This method is similar to DP in terms of policy evaluation, policy improvement.<\/p>\r\n<img class=\"aligncenter size-full wp-image-936\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-315.png\" alt=\"\" width=\"410\" height=\"215\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 40.3 Simple Monte Carlo Method<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Dynamic Programming (Figure 40.4) needs complete model of the environment and rewards. DP bootstraps that is updates estimates on the basis of other estimates<\/p>\r\n\r\n<\/div>\r\n<img class=\"aligncenter size-full wp-image-937\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-316.png\" alt=\"\" width=\"496\" height=\"551\" \/>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">In TD prediction we estimate the actual return as the sum of the next reward plus the value of the next state (Figure 40.5). As we discussed earlier when the environment,<\/p>\r\n\r\n<ul>\r\n \t<li><em>P <\/em>(<em>s<\/em><em>t<\/em>+1 | <em>s<\/em><em>t<\/em> <em>, a<\/em><em>t<\/em>), <em>p<\/em> (<em>r<\/em><em>t<\/em>+1 | <em>s<\/em><em>t<\/em> <em>, a<\/em><em>t<\/em> ), is not known it is called as model-free learning. The temporal difference is defined as the difference between the value of the current action and the value discounted from the next state.<\/li>\r\n<\/ul>\r\n<div>\r\n\r\n<strong>40.3 TD Prediction<\/strong>\r\n\r\n&nbsp;\r\n\r\nTD update for transition from s to s\u2019 is given in Figure 40.6.\r\n\r\n<img class=\"aligncenter size-full wp-image-938\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-317.png\" alt=\"\" width=\"604\" height=\"154\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 40.6 TD Update<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">The update is maintaining a \u201cmean\u201d of the (noisy) value samples. If the learning rate decreases appropriately with the number of samples (e.g.1\/n) then the value estimates will converge to true values as shown in Figure 40.7.<\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-939\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-318.png\" alt=\"\" width=\"688\" height=\"413\" \/>\r\n\r\n&nbsp;\r\n\r\n<strong>40.4 Error signal<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Another aspect we need for estimation and bootstrapping is the error signal. Error signal is defined as the difference between current estimate and improved estimate. It drives change of current estimate . There are many types of errors as discussed below:<\/p>\r\n&nbsp;\r\n\r\n<\/div>\r\n<img class=\"aligncenter size-full wp-image-940\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-319.png\" alt=\"\" width=\"718\" height=\"512\" \/>\r\n<div>\r\n\r\n<strong>Self-consistent prediction <\/strong>goal is to predict returns that should be self-consistent from one time step to the next (true of both TD and DP).\r\n\r\n&nbsp;\r\n\r\n<strong>Learning using the Error Signal: <\/strong>we could just do a reassignment:\r\n\r\n<img class=\"aligncenter size-full wp-image-941\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-320.png\" alt=\"\" width=\"601\" height=\"116\" \/>\r\n\r\n&nbsp;\r\n\r\nwhere \u2018<strong>\u03b1\u2019<\/strong> is a small \u201clearning rate\u201d parameter (either constant, or decreases with time). The above algorithm is known as \u201cTD(0)\u201d .\r\n\r\n&nbsp;\r\n\r\n<strong>40.5 TD Learning<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">TD Learning combines the \u201cbootstrapping\u201d (1-step self-consistency) idea of DP with the \u201csampling\u201d idea of Monte Carlo (MC). Like MC, it doesn\u2019t need a model of the environment, only experience. However TD, but not MC, can be fully incremental. Here we can learn before knowing the final outcome and we can learn without the final outcome (from incomplete sequences). The incorporation of bootstrapping into TD has reduced its variance compared to Monte Carlo, but possibly introduced greater bias.<\/p>\r\n&nbsp;\r\n\r\n<strong>40.5.1 Example \u2013 Driving Home<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Initially we will consider TD(0) that is the case where l =0 in TD(l). In this case we only look at the next reward. To understand the concept we consider the example shown in Figure 40.8. Value of each state in this example is the expected time-to-go.<\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"aligncenter size-full wp-image-942\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-321.png\" alt=\"\" width=\"669\" height=\"409\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 40.8 Driving Home Example<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Figure 40.9 shows the estimated values when we use Monte Carlo and TD approaches.<\/p>\r\n<img class=\"aligncenter size-full wp-image-943\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-322.png\" alt=\"\" width=\"646\" height=\"313\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 40.9 Predicted Values for Monte Carlo and TD Methods<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Now the question is whether it is really necessary to wait until the end of the episode (here \u2013 arrive home) to start learning. According to Monte Carlo method it is necessary to wait. However TD learning argues that learning can occur on-line. Suppose, on another day, you again estimate when leaving your office that it will take 30 minutes to drive home, but then you get stuck in a massive traffic jam . In TD the initial estimate would be changed. The algorithm for TD(0) is given in Figure 40.10. This can be considered a control method where the policy is always updated using a greedy approach with respect to the current estimate. This is also called Sarsa, the On-Policy TD Control algorithm.<\/p>\r\n<img class=\"aligncenter size-full wp-image-944\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-323.png\" alt=\"\" width=\"683\" height=\"301\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 40.10 TD(0) Algorithm<\/strong><\/p>\r\n&nbsp;\r\n\r\n<strong>40.5.2 Optimality of TD(0)<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"font-size: 1em;text-align: initial\">Suppose only a finite amount of experience is available, say 10 episodes or 100 time steps. Intuitively, we repeatedly present the experience until convergence is achieved. Updates are made after a batch of training data. For any finite Markov prediction task, under batch updating, TD(0) converges for sufficiently small value of l. MC method also converges deterministically but to a different answer<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>40.6 TD(<\/strong><strong>l<\/strong><strong>)<\/strong>\r\n\r\n&nbsp;\r\n\r\nFigure 40.11shows the TD prediction for n steps and the mathematics behind that is given in Figure 40.12.\r\n\r\n<img class=\"aligncenter size-full wp-image-945\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-324.png\" alt=\"\" width=\"590\" height=\"416\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 40.11 TD(<\/strong><strong>l<\/strong><strong>) Prediction<\/strong><\/p>\r\n&nbsp;\r\n\r\n<img class=\"aligncenter size-full wp-image-946\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-325.png\" alt=\"\" width=\"609\" height=\"300\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 40.12 Mathematics of N steps<\/strong><\/p>\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<strong style=\"text-align: initial;font-size: 1em\">40.5.1 <\/strong><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><strong style=\"text-align: initial;font-size: 1em\"> Parameter<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">The <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\"> in TD(<\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\">) provides a smooth interpolation between <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\">=0 (pure TD) and <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\">=1 (pure MC), For many toy grid-world type problems, can show that intermediate values of <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\"> work best. However for real-world problems, best <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\"> will be highly problem-dependent.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">TD(<\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\">) converges to the correct value function Vo (s) with probability 1 for all <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\">. For which a lookup table representation (Vo (s) is a table), it must visit all states an infinite # of times, and a certain schedule for decreasing a(t). However TD(k) converges only for a fixed policy.<\/span><\/p>\r\n\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>40.6 Learning backgammon using TD(<\/strong><strong>l<\/strong><strong>)<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">Neural net observes a sequence of input patterns x1, x2, x3, \u2026, xf which is the sequence of board positions occurring during a game and let xf be the final position. The representation of the board game can be raw board description that is the number of White or Black checkers at each location. We can use simple truncated unary encoding for this representation. At final position xf, reward signal z given can be z = 1 if White wins and z = 0 if Black wins. We can train the neural net using gradient version of TD(l). The trained NN output Vt=V(xt,w) should estimate probability of (White wins | xt ) that is white win given the board position xt.<\/p>\r\n&nbsp;\r\n\r\n<strong>40.6.1 Multi layer Neural Network<\/strong>\r\n\r\n&nbsp;\r\n\r\nThe multilayer neural network for learning Backgammon is shown in Figure 40.13.\r\n\r\n<img class=\"aligncenter size-full wp-image-947\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-326.png\" alt=\"\" width=\"703\" height=\"384\" \/>\r\n<p style=\"text-align: center\"><strong>Figure 40.13 Multilayer Network<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\">Let the neural net make the moves <strong>itself<\/strong>, using its current evaluator where all legal moves are scored and pick maximum value Vt for White, and minimum Vt for Black.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify\"><span style=\"font-size: 1em\">TD-Gammon can teach itself by playing games against itself and learning from the outcome. Works even starting from random initial play and zero initial expert knowledge (surprising). The program achieves strong intermediate play, if we add hand-crafted features it is able to achieve advanced level of play, 2-ply search-strong master play and 3-ply search almost superhuman play. \u201cTD-Leaf\u201d that is n-step TD backups in 2-player games is able to achieve great results for checkers and chess.<\/span><\/p>\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<strong>40.7 Advantages of TD Learning<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify\">TD methods do not require a model of the environment, only experience. TD methods can be fully incremental. With TD learning can happen before knowing the final outcome and hence requires less memory and less peak computation. We can in fact learn without even knowing the final outcome that is we can learn from incomplete sequences. This type of learning helps with applications that have very long episodes. Both MC and TD converge under certain assumptions but generally TD does better on stochastic tasks.<\/p>\r\n&nbsp;\r\n\r\n<strong>Summary<\/strong>\r\n<ul>\r\n \t<li>Outlined the TD Learning, optimal value functions, and TD prediction<\/li>\r\n \t<li>Explained advantages of TD Learning<\/li>\r\n \t<li>Reviewed the Bellman's\u2019 optimal value functions and TD Prediction<\/li>\r\n \t<li>Discussed TD-learning steps and examples<\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\n<strong>Summary of the Complete paper<\/strong>\r\n<ul>\r\n \t<li>Machine learning \u2013 an important approach to solve many of today\u2019s problems<\/li>\r\n \t<li>In this course we discussed the following topics<\/li>\r\n \t<li>Basics of Machine Learning<\/li>\r\n \t<li>Mathematical Foundations \u2013 Probability, Probability Distributions, Linear Algebra, Decision Theory and Information Theory<\/li>\r\n \t<li>Supervised Techniques &amp; Classification \u2013 KNN, Decision Trees, SVM, Neural Networks &amp; Genetic Algorithms<\/li>\r\n \t<li>Clustering \u2013 K-Means<\/li>\r\n \t<li>Semi-supervised Learning<\/li>\r\n \t<li>Baye\u2019s Learning \u2013 Na\u00efve Bayes, Bayes Belief Networks, EM method, HMM<\/li>\r\n \t<li>Reinforcement Learning<\/li>\r\n<\/ul>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td><strong>you can view video on Temporal Difference Learning<\/strong><\/td>\r\n<td><a href=\"https:\/\/youtu.be\/efygizE6cOs\" target=\"_blank\" rel=\"noopener\"><img class=\"alignnone wp-image-120\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"\" width=\"36\" height=\"36\" \/><\/a><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>Web Links<\/strong>\r\n<ul>\r\n \t<li>http:\/\/en.wikipedia.org\/wiki\/Reinforcement_learning<\/li>\r\n \t<li>http:\/\/www.cs.cmu.edu\/afs\/cs\/project\/theo-20\/www\/mlbook\/ch13.pdf<\/li>\r\n \t<li>http:\/\/neuro.bstu.by\/ai\/RL-3.pdf<\/li>\r\n \t<li>https:\/\/cs.uwaterloo.ca\/~ppoupart\/ICML-07-tutorial-slides\/icml07-brl-tutorial-part2-intro-ghavamzadeh.pdf<\/li>\r\n \t<li>ce.sharif.edu\/courses\/91-92\/1\/ce717-2\/resources\/root\/Lectures\/RL.pdf<\/li>\r\n \t<li>www.cogsys.wiai.uni-bamberg.de\/teaching\/ss05\/ml\/slides\/cogsysII-10.pdf<\/li>\r\n \t<li>https:\/\/www.cs.uic.edu\/~piotr\/cs594\/YijueRL.ppt<\/li>\r\n \t<li>https:\/\/en.wikipedia.org\/wiki\/Multi-armed_bandit<\/li>\r\n \t<li>http:\/\/teaching.csse.uwa.edu.au\/units\/CITS3001\/lectures\/lectures\/3001%20Reinforcement<\/li>\r\n \t<li>%20learning.<\/li>\r\n \t<li>https:\/\/www.udacity.com\/wiki\/cs271\/unit10-notes#!#passive-vs-active http:\/\/www.cs.mcgill.ca\/~vkules\/bandits.pdf www.cs.berkeley.edu\/~jordan\/MLShortCourse\/reinforcement-learning.ppt http:\/\/www.inf.ed.ac.uk\/teaching\/courses\/rl\/slides15\/rl02.pdf ai.cs.umbc.edu\/~oates\/classes\/2011\/ML\/TemporalDifference.ppt<\/li>\r\n<\/ul>\r\n<strong>Supporting &amp; Reference Materials<\/strong>\r\n<ul>\r\n \t<li>Richard S. Sutton and Andrew G. Barto, \u201cReinforcement Learning: An Introduction\u201d, 1998, MIT press<\/li>\r\n \t<li>Wiering, Marco, van Otterlo, Martijn (Eds.), \u201cReinforcement Learning\u201d, State-of-the-ArtSeries:<\/li>\r\n \t<li>Adaptation, Learning, and Optimization, Vol. 12, 2012<\/li>\r\n \t<li>Stuart Russell and Peter Norvig \u201cArtificial Intelligence: A Modern Approach Prentice Hall Series in Artificial Intelligence), 2009<\/li>\r\n \t<li>Tom Mitchell, \u201cMachine Learning\u201d,McGraw-Hill Education, 1997<\/li>\r\n \t<li><a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Alpaydin+Ethem&amp;search-alias=stripbooks\">AlpaydinEthem, <\/a>\u201cIntroduction to Machine Learning\u201d, The MIT Press; third edition, 2014<\/li>\r\n \t<li><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Stephen+Marsland&amp;search-alias=stripbooks\">Stephen Marsland, <\/a><span style=\"text-align: initial;font-size: 1em\">\u201cMachine Learning: An Algorithmic Perspective\u201d, Chapman and Hall\/CRC; 2 edition, 2014<\/span><\/li>\r\n<\/ul>\r\n<\/div>","rendered":"<div><span style=\"float: right\"><a href=\"https:\/\/youtu.be\/efygizE6cOs\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"epgp books\" width=\"75px\" height=\"75px;\" \/><\/a><br \/>\n<\/span><\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>Learning Objectives<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>The learning objectives of the module are as follows:<\/p>\n<p>&nbsp;<\/p>\n<p>\u2022 To understand Temporal Difference Learning \u2022 To describe the Optimal Value Functions<\/p>\n<p>\u2022 To analyse TD-Prediction<\/p>\n<p>\u2022 To describe Learning an action value function<\/p>\n<p>&nbsp;<\/p>\n<p><strong>40.1 Introduction<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Policy evaluation algorithms are\u00a0\u00a0 intended to estimate the value functions <em>V<\/em> <em>\u03c0\u00a0<\/em>or\u00a0<em>Q\u03c0 <\/em>for a given policy<em> \u03c0<\/em>. Typically these are on-policy algorithms, and the considered policy is assumed to be stationary (or \u201calmost\u201d stationary). There are three classes of policy evaluation algorithms namely Monte Carlo methods, Dynamic Programming, and Temporal Difference Learning or TD learning. Monte Carlo methods do not need a model of the learning environment. From experience in form of sequences of state -action-reward-samples they can approximate future rewards. Monte-Carlo methods are based on the simple idea of averaging a number of random samples of a random quantity in order to estimate its average. Dynamic Programming is based on the Bellman Equation where the problem is broken down into sub problems and depends on a perfect model of the environment. However both Dynamic Programming and Monte Carlo methods only update after a complete sequence that is when the final state is reached. The main issues are whether it is possible to avoid the computational expense and space requirements for storing the transition model estimate of a full Dynamic programming policy evaluation.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">TD learning is considered as the most novel idea in reinforcement learning. Temporal Difference Learning is a model free approach which does not store an estimate of entire transition function but instead stores estimate of Vp, which requires only O(n) space. It carries out local, cheap updates of utility\/value function on a per-action basis. As you may recall Value Functions are state-action pair functions that estimate how good a particular action will be in a given state, or what the return for\u00a0<span style=\"font-size: 1em;text-align: initial\">that action is expected to be a Temporal Difference (TD). Learning methods can be used to estimate these value functions. If the value functions were to be calculated without estimation, the agent would need to wait until the final reward was received before any state-action pair values can be updated. Once the final reward was received, the path taken to reach the final state would need to be traced back and each value updated accordingly.<\/span><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>40.1.1 Comparison \u2013 Monte Carlo, Dynamic Programming and TD Approaches<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Before we discuss TD method let us compare Monte Carlo and Dynamic Programming methods. We will discuss two aspects namely bootstrapping and sampling. In bootstrapping update involves an estimate from a nearby state . While Monte Carlo method does not bootstrap that is each state is independently estimated, Dynamic Programming methods bootstraps that is estimates for each state is dependent on nearby states. In sampling update involves an actual return Monte Carlo method does sampling that is learns from experience in the environment and gets an actual return. Dynamic programming does not sample but learns by spreading constraints until convergence through iterating the Bellman equations without interaction with the environment.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">TD bootstraps that is learning involves an estimate of a nearby state. TD also samples where update involves an actual return.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>40.2\u00a0 Optimal Value Functions<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Before we discuss TD learning let us recall that for finite MDPs, policies can be <strong>partially ordered <\/strong>that is there is always at least one (and possibly many) polic y that is better than or equal to all the others. This is an <strong>optimal policy<\/strong>. We denote them all <em>p<\/em><em>*.<\/em> Optimal policies share the same <strong>optimal state-value function<\/strong>:<\/p>\n<p>&nbsp;<\/p>\n<p><em><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-928\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-307.png\" alt=\"\" width=\"549\" height=\"129\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-307.png 549w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-307-300x70.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-307-65x15.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-307-225x53.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-307-350x82.png 350w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><\/em><\/p>\n<p style=\"text-align: justify\">This is the expected return for taking action \u2018<em>a\u2019<\/em> in state \u2018<em>s\u2019<\/em> and thereafter following an optimal policy. Now let us discuss the Bellman optimality equation for V*.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>40.2.1 Bellman Optimality Equation for V*<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The value of a state under an optimal policy must equal the expected return for the best action from that state where <strong>V*<\/strong>is the unique solution of this system of nonlinear equations.<\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-929\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-308.png\" alt=\"\" width=\"396\" height=\"124\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-308.png 396w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-308-300x94.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-308-65x20.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-308-225x70.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-308-350x110.png 350w\" sizes=\"auto, (max-width: 396px) 100vw, 396px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-930\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-309.png\" alt=\"\" width=\"212\" height=\"59\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-309.png 212w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-309-65x18.png 65w\" sizes=\"auto, (max-width: 212px) 100vw, 212px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The relevant backup diagram is shown in Figure 40.1.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-931\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-310.png\" alt=\"\" width=\"363\" height=\"268\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-310.png 363w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-310-300x221.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-310-65x48.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-310-225x166.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-310-350x258.png 350w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center\"><strong>Figure 40.1 Backup diagram<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left\"><strong> 40.2.2 Bellman Optimality Equation for Q*<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The unique solution of this system is given by the nonlinear equations, where <strong>Q*<\/strong> is the unique solution of this system of nonlinear equations<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-932\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-311.png\" alt=\"\" width=\"369\" height=\"103\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-311.png 369w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-311-300x84.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-311-65x18.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-311-225x63.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-311-350x98.png 350w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The relevant backup diagram is shown in Figure 40.2.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-933\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-312.png\" alt=\"\" width=\"284\" height=\"264\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-312.png 284w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-312-65x60.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-312-225x209.png 225w\" sizes=\"auto, (max-width: 284px) 100vw, 284px\" \/><\/p>\n<p style=\"text-align: justify\">Given <em>Q<\/em>* , the agent does not even have to do a one-step-ahead search in order to find the optimal Action-Value functions.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-934\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-313.png\" alt=\"\" width=\"412\" height=\"56\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-313.png 412w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-313-300x41.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-313-65x9.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-313-225x31.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-313-350x48.png 350w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><strong><br \/>\n40.2.3 Solving the Bellman Optimality Equation<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Finding an optimal policy by solving the Bellman Optimality Equation requires the following that is accurate knowledge of environment dynamics, enough space and time to do the computation, and the Markov Property must be satisfied. The space\u00a0<span style=\"font-size: 1em;text-align: initial\">required is polynomial in number of states but the number of states is often huge (e.g., backgammon has about 10**20 states). Therefore usually we have to settle for approximations. Many reinforcement learning methods can be understood as approximately solving the Bellman Optimality Equation.<\/span><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>40.3 Policy Evaluation<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-935\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-314.png\" alt=\"\" width=\"708\" height=\"258\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-314.png 675w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-314-300x109.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-314-65x24.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-314-225x82.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-314-350x128.png 350w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/p>\n<p style=\"text-align: justify\">Monte Carlo methods do not need full knowledge of environment, but just needs experience, or simulated experience (Figure 40.3). One method is by averaging sample returns which is generally defined only for episodic tasks. This method is similar to DP in terms of policy evaluation, policy improvement.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-936\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-315.png\" alt=\"\" width=\"410\" height=\"215\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-315.png 410w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-315-300x157.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-315-65x34.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-315-225x118.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-315-350x184.png 350w\" sizes=\"auto, (max-width: 410px) 100vw, 410px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 40.3 Simple Monte Carlo Method<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Dynamic Programming (Figure 40.4) needs complete model of the environment and rewards. DP bootstraps that is updates estimates on the basis of other estimates<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-937\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-316.png\" alt=\"\" width=\"496\" height=\"551\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-316.png 496w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-316-270x300.png 270w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-316-65x72.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-316-225x250.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-316-350x389.png 350w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">In TD prediction we estimate the actual return as the sum of the next reward plus the value of the next state (Figure 40.5). As we discussed earlier when the environment,<\/p>\n<ul>\n<li><em>P <\/em>(<em>s<\/em><em>t<\/em>+1 | <em>s<\/em><em>t<\/em> <em>, a<\/em><em>t<\/em>), <em>p<\/em> (<em>r<\/em><em>t<\/em>+1 | <em>s<\/em><em>t<\/em> <em>, a<\/em><em>t<\/em> ), is not known it is called as model-free learning. The temporal difference is defined as the difference between the value of the current action and the value discounted from the next state.<\/li>\n<\/ul>\n<div>\n<p><strong>40.3 TD Prediction<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>TD update for transition from s to s\u2019 is given in Figure 40.6.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-938\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-317.png\" alt=\"\" width=\"604\" height=\"154\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-317.png 604w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-317-300x76.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-317-65x17.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-317-225x57.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-317-350x89.png 350w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 40.6 TD Update<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">The update is maintaining a \u201cmean\u201d of the (noisy) value samples. If the learning rate decreases appropriately with the number of samples (e.g.1\/n) then the value estimates will converge to true values as shown in Figure 40.7.<\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-939\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-318.png\" alt=\"\" width=\"688\" height=\"413\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-318.png 688w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-318-300x180.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-318-65x39.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-318-225x135.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-318-350x210.png 350w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>40.4 Error signal<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Another aspect we need for estimation and bootstrapping is the error signal. Error signal is defined as the difference between current estimate and improved estimate. It drives change of current estimate . There are many types of errors as discussed below:<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-940\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-319.png\" alt=\"\" width=\"718\" height=\"512\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-319.png 718w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-319-300x214.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-319-65x46.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-319-225x160.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-319-350x250.png 350w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/p>\n<div>\n<p><strong>Self-consistent prediction <\/strong>goal is to predict returns that should be self-consistent from one time step to the next (true of both TD and DP).<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Learning using the Error Signal: <\/strong>we could just do a reassignment:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-941\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-320.png\" alt=\"\" width=\"601\" height=\"116\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-320.png 601w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-320-300x58.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-320-65x13.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-320-225x43.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-320-350x68.png 350w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>where \u2018<strong>\u03b1\u2019<\/strong> is a small \u201clearning rate\u201d parameter (either constant, or decreases with time). The above algorithm is known as \u201cTD(0)\u201d .<\/p>\n<p>&nbsp;<\/p>\n<p><strong>40.5 TD Learning<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">TD Learning combines the \u201cbootstrapping\u201d (1-step self-consistency) idea of DP with the \u201csampling\u201d idea of Monte Carlo (MC). Like MC, it doesn\u2019t need a model of the environment, only experience. However TD, but not MC, can be fully incremental. Here we can learn before knowing the final outcome and we can learn without the final outcome (from incomplete sequences). The incorporation of bootstrapping into TD has reduced its variance compared to Monte Carlo, but possibly introduced greater bias.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>40.5.1 Example \u2013 Driving Home<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Initially we will consider TD(0) that is the case where l =0 in TD(l). In this case we only look at the next reward. To understand the concept we consider the example shown in Figure 40.8. Value of each state in this example is the expected time-to-go.<\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-942\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-321.png\" alt=\"\" width=\"669\" height=\"409\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-321.png 669w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-321-300x183.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-321-65x40.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-321-225x138.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-321-350x214.png 350w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 40.8 Driving Home Example<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Figure 40.9 shows the estimated values when we use Monte Carlo and TD approaches.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-943\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-322.png\" alt=\"\" width=\"646\" height=\"313\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-322.png 646w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-322-300x145.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-322-65x31.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-322-225x109.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-322-350x170.png 350w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 40.9 Predicted Values for Monte Carlo and TD Methods<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Now the question is whether it is really necessary to wait until the end of the episode (here \u2013 arrive home) to start learning. According to Monte Carlo method it is necessary to wait. However TD learning argues that learning can occur on-line. Suppose, on another day, you again estimate when leaving your office that it will take 30 minutes to drive home, but then you get stuck in a massive traffic jam . In TD the initial estimate would be changed. The algorithm for TD(0) is given in Figure 40.10. This can be considered a control method where the policy is always updated using a greedy approach with respect to the current estimate. This is also called Sarsa, the On-Policy TD Control algorithm.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-944\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-323.png\" alt=\"\" width=\"683\" height=\"301\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-323.png 683w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-323-300x132.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-323-65x29.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-323-225x99.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-323-350x154.png 350w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 40.10 TD(0) Algorithm<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>40.5.2 Optimality of TD(0)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 1em;text-align: initial\">Suppose only a finite amount of experience is available, say 10 episodes or 100 time steps. Intuitively, we repeatedly present the experience until convergence is achieved. Updates are made after a batch of training data. For any finite Markov prediction task, under batch updating, TD(0) converges for sufficiently small value of l. MC method also converges deterministically but to a different answer<\/span><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>40.6 TD(<\/strong><strong>l<\/strong><strong>)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Figure 40.11shows the TD prediction for n steps and the mathematics behind that is given in Figure 40.12.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-945\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-324.png\" alt=\"\" width=\"590\" height=\"416\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-324.png 590w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-324-300x212.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-324-65x46.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-324-225x159.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-324-350x247.png 350w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 40.11 TD(<\/strong><strong>l<\/strong><strong>) Prediction<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-946\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-325.png\" alt=\"\" width=\"609\" height=\"300\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-325.png 609w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-325-300x148.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-325-65x32.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-325-225x111.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-325-350x172.png 350w\" sizes=\"auto, (max-width: 609px) 100vw, 609px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 40.12 Mathematics of N steps<\/strong><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong style=\"text-align: initial;font-size: 1em\">40.5.1 <\/strong><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><strong style=\"text-align: initial;font-size: 1em\"> Parameter<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">The <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\"> in TD(<\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\">) provides a smooth interpolation between <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\">=0 (pure TD) and <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\">=1 (pure MC), For many toy grid-world type problems, can show that intermediate values of <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\"> work best. However for real-world problems, best <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\"> will be highly problem-dependent.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"text-align: initial;font-size: 1em\">TD(<\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\">) converges to the correct value function Vo (s) with probability 1 for all <\/span><strong style=\"text-align: initial;font-size: 1em\">l<\/strong><span style=\"text-align: initial;font-size: 1em\">. For which a lookup table representation (Vo (s) is a table), it must visit all states an infinite # of times, and a certain schedule for decreasing a(t). However TD(k) converges only for a fixed policy.<\/span><\/p>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>40.6 Learning backgammon using TD(<\/strong><strong>l<\/strong><strong>)<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Neural net observes a sequence of input patterns x1, x2, x3, \u2026, xf which is the sequence of board positions occurring during a game and let xf be the final position. The representation of the board game can be raw board description that is the number of White or Black checkers at each location. We can use simple truncated unary encoding for this representation. At final position xf, reward signal z given can be z = 1 if White wins and z = 0 if Black wins. We can train the neural net using gradient version of TD(l). The trained NN output Vt=V(xt,w) should estimate probability of (White wins | xt ) that is white win given the board position xt.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>40.6.1 Multi layer Neural Network<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>The multilayer neural network for learning Backgammon is shown in Figure 40.13.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-947\" src=\"http:\/\/csp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/65\/2019\/01\/2-326.png\" alt=\"\" width=\"703\" height=\"384\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-326.png 703w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-326-300x164.png 300w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-326-65x36.png 65w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-326-225x123.png 225w, https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-content\/uploads\/sites\/65\/2019\/01\/2-326-350x191.png 350w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/p>\n<p style=\"text-align: center\"><strong>Figure 40.13 Multilayer Network<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">Let the neural net make the moves <strong>itself<\/strong>, using its current evaluator where all legal moves are scored and pick maximum value Vt for White, and minimum Vt for Black.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 1em\">TD-Gammon can teach itself by playing games against itself and learning from the outcome. Works even starting from random initial play and zero initial expert knowledge (surprising). The program achieves strong intermediate play, if we add hand-crafted features it is able to achieve advanced level of play, 2-ply search-strong master play and 3-ply search almost superhuman play. \u201cTD-Leaf\u201d that is n-step TD backups in 2-player games is able to achieve great results for checkers and chess.<\/span><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>40.7 Advantages of TD Learning<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">TD methods do not require a model of the environment, only experience. TD methods can be fully incremental. With TD learning can happen before knowing the final outcome and hence requires less memory and less peak computation. We can in fact learn without even knowing the final outcome that is we can learn from incomplete sequences. This type of learning helps with applications that have very long episodes. Both MC and TD converge under certain assumptions but generally TD does better on stochastic tasks.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Summary<\/strong><\/p>\n<ul>\n<li>Outlined the TD Learning, optimal value functions, and TD prediction<\/li>\n<li>Explained advantages of TD Learning<\/li>\n<li>Reviewed the Bellman&#8217;s\u2019 optimal value functions and TD Prediction<\/li>\n<li>Discussed TD-learning steps and examples<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Summary of the Complete paper<\/strong><\/p>\n<ul>\n<li>Machine learning \u2013 an important approach to solve many of today\u2019s problems<\/li>\n<li>In this course we discussed the following topics<\/li>\n<li>Basics of Machine Learning<\/li>\n<li>Mathematical Foundations \u2013 Probability, Probability Distributions, Linear Algebra, Decision Theory and Information Theory<\/li>\n<li>Supervised Techniques &amp; Classification \u2013 KNN, Decision Trees, SVM, Neural Networks &amp; Genetic Algorithms<\/li>\n<li>Clustering \u2013 K-Means<\/li>\n<li>Semi-supervised Learning<\/li>\n<li>Baye\u2019s Learning \u2013 Na\u00efve Bayes, Bayes Belief Networks, EM method, HMM<\/li>\n<li>Reinforcement Learning<\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<td><strong>you can view video on Temporal Difference Learning<\/strong><\/td>\n<td><a href=\"https:\/\/youtu.be\/efygizE6cOs\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-120\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"\" width=\"36\" height=\"36\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>Web Links<\/strong><\/p>\n<ul>\n<li>http:\/\/en.wikipedia.org\/wiki\/Reinforcement_learning<\/li>\n<li>http:\/\/www.cs.cmu.edu\/afs\/cs\/project\/theo-20\/www\/mlbook\/ch13.pdf<\/li>\n<li>http:\/\/neuro.bstu.by\/ai\/RL-3.pdf<\/li>\n<li>https:\/\/cs.uwaterloo.ca\/~ppoupart\/ICML-07-tutorial-slides\/icml07-brl-tutorial-part2-intro-ghavamzadeh.pdf<\/li>\n<li>ce.sharif.edu\/courses\/91-92\/1\/ce717-2\/resources\/root\/Lectures\/RL.pdf<\/li>\n<li>www.cogsys.wiai.uni-bamberg.de\/teaching\/ss05\/ml\/slides\/cogsysII-10.pdf<\/li>\n<li>https:\/\/www.cs.uic.edu\/~piotr\/cs594\/YijueRL.ppt<\/li>\n<li>https:\/\/en.wikipedia.org\/wiki\/Multi-armed_bandit<\/li>\n<li>http:\/\/teaching.csse.uwa.edu.au\/units\/CITS3001\/lectures\/lectures\/3001%20Reinforcement<\/li>\n<li>%20learning.<\/li>\n<li>https:\/\/www.udacity.com\/wiki\/cs271\/unit10-notes#!#passive-vs-active http:\/\/www.cs.mcgill.ca\/~vkules\/bandits.pdf www.cs.berkeley.edu\/~jordan\/MLShortCourse\/reinforcement-learning.ppt http:\/\/www.inf.ed.ac.uk\/teaching\/courses\/rl\/slides15\/rl02.pdf ai.cs.umbc.edu\/~oates\/classes\/2011\/ML\/TemporalDifference.ppt<\/li>\n<\/ul>\n<p><strong>Supporting &amp; Reference Materials<\/strong><\/p>\n<ul>\n<li>Richard S. Sutton and Andrew G. Barto, \u201cReinforcement Learning: An Introduction\u201d, 1998, MIT press<\/li>\n<li>Wiering, Marco, van Otterlo, Martijn (Eds.), \u201cReinforcement Learning\u201d, State-of-the-ArtSeries:<\/li>\n<li>Adaptation, Learning, and Optimization, Vol. 12, 2012<\/li>\n<li>Stuart Russell and Peter Norvig \u201cArtificial Intelligence: A Modern Approach Prentice Hall Series in Artificial Intelligence), 2009<\/li>\n<li>Tom Mitchell, \u201cMachine Learning\u201d,McGraw-Hill Education, 1997<\/li>\n<li><a href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Alpaydin+Ethem&amp;search-alias=stripbooks\">AlpaydinEthem, <\/a>\u201cIntroduction to Machine Learning\u201d, The MIT Press; third edition, 2014<\/li>\n<li><a style=\"text-align: initial;font-size: 1em\" href=\"http:\/\/www.amazon.in\/s\/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=Stephen+Marsland&amp;search-alias=stripbooks\">Stephen Marsland, <\/a><span style=\"text-align: initial;font-size: 1em\">\u201cMachine Learning: An Algorithmic Perspective\u201d, Chapman and Hall\/CRC; 2 edition, 2014<\/span><\/li>\n<\/ul>\n<\/div>\n","protected":false},"author":3,"menu_order":39,"template":"","meta":{"_acf_changed":false,"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-923","chapter","type-chapter","status-publish","hentry"],"part":3,"_links":{"self":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":7,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/923\/revisions"}],"predecessor-version":[{"id":950,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/923\/revisions\/950"}],"part":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapters\/923\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/media?parent=923"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/pressbooks\/v2\/chapter-type?post=923"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/contributor?post=923"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/csp15\/wp-json\/wp\/v2\/license?post=923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}