Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration
|
|
- Augustus Parrish
- 5 years ago
- Views:
Transcription
1 Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration Piyush Rai CS5350/6350: Machine Learning November 29, 2011
2 Reinforcement Learning Supervised Learning: Uses explicit supervision (input-output pairs) Reinforcement Learning: No explicit supervision
3 Reinforcement Learning Supervised Learning: Uses explicit supervision (input-output pairs) Reinforcement Learning: No explicit supervision Learning is modeled as interactions of an agent with an environment Based on using a feedback mechanism (in form of a reward function)
4 Reinforcement Learning Supervised Learning: Uses explicit supervision (input-output pairs) Reinforcement Learning: No explicit supervision Learning is modeled as interactions of an agent with an environment Based on using a feedback mechanism (in form of a reward function) Applications: Robotics (autonomous driving, robot locomotion, etc.) (Computer) Game Playing Online Advertising Information Retrieval (interactive search).. and many more
5 Markov Decision Processes (MDP) Used for modeling the environment the agent is acting in
6 Markov Decision Processes (MDP) Used for modeling the environment the agent is acting in Defined by a tuple (S,A,{P sa },γ,r)
7 Markov Decision Processes (MDP) Used for modeling the environment the agent is acting in Defined by a tuple (S,A,{P sa },γ,r) S is a set of states (today s class: finite state space)
8 Markov Decision Processes (MDP) Used for modeling the environment the agent is acting in Defined by a tuple (S,A,{P sa },γ,r) S is a set of states (today s class: finite state space) A is a set of actions
9 Markov Decision Processes (MDP) Used for modeling the environment the agent is acting in Defined by a tuple (S,A,{P sa },γ,r) S is a set of states (today s class: finite state space) A is a set of actions P sa is a probability distribution over the state space
10 Markov Decision Processes (MDP) Used for modeling the environment the agent is acting in Defined by a tuple (S,A,{P sa },γ,r) S is a set of states (today s class: finite state space) A is a set of actions P sa is a probability distribution over the state space i.e., probability of switching to some state s if we took action a in state s
11 Markov Decision Processes (MDP) Used for modeling the environment the agent is acting in Defined by a tuple (S,A,{P sa },γ,r) S is a set of states (today s class: finite state space) A is a set of actions P sa is a probability distribution over the state space i.e., probability of switching to some state s if we took action a in state s For finite state spaces, P sa is a vector of size S (and sums to 1)
12 Markov Decision Processes (MDP) Used for modeling the environment the agent is acting in Defined by a tuple (S,A,{P sa },γ,r) S is a set of states (today s class: finite state space) A is a set of actions P sa is a probability distribution over the state space i.e., probability of switching to some state s if we took action a in state s For finite state spaces, P sa is a vector of size S (and sums to 1) R : S A R is the reward function (function of state-action pairs) Note: Often the reward is a function of the state only R : S R
13 Markov Decision Processes (MDP) Used for modeling the environment the agent is acting in Defined by a tuple (S,A,{P sa },γ,r) S is a set of states (today s class: finite state space) A is a set of actions P sa is a probability distribution over the state space i.e., probability of switching to some state s if we took action a in state s For finite state spaces, P sa is a vector of size S (and sums to 1) R : S A R is the reward function (function of state-action pairs) Note: Often the reward is a function of the state only R : S R γ [0,1) is called discount factor for future rewards
14 MDP Dynamics Start in some state s 0 S
15 MDP Dynamics Start in some state s 0 S Choose action a 0 A in state s 0
16 MDP Dynamics Start in some state s 0 S Choose action a 0 A in state s 0 New MDP state s 1 S chosen according to P s0a 0 : s 1 P s0a 0
17 MDP Dynamics Start in some state s 0 S Choose action a 0 A in state s 0 New MDP state s 1 S chosen according to P s0a 0 : s 1 P s0a 0 Choose action a 1 A in state s 1
18 MDP Dynamics Start in some state s 0 S Choose action a 0 A in state s 0 New MDP state s 1 S chosen according to P s0a 0 : s 1 P s0a 0 Choose action a 1 A in state s 1 New MDP state s 2 S chosen according to P s1a 1 : s 2 P s1a 1
19 MDP Dynamics Start in some state s 0 S Choose action a 0 A in state s 0 New MDP state s 1 S chosen according to P s0a 0 : s 1 P s0a 0 Choose action a 1 A in state s 1 New MDP state s 2 S chosen according to P s1a 1 : s 2 P s1a 1 Choose action a 2 A in state s 2, and so on..
20 Payoff and Expected Payoff Payoff defines the cumulative reward Upon visiting states s 0,s 1,... with actions a 0,a 1,..., the payoff: R(s 0,a 0 )+γr(s 1,a 1 )+γ 2 R(s 2,a 2 )+...
21 Payoff and Expected Payoff Payoff defines the cumulative reward Upon visiting states s 0,s 1,... with actions a 0,a 1,..., the payoff: R(s 0,a 0 )+γr(s 1,a 1 )+γ 2 R(s 2,a 2 )+... Reward at time t is discounted by γ t (note: γ < 1) We care more about immediate rewards, rather than the future rewards
22 Payoff and Expected Payoff Payoff defines the cumulative reward Upon visiting states s 0,s 1,... with actions a 0,a 1,..., the payoff: R(s 0,a 0 )+γr(s 1,a 1 )+γ 2 R(s 2,a 2 )+... Reward at time t is discounted by γ t (note: γ < 1) We care more about immediate rewards, rather than the future rewards If rewards defined in terms of states only, then the payoff: R(s 0 )+γr(s 1 )+γ 2 R(s 2 )+...
23 Payoff and Expected Payoff Payoff defines the cumulative reward Upon visiting states s 0,s 1,... with actions a 0,a 1,..., the payoff: R(s 0,a 0 )+γr(s 1,a 1 )+γ 2 R(s 2,a 2 )+... Reward at time t is discounted by γ t (note: γ < 1) We care more about immediate rewards, rather than the future rewards If rewards defined in terms of states only, then the payoff: R(s 0 )+γr(s 1 )+γ 2 R(s 2 )+... We want to choose actions over time to maximize the expected payoff: E[R(s 0 )+γr(s 1 )+γ 2 R(s 2 )+...] Expectation is w.r.t. all possibilities for the initial state
24 Policy Function Policy is a function π : S A, mapping from the states to the actions For an agent with policy π, the action in state s: a = π(s)
25 Policy Function Policy is a function π : S A, mapping from the states to the actions For an agent with policy π, the action in state s: a = π(s) Value Function for a policy π V π (s) = E[R(s 0 )+γr(s 1 )+γ 2 R(s 2 )+... s 0 = s,π] V π (s) is the expected payoff starting in state s and following policy π
26 Policy Function Policy is a function π : S A, mapping from the states to the actions For an agent with policy π, the action in state s: a = π(s) Value Function for a policy π V π (s) = E[R(s 0 )+γr(s 1 )+γ 2 R(s 2 )+... s 0 = s,π] V π (s) is the expected payoff starting in state s and following policy π Bellman s Equation: Gives a recursive definition of the Value Function: V π (s) = R(s)+γ sπ(s) (s s SP )V π (s ) = R(s)+E s P sπ(s) [V π (s )] It s the immediate reward + expected sum of future discounted rewards
27 Computing the Value Function Bellman s equation can be used to compute the value function V π (s) V π (s) = R(s)+γ s SP sπ(s) (s )V π (s ) For an MDP with finite many state, it gives us S equations with S unknowns Efficiently solvable
28 Computing the Value Function Bellman s equation can be used to compute the value function V π (s) V π (s) = R(s)+γ s SP sπ(s) (s )V π (s ) For an MDP with finite many state, it gives us S equations with S unknowns Efficiently solvable Optimal Value Function is defined as: V (s) = max π Vπ (s) It s the best possible payoff that any policy π can give
29 Computing the Value Function Bellman s equation can be used to compute the value function V π (s) V π (s) = R(s)+γ s SP sπ(s) (s )V π (s ) For an MDP with finite many state, it gives us S equations with S unknowns Efficiently solvable Optimal Value Function is defined as: V (s) = max π Vπ (s) It s the best possible payoff that any policy π can give The Optimal Value Function can also be defined as: V (s) = R(s)+max γ P sa (s )V (s ) a A s S
30 Optimal Policy The Optimal Value Function: V (s) = R(s)+max γ P sa (s )V (s ) a A s S
31 Optimal Policy The Optimal Value Function: Optimal Policy π : S A: V (s) = R(s)+max γ P sa (s )V (s ) a A s S π (s) = argmax a A P sa (s )V (s ) The optimal policy for state s gives the action a that maximizes the optimal value function for that state s S
32 Optimal Policy The Optimal Value Function: Optimal Policy π : S A: V (s) = R(s)+max γ P sa (s )V (s ) a A s S π (s) = argmax a A P sa (s )V (s ) The optimal policy for state s gives the action a that maximizes the optimal value function for that state For every state s and every policy π s S V (s) = V π (s) V π (s) Note: π is the optimal policy function for all states s Doesn t matter what the initial MDP state is
33 Finding the Optimal Policy Optimal Policy π : S A: π (s) = argmax a A Two standard methods to find it P sa (s )V (s ) (1) s S
34 Finding the Optimal Policy Optimal Policy π : S A: π (s) = argmax a A Two standard methods to find it P sa (s )V (s ) (1) s S Value Iteration: Zero-initialize and iteratively refine V(s) as it will converge towards V (s). Finally use equation 1 to find the optimal policy π
35 Finding the Optimal Policy Optimal Policy π : S A: π (s) = argmax a A Two standard methods to find it P sa (s )V (s ) (1) s S Value Iteration: Zero-initialize and iteratively refine V(s) as it will converge towards V (s). Finally use equation 1 to find the optimal policy π Policy Iteration: Random-initialize and iteratively refine π(s) by alternating between computing V(s) and then π(s) as per equation 1. π eventually converges to the optimal policy π
36 Finding the Optimal Policy: Value Iteration Iteratively compute/refine the value function V until convergence
37 Finding the Optimal Policy: Value Iteration Iteratively compute/refine the value function V until convergence Value Iteration property: V converges to V
38 Finding the Optimal Policy: Value Iteration Iteratively compute/refine the value function V until convergence Value Iteration property: V converges to V Upon convergence, use π (s) = argmax a A s S P sa(s )V (s )
39 Finding the Optimal Policy: Value Iteration Iteratively compute/refine the value function V until convergence Value Iteration property: V converges to V Upon convergence, use π (s) = argmax a A s S P sa(s )V (s ) Note: The inner loop can update V(s) for all states simultaneously, or in some order
40 Finding the Optimal Policy: Policy Iteration Iteratively compute/refine the policy π until convergence
41 Finding the Optimal Policy: Policy Iteration Iteratively compute/refine the policy π until convergence Step (a) the computes the value function for the current policy π Can be done using Bellman s equations (solving S equations in S unknowns)
42 Finding the Optimal Policy: Policy Iteration Iteratively compute/refine the policy π until convergence Step (a) the computes the value function for the current policy π Can be done using Bellman s equations (solving S equations in S unknowns) Step (b) gives the policy that is greedy w.r.t. V
43 Learning an MDP Model So far we assumed: State transition probabilities {P sa} are given Rewards R(s) at each state are known Often we don t know these and want to learn these
44 Learning an MDP Model So far we assumed: State transition probabilities {P sa} are given Rewards R(s) at each state are known Often we don t know these and want to learn these These are learned using experience (i.e., a set of previous trials) s (j) i a (j) i is the state at time i of trial j is the corresponding action at that state
45 Learning an MDP Model Given this experience, the MLE estimate of state transition probabilities: P sa (s ) = # of times we took action a in state s and got to s # of times we took action a in state s
46 Learning an MDP Model Given this experience, the MLE estimate of state transition probabilities: P sa (s ) = # of times we took action a in state s and got to s # of times we took action a in state s Note: if action a is never taken in state s, the above ratio is 0/0 In that case: P sa(s ) = 1/ S (uniform distribution over all states)
47 Learning an MDP Model Given this experience, the MLE estimate of state transition probabilities: P sa (s ) = # of times we took action a in state s and got to s # of times we took action a in state s Note: if action a is never taken in state s, the above ratio is 0/0 In that case: P sa(s ) = 1/ S (uniform distribution over all states) P sa is easy to update if we gather more experience (i.e., do more trials).. just add counts in the numerator and denominator
48 Learning an MDP Model Given this experience, the MLE estimate of state transition probabilities: P sa (s ) = # of times we took action a in state s and got to s # of times we took action a in state s Note: if action a is never taken in state s, the above ratio is 0/0 In that case: P sa(s ) = 1/ S (uniform distribution over all states) P sa is easy to update if we gather more experience (i.e., do more trials).. just add counts in the numerator and denominator Likewise, the expected reward R(s) in state s can be computed R(s) = average reward in state s across all the trials
49 MDP Learning + Policy Learning Alternate between learning the MDP (P sa and R), and learning the policy Policy learning step can be done using value iteration or policy iteration
50 MDP Learning + Policy Learning Alternate between learning the MDP (P sa and R), and learning the policy Policy learning step can be done using value iteration or policy iteration The Algorithm (uses value iteration) Randomly initialize policy π
51 MDP Learning + Policy Learning Alternate between learning the MDP (P sa and R), and learning the policy Policy learning step can be done using value iteration or policy iteration The Algorithm (uses value iteration) Randomly initialize policy π Repeat until convergence 1 Execute policy π in the MDP to generate a set of trials
52 MDP Learning + Policy Learning Alternate between learning the MDP (P sa and R), and learning the policy Policy learning step can be done using value iteration or policy iteration The Algorithm (uses value iteration) Randomly initialize policy π Repeat until convergence 1 Execute policy π in the MDP to generate a set of trials 2 Use this experience to estimate P sa and R
53 MDP Learning + Policy Learning Alternate between learning the MDP (P sa and R), and learning the policy Policy learning step can be done using value iteration or policy iteration The Algorithm (uses value iteration) Randomly initialize policy π Repeat until convergence 1 Execute policy π in the MDP to generate a set of trials 2 Use this experience to estimate P sa and R 3 Apply value iteration with the estimated P sa and R Gives a new estimate of the value function V
54 MDP Learning + Policy Learning Alternate between learning the MDP (P sa and R), and learning the policy Policy learning step can be done using value iteration or policy iteration The Algorithm (uses value iteration) Randomly initialize policy π Repeat until convergence 1 Execute policy π in the MDP to generate a set of trials 2 Use this experience to estimate P sa and R 3 Apply value iteration with the estimated P sa and R Gives a new estimate of the value function V 4 Update policy π as the greedy policy w.r.t. V
55 MDP Learning + Policy Learning Alternate between learning the MDP (P sa and R), and learning the policy Policy learning step can be done using value iteration or policy iteration The Algorithm (uses value iteration) Randomly initialize policy π Repeat until convergence 1 Execute policy π in the MDP to generate a set of trials 2 Use this experience to estimate P sa and R 3 Apply value iteration with the estimated P sa and R Gives a new estimate of the value function V 4 Update policy π as the greedy policy w.r.t. V Note: Step 3 can be made more efficient by initializing V with values from the previous iteration
56 Value Iteration vs Policy Iteration Small state spaces: Policy Iteration typically very fast and converges quickly
57 Value Iteration vs Policy Iteration Small state spaces: Policy Iteration typically very fast and converges quickly Large state spaces: Policy Iteration may be slow Reason: Policy Iteration needs to solve a large system of linear equations Value iteration is preferred in such cases
58 Value Iteration vs Policy Iteration Small state spaces: Policy Iteration typically very fast and converges quickly Large state spaces: Policy Iteration may be slow Reason: Policy Iteration needs to solve a large system of linear equations Value iteration is preferred in such cases Very large state spaces: Value function can be approximated using some regression algorithm Optimality guarantee is lost however
59 Next Class Continuous state MDP State-space discretization Value function approximation
Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration
Reinforcement Learning (1): Discrete MDP, Value Iteration, Policy Iteration Piyush Rai CS5350/6350: Machine Learning November 29, 2011 Reinforcement Learning Supervised Learning: Uses explicit supervision
More informationMaking Complex Decisions
Ch. 17 p.1/29 Making Complex Decisions Chapter 17 Ch. 17 p.2/29 Outline Sequential decision problems Value iteration algorithm Policy iteration algorithm Ch. 17 p.3/29 A simple environment 3 +1 p=0.8 2
More informationMarkov Decision Processes: Making Decision in the Presence of Uncertainty. (some of) R&N R&N
Markov Decision Processes: Making Decision in the Presence of Uncertainty (some of) R&N 16.1-16.6 R&N 17.1-17.4 Different Aspects of Machine Learning Supervised learning Classification - concept learning
More informationCS 188: Artificial Intelligence
CS 188: Artificial Intelligence Markov Decision Processes Dan Klein, Pieter Abbeel University of California, Berkeley Non-Deterministic Search 1 Example: Grid World A maze-like problem The agent lives
More informationReinforcement Learning. Slides based on those used in Berkeley's AI class taught by Dan Klein
Reinforcement Learning Slides based on those used in Berkeley's AI class taught by Dan Klein Reinforcement Learning Basic idea: Receive feedback in the form of rewards Agent s utility is defined by the
More informationThe Agent-Environment Interface Goals, Rewards, Returns The Markov Property The Markov Decision Process Value Functions Optimal Value Functions
The Agent-Environment Interface Goals, Rewards, Returns The Markov Property The Markov Decision Process Value Functions Optimal Value Functions Optimality and Approximation Finite MDP: {S, A, R, p, γ}
More informationCS 343: Artificial Intelligence
CS 343: Artificial Intelligence Markov Decision Processes II Prof. Scott Niekum The University of Texas at Austin [These slides based on those of Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC
More information91.420/543: Artificial Intelligence UMass Lowell CS Fall 2010
91.420/543: Artificial Intelligence UMass Lowell CS Fall 2010 Lecture 17 & 18: Markov Decision Processes Oct 12 13, 2010 A subset of Lecture 9 slides from Dan Klein UC Berkeley Many slides over the course
More informationCOMP417 Introduction to Robotics and Intelligent Systems. Reinforcement Learning - 2
COMP417 Introduction to Robotics and Intelligent Systems Reinforcement Learning - 2 Speaker: Sandeep Manjanna Acklowledgement: These slides use material from Pieter Abbeel s, Dan Klein s and John Schulman
More informationMarkov Decision Processes
Markov Decision Processes Robert Platt Northeastern University Some images and slides are used from: 1. CS188 UC Berkeley 2. AIMA 3. Chris Amato Stochastic domains So far, we have studied search Can use
More informationReinforcement Learning and Simulation-Based Search
Reinforcement Learning and Simulation-Based Search David Silver Outline 1 Reinforcement Learning 2 3 Planning Under Uncertainty Reinforcement Learning Markov Decision Process Definition A Markov Decision
More informationNon-Deterministic Search
Non-Deterministic Search MDP s 1 Non-Deterministic Search How do you plan (search) when your actions might fail? In general case, how do you plan, when the actions have multiple possible outcomes? 2 Example:
More informationMarkov Decision Process
Markov Decision Process Human-aware Robotics 2018/02/13 Chapter 17.3 in R&N 3rd Ø Announcement: q Slides for this lecture are here: http://www.public.asu.edu/~yzhan442/teaching/cse471/lectures/mdp-ii.pdf
More informationReinforcement Learning
Reinforcement Learning Basic idea: Receive feedback in the form of rewards Agent s utility is defined by the reward function Must (learn to) act so as to maximize expected rewards Grid World The agent
More informationTDT4171 Artificial Intelligence Methods
TDT47 Artificial Intelligence Methods Lecture 7 Making Complex Decisions Norwegian University of Science and Technology Helge Langseth IT-VEST 0 helgel@idi.ntnu.no TDT47 Artificial Intelligence Methods
More informationMaking Decisions. CS 3793 Artificial Intelligence Making Decisions 1
Making Decisions CS 3793 Artificial Intelligence Making Decisions 1 Planning under uncertainty should address: The world is nondeterministic. Actions are not certain to succeed. Many events are outside
More informationCSE 473: Artificial Intelligence
CSE 473: Artificial Intelligence Markov Decision Processes (MDPs) Luke Zettlemoyer Many slides over the course adapted from Dan Klein, Stuart Russell or Andrew Moore 1 Announcements PS2 online now Due
More informationLecture 12: MDP1. Victor R. Lesser. CMPSCI 683 Fall 2010
Lecture 12: MDP1 Victor R. Lesser CMPSCI 683 Fall 2010 Biased Random GSAT - WalkSat Notice no random restart 2 Today s lecture Search where there is Uncertainty in Operator Outcome --Sequential Decision
More informationCS 188: Artificial Intelligence
CS 188: Artificial Intelligence Markov Decision Processes Dan Klein, Pieter Abbeel University of California, Berkeley Non Deterministic Search Example: Grid World A maze like problem The agent lives in
More informationLecture 17: More on Markov Decision Processes. Reinforcement learning
Lecture 17: More on Markov Decision Processes. Reinforcement learning Learning a model: maximum likelihood Learning a value function directly Monte Carlo Temporal-difference (TD) learning COMP-424, Lecture
More informationCSEP 573: Artificial Intelligence
CSEP 573: Artificial Intelligence Markov Decision Processes (MDP)! Ali Farhadi Many slides over the course adapted from Luke Zettlemoyer, Dan Klein, Pieter Abbeel, Stuart Russell or Andrew Moore 1 Outline
More informationCS 188: Artificial Intelligence Fall 2011
CS 188: Artificial Intelligence Fall 2011 Lecture 9: MDPs 9/22/2011 Dan Klein UC Berkeley Many slides over the course adapted from either Stuart Russell or Andrew Moore 2 Grid World The agent lives in
More informationCOS402- Artificial Intelligence Fall Lecture 17: MDP: Value Iteration and Policy Iteration
COS402- Artificial Intelligence Fall 2015 Lecture 17: MDP: Value Iteration and Policy Iteration Outline The Bellman equation and Bellman update Contraction Value iteration Policy iteration The Bellman
More informationMarkov Decision Processes
Markov Decision Processes Robert Platt Northeastern University Some images and slides are used from: 1. CS188 UC Berkeley 2. RN, AIMA Stochastic domains Image: Berkeley CS188 course notes (downloaded Summer
More informationCS 188: Artificial Intelligence Spring Announcements
CS 188: Artificial Intelligence Spring 2011 Lecture 9: MDPs 2/16/2011 Pieter Abbeel UC Berkeley Many slides over the course adapted from either Dan Klein, Stuart Russell or Andrew Moore 1 Announcements
More informationMarkov Decision Processes (MDPs) CS 486/686 Introduction to AI University of Waterloo
Markov Decision Processes (MDPs) CS 486/686 Introduction to AI University of Waterloo Outline Sequential Decision Processes Markov chains Highlight Markov property Discounted rewards Value iteration Markov
More information2D5362 Machine Learning
2D5362 Machine Learning Reinforcement Learning MIT GALib Available at http://lancet.mit.edu/ga/ download galib245.tar.gz gunzip galib245.tar.gz tar xvf galib245.tar cd galib245 make or access my files
More informationComplex Decisions. Sequential Decision Making
Sequential Decision Making Outline Sequential decision problems Value iteration Policy iteration POMDPs (basic concepts) Slides partially based on the Book "Reinforcement Learning: an introduction" by
More informationIntroduction to Reinforcement Learning. MAL Seminar
Introduction to Reinforcement Learning MAL Seminar 2014-2015 RL Background Learning by interacting with the environment Reward good behavior, punish bad behavior Trial & Error Combines ideas from psychology
More information4 Reinforcement Learning Basic Algorithms
Learning in Complex Systems Spring 2011 Lecture Notes Nahum Shimkin 4 Reinforcement Learning Basic Algorithms 4.1 Introduction RL methods essentially deal with the solution of (optimal) control problems
More informationReinforcement learning and Markov Decision Processes (MDPs) (B) Avrim Blum
Reinforcement learning and Markov Decision Processes (MDPs) 15-859(B) Avrim Blum RL and MDPs General scenario: We are an agent in some state. Have observations, perform actions, get rewards. (See lights,
More informationBasic Framework. About this class. Rewards Over Time. [This lecture adapted from Sutton & Barto and Russell & Norvig]
Basic Framework [This lecture adapted from Sutton & Barto and Russell & Norvig] About this class Markov Decision Processes The Bellman Equation Dynamic Programming for finding value functions and optimal
More informationLecture 2: Making Good Sequences of Decisions Given a Model of World. CS234: RL Emma Brunskill Winter 2018
Lecture 2: Making Good Sequences of Decisions Given a Model of World CS234: RL Emma Brunskill Winter 218 Human in the loop exoskeleton work from Steve Collins lab Class Structure Last Time: Introduction
More informationMarkov Decision Processes. Lirong Xia
Markov Decision Processes Lirong Xia Today ØMarkov decision processes search with uncertain moves and infinite space ØComputing optimal policy value iteration policy iteration 2 Grid World Ø The agent
More informationReinforcement Learning Lectures 4 and 5
Reinforcement Learning Lectures 4 and 5 Gillian Hayes 18th January 2007 Reinforcement Learning 1 Framework Rewards, Returns Environment Dynamics Components of a Problem Values and Action Values, V and
More informationIntro to Reinforcement Learning. Part 3: Core Theory
Intro to Reinforcement Learning Part 3: Core Theory Interactive Example: You are the algorithm! Finite Markov decision processes (finite MDPs) dynamics p p p Experience: S 0 A 0 R 1 S 1 A 1 R 2 S 2 A 2
More informationMonte Carlo Methods (Estimators, On-policy/Off-policy Learning)
1 / 24 Monte Carlo Methods (Estimators, On-policy/Off-policy Learning) Julie Nutini MLRG - Winter Term 2 January 24 th, 2017 2 / 24 Monte Carlo Methods Monte Carlo (MC) methods are learning methods, used
More informationDecision Theory: Value Iteration
Decision Theory: Value Iteration CPSC 322 Decision Theory 4 Textbook 9.5 Decision Theory: Value Iteration CPSC 322 Decision Theory 4, Slide 1 Lecture Overview 1 Recap 2 Policies 3 Value Iteration Decision
More informationReinforcement Learning
Reinforcement Learning MDP March May, 2013 MDP MDP: S, A, P, R, γ, µ State can be partially observable: Partially Observable MDPs () Actions can be temporally extended: Semi MDPs (SMDPs) and Hierarchical
More informationMDPs: Bellman Equations, Value Iteration
MDPs: Bellman Equations, Value Iteration Sutton & Barto Ch 4 (Cf. AIMA Ch 17, Section 2-3) Adapted from slides kindly shared by Stuart Russell Sutton & Barto Ch 4 (Cf. AIMA Ch 17, Section 2-3) 1 Appreciations
More informationCPS 270: Artificial Intelligence Markov decision processes, POMDPs
CPS 270: Artificial Intelligence http://www.cs.duke.edu/courses/fall08/cps270/ Markov decision processes, POMDPs Instructor: Vincent Conitzer Warmup: a Markov process with rewards We derive some reward
More informationCS 234 Winter 2019 Assignment 1 Due: January 23 at 11:59 pm
CS 234 Winter 2019 Assignment 1 Due: January 23 at 11:59 pm For submission instructions please refer to website 1 Optimal Policy for Simple MDP [20 pts] Consider the simple n-state MDP shown in Figure
More informationReinforcement Learning 04 - Monte Carlo. Elena, Xi
Reinforcement Learning 04 - Monte Carlo Elena, Xi Previous lecture 2 Markov Decision Processes Markov decision processes formally describe an environment for reinforcement learning where the environment
More informationOverview: Representation Techniques
1 Overview: Representation Techniques Week 6 Representations for classical planning problems deterministic environment; complete information Week 7 Logic programs for problem representations including
More informationCS 461: Machine Learning Lecture 8
CS 461: Machine Learning Lecture 8 Dr. Kiri Wagstaff kiri.wagstaff@calstatela.edu 2/23/08 CS 461, Winter 2008 1 Plan for Today Review Clustering Reinforcement Learning How different from supervised, unsupervised?
More informationCS885 Reinforcement Learning Lecture 3b: May 9, 2018
CS885 Reinforcement Learning Lecture 3b: May 9, 2018 Intro to Reinforcement Learning [SutBar] Sec. 5.1-5.3, 6.1-6.3, 6.5, [Sze] Sec. 3.1, 4.3, [SigBuf] Sec. 2.1-2.5, [RusNor] Sec. 21.1-21.3, CS885 Spring
More informationMonte-Carlo Planning: Introduction and Bandit Basics. Alan Fern
Monte-Carlo Planning: Introduction and Bandit Basics Alan Fern 1 Large Worlds We have considered basic model-based planning algorithms Model-based planning: assumes MDP model is available Methods we learned
More informationLecture 7: MDPs I. Question. Course plan. So far: search problems. Uncertainty in the real world
Lecture 7: MDPs I cs221.stanford.edu/q Question How would you get to Mountain View on Friday night in the least amount of time? bike drive Caltrain Uber/Lyft fly CS221 / Spring 2018 / Sadigh CS221 / Spring
More informationCS221 / Spring 2018 / Sadigh. Lecture 7: MDPs I
CS221 / Spring 2018 / Sadigh Lecture 7: MDPs I cs221.stanford.edu/q Question How would you get to Mountain View on Friday night in the least amount of time? bike drive Caltrain Uber/Lyft fly CS221 / Spring
More informationSequential Decision Making
Sequential Decision Making Dynamic programming Christos Dimitrakakis Intelligent Autonomous Systems, IvI, University of Amsterdam, The Netherlands March 18, 2008 Introduction Some examples Dynamic programming
More informationReasoning with Uncertainty
Reasoning with Uncertainty Markov Decision Models Manfred Huber 2015 1 Markov Decision Process Models Markov models represent the behavior of a random process, including its internal state and the externally
More informationCS 188: Artificial Intelligence. Outline
C 188: Artificial Intelligence Markov Decision Processes (MDPs) Pieter Abbeel UC Berkeley ome slides adapted from Dan Klein 1 Outline Markov Decision Processes (MDPs) Formalism Value iteration In essence
More informationMonte-Carlo Planning: Introduction and Bandit Basics. Alan Fern
Monte-Carlo Planning: Introduction and Bandit Basics Alan Fern 1 Large Worlds We have considered basic model-based planning algorithms Model-based planning: assumes MDP model is available Methods we learned
More informationRollout Allocation Strategies for Classification-based Policy Iteration
Rollout Allocation Strategies for Classification-based Policy Iteration V. Gabillon, A. Lazaric & M. Ghavamzadeh firstname.lastname@inria.fr Workshop on Reinforcement Learning and Search in Very Large
More informationMarkov Decision Processes. CS 486/686: Introduction to Artificial Intelligence
Markov Decision Processes CS 486/686: Introduction to Artificial Intelligence 1 Outline Markov Chains Discounted Rewards Markov Decision Processes (MDP) - Value Iteration - Policy Iteration 2 Markov Chains
More informationTemporal Abstraction in RL
Temporal Abstraction in RL How can an agent represent stochastic, closed-loop, temporally-extended courses of action? How can it act, learn, and plan using such representations? HAMs (Parr & Russell 1998;
More informationQ1. [?? pts] Search Traces
CS 188 Spring 2010 Introduction to Artificial Intelligence Midterm Exam Solutions Q1. [?? pts] Search Traces Each of the trees (G1 through G5) was generated by searching the graph (below, left) with a
More informationMDPs and Value Iteration 2/20/17
MDPs and Value Iteration 2/20/17 Recall: State Space Search Problems A set of discrete states A distinguished start state A set of actions available to the agent in each state An action function that,
More informationCS 360: Advanced Artificial Intelligence Class #16: Reinforcement Learning
CS 360: Advanced Artificial Intelligence Class #16: Reinforcement Learning Daniel M. Gaines Note: content for slides adapted from Sutton and Barto [1998] Introduction Animals learn through interaction
More information17 MAKING COMPLEX DECISIONS
267 17 MAKING COMPLEX DECISIONS The agent s utility now depends on a sequence of decisions In the following 4 3grid environment the agent makes a decision to move (U, R, D, L) at each time step When the
More informationProbabilistic Robotics: Probabilistic Planning and MDPs
Probabilistic Robotics: Probabilistic Planning and MDPs Slide credits: Wolfram Burgard, Dieter Fox, Cyrill Stachniss, Giorgio Grisetti, Maren Bennewitz, Christian Plagemann, Dirk Haehnel, Mike Montemerlo,
More informationLecture 7: Bayesian approach to MAB - Gittins index
Advanced Topics in Machine Learning and Algorithmic Game Theory Lecture 7: Bayesian approach to MAB - Gittins index Lecturer: Yishay Mansour Scribe: Mariano Schain 7.1 Introduction In the Bayesian approach
More informationDeep RL and Controls Homework 1 Spring 2017
10-703 Deep RL and Controls Homework 1 Spring 2017 February 1, 2017 Due February 17, 2017 Instructions You have 15 days from the release of the assignment until it is due. Refer to gradescope for the exact
More informationReinforcement Learning
Reinforcement Learning Monte Carlo Methods Heiko Zimmermann 15.05.2017 1 Monte Carlo Monte Carlo policy evaluation First visit policy evaluation Estimating q values On policy methods Off policy methods
More informationTemporal Abstraction in RL. Outline. Example. Markov Decision Processes (MDPs) ! Options
Temporal Abstraction in RL Outline How can an agent represent stochastic, closed-loop, temporally-extended courses of action? How can it act, learn, and plan using such representations?! HAMs (Parr & Russell
More informationStat 260/CS Learning in Sequential Decision Problems. Peter Bartlett
Stat 260/CS 294-102. Learning in Sequential Decision Problems. Peter Bartlett 1. Gittins Index: Discounted, Bayesian (hence Markov arms). Reduces to stopping problem for each arm. Interpretation as (scaled)
More informationLogistics. CS 473: Artificial Intelligence. Markov Decision Processes. PS 2 due today Midterm in one week
CS 473: Artificial Intelligence Markov Decision Processes Dan Weld University of Washington [Slides originally created by Dan Klein & Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials
More informationThe Irrevocable Multi-Armed Bandit Problem
The Irrevocable Multi-Armed Bandit Problem Ritesh Madan Qualcomm-Flarion Technologies May 27, 2009 Joint work with Vivek Farias (MIT) 2 Multi-Armed Bandit Problem n arms, where each arm i is a Markov Decision
More informationMarkov Decision Processes
Markov Decision Processes Ryan P. Adams COS 324 Elements of Machine Learning Princeton University We now turn to a new aspect of machine learning, in which agents take actions and become active in their
More informationMDP Algorithms. Thomas Keller. June 20, University of Basel
MDP Algorithms Thomas Keller University of Basel June 20, 208 Outline of this lecture Markov decision processes Planning via determinization Monte-Carlo methods Monte-Carlo Tree Search Heuristic Search
More informationAlgorithmic Trading using Reinforcement Learning augmented with Hidden Markov Model
Algorithmic Trading using Reinforcement Learning augmented with Hidden Markov Model Simerjot Kaur (sk3391) Stanford University Abstract This work presents a novel algorithmic trading system based on reinforcement
More informationAM 121: Intro to Optimization Models and Methods
AM 121: Intro to Optimization Models and Methods Lecture 18: Markov Decision Processes Yiling Chen and David Parkes Lesson Plan Markov decision processes Policies and Value functions Solving: average reward,
More informationMonte-Carlo Planning Look Ahead Trees. Alan Fern
Monte-Carlo Planning Look Ahead Trees Alan Fern 1 Monte-Carlo Planning Outline Single State Case (multi-armed bandits) A basic tool for other algorithms Monte-Carlo Policy Improvement Policy rollout Policy
More informationReinforcement Learning. Monte Carlo and Temporal Difference Learning
Reinforcement Learning Monte Carlo and Temporal Difference Learning Manfred Huber 2014 1 Monte Carlo Methods Dynamic Programming Requires complete knowledge of the MDP Spends equal time on each part of
More informationCS221 / Spring 2018 / Sadigh. Lecture 8: MDPs II
CS221 / Spring 218 / Sadigh Lecture 8: MDPs II cs221.stanford.edu/q Question If you wanted to go from Orbisonia to Rockhill, how would you get there? ride bus 1 ride bus 17 ride the magic tram CS221 /
More informationReinforcement Learning Analysis, Grid World Applications
Reinforcement Learning Analysis, Grid World Applications Kunal Sharma GTID: ksharma74, CS 4641 Machine Learning Abstract This paper explores two Markov decision process problems with varying state sizes.
More informationReinforcement Learning
Reinforcement Learning Hierarchical Reinforcement Learning Action hierarchy, hierarchical RL, semi-mdp Vien Ngo Marc Toussaint University of Stuttgart Outline Hierarchical reinforcement learning Learning
More informationExample: Grid World. CS 188: Artificial Intelligence Markov Decision Processes II. Recap: MDPs. Optimal Quantities
CS 188: Artificial Intelligence Markov Deciion Procee II Intructor: Dan Klein and Pieter Abbeel --- Univerity of California, Berkeley [Thee lide were created by Dan Klein and Pieter Abbeel for CS188 Intro
More informationCS 188 Fall Introduction to Artificial Intelligence Midterm 1. ˆ You have approximately 2 hours and 50 minutes.
CS 188 Fall 2013 Introduction to Artificial Intelligence Midterm 1 ˆ You have approximately 2 hours and 50 minutes. ˆ The exam is closed book, closed notes except your one-page crib sheet. ˆ Please use
More informationCS360 Homework 14 Solution
CS360 Homework 14 Solution Markov Decision Processes 1) Invent a simple Markov decision process (MDP) with the following properties: a) it has a goal state, b) its immediate action costs are all positive,
More informationc 2004 IEEE. Reprinted from the Proceedings of the International Joint Conference on Neural Networks (IJCNN-2004), Budapest, Hungary, pp
c 24 IEEE. Reprinted from the Proceedings of the International Joint Conference on Neural Networks (IJCNN-24), Budapest, Hungary, pp. 197 112. This material is posted here with permission of the IEEE.
More informationLec 1: Single Agent Dynamic Models: Nested Fixed Point Approach. K. Sudhir MGT 756: Empirical Methods in Marketing
Lec 1: Single Agent Dynamic Models: Nested Fixed Point Approach K. Sudhir MGT 756: Empirical Methods in Marketing RUST (1987) MODEL AND ESTIMATION APPROACH A Model of Harold Zurcher Rust (1987) Empirical
More information16 MAKING SIMPLE DECISIONS
247 16 MAKING SIMPLE DECISIONS Let us associate each state S with a numeric utility U(S), which expresses the desirability of the state A nondeterministic action A will have possible outcome states Result
More informationThe exam is closed book, closed calculator, and closed notes except your one-page crib sheet.
CS 188 Spring 2015 Introduction to Artificial Intelligence Midterm 1 You have approximately 2 hours and 50 minutes. The exam is closed book, closed calculator, and closed notes except your one-page crib
More informationEE365: Markov Decision Processes
EE365: Markov Decision Processes Markov decision processes Markov decision problem Examples 1 Markov decision processes 2 Markov decision processes add input (or action or control) to Markov chain with
More informationCS 188: Artificial Intelligence Fall Markov Decision Processes
CS 188: Artificial Intelligence Fall 2007 Lecture 10: MDP 9/27/2007 Dan Klein UC Berkeley Markov Deciion Procee An MDP i defined by: A et of tate S A et of action a A A tranition function T(,a, ) Prob
More informationStrategy -1- Strategy
Strategy -- Strategy A Duopoly, Cournot equilibrium 2 B Mixed strategies: Rock, Scissors, Paper, Nash equilibrium 5 C Games with private information 8 D Additional exercises 24 25 pages Strategy -2- A
More informationCEC login. Student Details Name SOLUTIONS
Student Details Name SOLUTIONS CEC login Instructions You have roughly 1 minute per point, so schedule your time accordingly. There is only one correct answer per question. Good luck! Question 1. Searching
More informationSequential Coalition Formation for Uncertain Environments
Sequential Coalition Formation for Uncertain Environments Hosam Hanna Computer Sciences Department GREYC - University of Caen 14032 Caen - France hanna@info.unicaen.fr Abstract In several applications,
More informationCS221 / Autumn 2018 / Liang. Lecture 8: MDPs II
CS221 / Autumn 218 / Liang Lecture 8: MDPs II cs221.stanford.edu/q Question If you wanted to go from Orbisonia to Rockhill, how would you get there? ride bus 1 ride bus 17 ride the magic tram CS221 / Autumn
More information16 MAKING SIMPLE DECISIONS
253 16 MAKING SIMPLE DECISIONS Let us associate each state S with a numeric utility U(S), which expresses the desirability of the state A nondeterministic action a will have possible outcome states Result(a)
More informationYao s Minimax Principle
Complexity of algorithms The complexity of an algorithm is usually measured with respect to the size of the input, where size may for example refer to the length of a binary word describing the input,
More informationCS 6300 Artificial Intelligence Spring 2018
Expectimax Search CS 6300 Artificial Intelligence Spring 2018 Tucker Hermans thermans@cs.utah.edu Many slides courtesy of Pieter Abbeel and Dan Klein Expectimax Search Trees What if we don t know what
More informationDefinition 4.1. In a stochastic process T is called a stopping time if you can tell when it happens.
102 OPTIMAL STOPPING TIME 4. Optimal Stopping Time 4.1. Definitions. On the first day I explained the basic problem using one example in the book. On the second day I explained how the solution to the
More informationLong-Term Values in MDPs, Corecursively
Long-Term Values in MDPs, Corecursively Applied Category Theory, 15-16 March 2018, NIST Helle Hvid Hansen Delft University of Technology Helle Hvid Hansen (TU Delft) MDPs, Corecursively NIST, 15/Mar/2018
More informationMonte-Carlo Planning: Basic Principles and Recent Progress
Monte-Carlo Planning: Basic Principles and Recent Progress Alan Fern School of EECS Oregon State University Outline Preliminaries: Markov Decision Processes What is Monte-Carlo Planning? Uniform Monte-Carlo
More informationCompositional Planning Using Optimal Option Models
David Silver d.silver@cs.ucl.ac.uk Kamil Ciosek k.ciosek@cs.ucl.ac.uk Department of Computer Science, CSML, University College London, Gower Street, London WC1E 6BT. Abstract In this paper we introduce
More informationAnnouncements. CS 188: Artificial Intelligence Spring Outline. Reinforcement Learning. Grid Futures. Grid World. Lecture 9: MDPs 2/16/2011
CS 188: Artificial Intelligence Spring 2011 Lecture 9: MDP 2/16/2011 Announcement Midterm: Tueday March 15, 5-8pm P2: Due Friday 4:59pm W3: Minimax, expectimax and MDP---out tonight, due Monday February
More informationPOMDPs: Partially Observable Markov Decision Processes Advanced AI
POMDPs: Partially Observable Markov Decision Processes Advanced AI Wolfram Burgard Types of Planning Problems Classical Planning State observable Action Model Deterministic, accurate MDPs observable stochastic
More informationINVERSE REWARD DESIGN
INVERSE REWARD DESIGN Dylan Hadfield-Menell, Smith Milli, Pieter Abbeel, Stuart Russell, Anca Dragan University of California, Berkeley Slides by Anthony Chen Inverse Reinforcement Learning (Review) Inverse
More information