2-1. FrozenLake.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:Project101 作者: Wonjuseo 项目源码 文件源码
def rargmax(vector):
    # random argmax
    m = np.max(vector)
    indices = np.nonzero(vector == m)[0]
    return pr.choice(indices)

# Reward Update Q
# Algorithm
# For each s,a initialize table entry Q(s,a)<-0
# Observe current stat s
# Do foever:
# select an action a and execute it
# receive immediate reward
# observe the new state
# update the table entry for Q(s,a)
# update the state
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号