mirror of
https://github.com/wassname/DeepRL.git
synced 2026-09-09 11:13:47 +08:00
Minor fix for python 2.7
This commit is contained in:
@@ -385,7 +385,7 @@ if __name__ == '__main__':
|
||||
# ppo_cart_pole()
|
||||
|
||||
# dqn_pixel_atari('BreakoutNoFrameskip-v4')
|
||||
a2c_pixel_atari('BreakoutNoFrameskip-v4')
|
||||
# a2c_pixel_atari('BreakoutNoFrameskip-v4')
|
||||
# categorical_dqn_pixel_atari('BreakoutNoFrameskip-v4')
|
||||
# quantile_regression_dqn_pixel_atari('BreakoutNoFrameskip-v4')
|
||||
# n_step_dqn_pixel_atari('BreakoutNoFrameskip-v4')
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ class RunningStatsNormalizer(BaseNormalizer):
|
||||
|
||||
class RescaleNormalizer(BaseNormalizer):
|
||||
def __init__(self, coef=1.0):
|
||||
super(RescaleNormalizer, self).__init__()
|
||||
BaseNormalizer.__init__(self)
|
||||
self.coef = coef
|
||||
|
||||
def __call__(self, x):
|
||||
|
||||
Reference in New Issue
Block a user