随机分布 + action 计数
2018-07-03 17:48 xplorerthik 阅读(131) 评论(0) 编辑 收藏 举报For random samples from , use: 注意平方:
sigma * np.random.randn(...) + mu
2.5*2.5 = 6.25
Two-by-four array of samples from N(3, 6.25)。 ---:
2.5 * np.random.randn(2, 4) + 3
array([[-4.49401501, 4.00950034, -1.81814867, 7.29718677], #random
[ 0.39924804, 4.68456316, 4.99394529, 4.84057254]]) #random
actionCount = []
for i in range(0, 10):
actionCount.append(0)
actionCount[action] +=1