- Python Reinforcement Learning Projects
- Sean Saito Yang Wenzhuo Rajalingappaa Shanmugamani
- 328字
- 2021-07-23 19:05:01
Value function
The second component an agent can have is called the value function. As mentioned previously, it is useful to assess your position, good or bad, in a given state. In a game of chess, a player would like to know the likelihood that they are going to win in a board state. An agent navigating a maze would like to know how close it is to the destination. The value function serves this purpose; it predicts the expected future reward an agent would receive in a given state. In other words, it measures whether a given state is desirable for the agent. More formally, the value function takes a state and a policy as input and returns a scalar value representing the expected cumulative reward:
Take our maze example, and suppose the agent receives a reward of -1 for every step it takes. The agent's goal is to finish the maze in the smallest number of steps possible. The value of each state can be represented as follows:
Each square basically represents the number of steps it takes to get to the end of the maze. As you can see, the smallest number of steps required to reach the goal is 15.
How can the value function help an agent perform a task well, other than informing us of how desirable a given state is? As we will see in the following sections, value functions play an integral role in predicting how well a sequence of actions will do even before the agent performs them. This is similar to chess players imagining how well a sequence of future actions will do in improving his or her chances of winning. To do this, the agent also needs to have an understanding of how the environment works. This is where the third component of an agent, the model, becomes relevant.
- GNU-Linux Rapid Embedded Programming
- Hadoop 2.x Administration Cookbook
- Windows環境下32位匯編語言程序設計
- Arduino &樂高創意機器人制作教程
- Linux:Powerful Server Administration
- 網站入侵與腳本攻防修煉
- 軟件工程及實踐
- Visual C++項目開發案例精粹
- Visual Studio 2010 (C#) Windows數據庫項目開發
- 巧學活用Linux
- 電機與電力拖動
- 從實踐中學嵌入式Linux操作系統
- Python Data Mining Quick Start Guide
- iLike職場大學生就業指導:C和C++方向
- 數字孿生技術與工程實踐:模型+數據驅動的智能系統