更新PPO,增加PER DQN

This commit is contained in:
johnjim0816
2022-11-14 21:35:28 +08:00
parent dc78698262
commit b8aec4c188
34 changed files with 1993 additions and 476 deletions

View File

@@ -5,7 +5,7 @@ Author: John
Email: johnjim0816@gmail.com
Date: 2021-03-12 16:02:24
LastEditor: John
LastEditTime: 2022-10-26 07:38:17
LastEditTime: 2022-11-14 10:27:43
Discription:
Environment:
'''
@@ -179,6 +179,8 @@ def all_seed(env,seed = 1):
import torch
import numpy as np
import random
if seed == 0:
return
# print(f"seed = {seed}")
env.seed(seed) # env config
np.random.seed(seed)