Change demo file compatible to python2 (#40)

* Change demo file to python2 compatible

* Add object to classes for compatibility with python2
This commit is contained in:
Whi Kwon
2019-04-07 13:06:39 +09:00
committed by GitHub
parent a130293f8b
commit 16ae4375c9
6 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import random
import numpy as np
class GaussianNoise:
class GaussianNoise(object):
"""Gaussian Noise.
Taken from https://github.com/vitchyr/rlkit
@@ -28,7 +28,7 @@ class GaussianNoise:
return np.random.normal(0, sigma, size=self.action_dim)
class OUNoise:
class OUNoise(object):
"""Ornstein-Uhlenbeck process.
Taken from Udacity deep-reinforcement-learning github repository: