Markov Decision Process(MDP) Reinforcement Learning

    Pickyour favorite single player computer game, for example, Wechat ‘Jump a jump’.How would you model the problem oflearning to play this game (without needing to know the physics of the game) asa reinforcement learning problem? Define statespace, action space, transition model, reward function and goalof the underlying MDP.

Markov Decision Process(MDP)


Reinforcement learning


Markov decision process

    马尔可夫决策过程依赖于马尔可夫假设,即下一个状态si + 1的概率仅取决于当前状态si和动作ai,但不依赖于前面的状态或动作。

A good strategy for an agent would be to always choose an action that maximizesthe (discounted) future reward.Q(s,a)

基于Simple_Q_table_Q-learning的改进二维空间

环境+强化+提升循环效率






    

效果展示

 



Deep Q-Network(DQN)

Deep Q-Network Algorithm:

Initialize replay memory D to size N

Initialize action-value function Q with random weights θ

for episode = 1, M do

    Initialize state s_1

    for t = 1, T do

        With probability ϵ select random action a_t

        otherwise select a_t=max_a  Q(s_t,a; θ_i)

        Execute action a_t in emulator and observe r_t and s_(t+1)

        Store transition (s_t,a_t,r_t,s_(t+1)) in D

        Sample a minibatch of transitions (s_j,a_j,r_j,s_(j+1)) from D

        Set y_j:=

            r_j for terminal s_(j+1)

            r_j+γ*max_(a^' )  Q(s_(j+1),a'; θ_i) for non-terminal s_(j+1)

        Perform a gradient step on (y_j-Q(s_j,a_j; θ_i))^2 with respect to θ

    end for

end for

Network Architecture(网络体系/架构)



效果展示:







  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值