This commit is contained in:
JohnJim0816
2020-09-08 13:37:12 +08:00
parent 106cfcc714
commit ac98105833
12 changed files with 118 additions and 57 deletions

View File

@@ -5,7 +5,7 @@
@Email: johnjim0816@gmail.com
@Date: 2020-06-10 15:28:30
@LastEditor: John
@LastEditTime: 2020-06-12 22:49:18
LastEditTime: 2020-09-01 10:57:36
@Discription:
@Environment: python 3.7.7
'''
@@ -13,7 +13,8 @@ import gym
import numpy as np
class NormalizedActions(gym.ActionWrapper):
''' 将action范围重定在[0.1]之间
'''
def action(self, action):
low_bound = self.action_space.low