mirror of
https://github.com/wassname/kair_algorithms_draft.git
synced 2026-09-11 12:20:26 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user