<< Chapter < Page Chapter >> Page >
π * ( s ) = arg max a A s ' S P s a ( s ' ) V * ( s ' ) .

Note that π * ( s ) gives the action a that attains the maximum in the “max” in Equation  [link] .

It is a fact that for every state s and every policy π , we have

V * ( s ) = V π * ( s ) V π ( s ) .

The first equality says that the V π * , the value function for π * , is equal to the optimal value function V * for every state s . Further, the inequality above says that π * 's value is at least a large as thevalue of any other other policy. In other words, π * as defined in Equation  [link] is the optimal policy.

Note that π * has the interesting property that it is the optimal policy for all states s . Specifically, it is not the case that if we were starting in some state s then there'd be some optimal policy for that state, and if we were starting in some other state s ' then there'd be some other policy that's optimal policy for s ' . Specifically, the same policy π * attains the maximum in Equation  [link] for all states s . This means that we can use the same policy π * no matter what the initial state of our MDP is.

Value iteration and policy iteration

We now describe two efficient algorithms for solving finite-state MDPs. For now, we will consider only MDPs with finite state and action spaces ( | S | < , | A | < ).

The first algorithm, value iteration , is as follows:

  1. For each state s , initialize V ( s ) : = 0 .
  2. Repeat until convergence {
    • For every state, update V ( s ) : = R ( s ) + max a A γ s ' P s a ( s ' ) V ( s ' ) .
  3. }

This algorithm can be thought of as repeatedly trying to update the estimated value function using Bellman Equations  [link] .

There are two possible ways of performing the updates in the inner loop of the algorithm. In the first, we can first compute the new values for V ( s ) for every state s , and then overwrite all the old values with the new values. This is called a synchronous update. In this case, the algorithm can be viewed as implementing a “Bellman backup operator” that takes a current estimateof the value function, and maps it to a new estimate. (See homework problem for details.) Alternatively, we can also perform asynchronous updates. Here, we would loop over the states (in some order), updating the values one ata time.

Under either synchronous or asynchronous updates, it can be shown that value iteration will cause V to converge to V * . Having found V * , we can then use Equation  [link] to find the optimal policy.

Apart from value iteration, there is a second standard algorithm for finding an optimal policy for an MDP. The policy iteration algorithm proceeds as follows:

  1. Initialize π randomly.
  2. Repeat until convergence {
    1. Let V : = V π .
    2. For each state s , let π ( s ) : = arg max a A s ' P s a ( s ' ) V ( s ' ) .
  3. }

Thus, the inner-loop repeatedly computes the value function for the current policy, and then updates the policy using the current value function. (The policy π found in step (b) is also called the policy that is greedy with respect to V .) Note that step (a) can be done via solving Bellman's equations as described earlier, which in the case of a fixed policy, is just a setof | S | linear equations in | S | variables.

After at most a finite number of iterations of this algorithm, V will converge to V * , and π will converge to π * .

Questions & Answers

what is biology
Hajah Reply
the study of living organisms and their interactions with one another and their environments
AI-Robot
what is biology
Victoria Reply
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
in what situation (s) would be the use of a scanning electron microscope be ideal and why?
Kenna Reply
A scanning electron microscope (SEM) is ideal for situations requiring high-resolution imaging of surfaces. It is commonly used in materials science, biology, and geology to examine the topography and composition of samples at a nanoscale level. SEM is particularly useful for studying fine details,
Hilary
cell is the building block of life.
Condoleezza Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Machine learning. OpenStax CNX. Oct 14, 2013 Download for free at http://cnx.org/content/col11500/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Machine learning' conversation and receive update notifications?

Ask