Reinforcement learning

(S,A,P,R,ฮณ)(\mathcal{S}, \mathcal{A}, P, R, \gamma) State and action spaces

๐’ฎ is the set of all states and ๐’œ the set of all actions in a Markov decision process.

In ML papers

S\mathcal{S} is the state space, the set of every state the environment can be in, and A\mathcal{A} the action space, every action available. A Markov decision process is the tuple (S,A,P,R,ฮณ)(\mathcal{S}, \mathcal{A}, P, R, \gamma): states, actions, the transition probabilities P(sโ€ฒโˆฃs,a)P(s' \mid s, a), the reward function and the discount factor.

They can be finite, like the four moves in a grid world (โˆฃAโˆฃ=4\lvert \mathcal{A} \rvert = 4), or continuous, like joint torques A=Rd\mathcal{A} = \mathbb{R}^d (Real numbers (โ„) and shapes). For a language model, A\mathcal{A} is the vocabulary.

Other meanings, by context

How to type it

LaTeXShows
\mathcal{S}S\mathcal{S}
\mathcal{A}A\mathcal{A}
s \in \mathcal{S},\ a \in \mathcal{A}sโˆˆS,ย aโˆˆAs \in \mathcal{S},\ a \in \mathcal{A}

A worked example

A={up,down,left,right},โˆฃAโˆฃ=4\mathcal{A} = \{\text{up}, \text{down}, \text{left}, \text{right}\}, \quad \lvert \mathcal{A} \rvert = 4

A grid world with 25 cells has โˆฃSโˆฃ=25\lvert \mathcal{S} \rvert = 25 and four actions.

Related

st,at,rt,st+1s_t, a_t, r_t, s_{t+1}State s and action aX,D,L\mathcal{X}, \mathcal{D}, \mathcal{L}Calligraphic lettersxโˆˆRd\mathbf{x} \in \mathbb{R}^dElement ofWโˆˆRdร—kW \in \mathbb{R}^{d \times k}Real numbers (โ„) and shapes

Decode this example โ†’