mirror of
https://github.com/wassname/DeepRL.git
synced 2026-09-13 12:10:52 +08:00
Package the project
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import numpy as np
|
||||
|
||||
class RandomProcess(object):
|
||||
def reset_states(self):
|
||||
pass
|
||||
|
||||
class GaussianProcess(RandomProcess):
|
||||
def __init__(self, size, std_schedule):
|
||||
self.size = size
|
||||
self.std_schedule = std_schedule
|
||||
|
||||
def sample(self):
|
||||
return np.random.randn(self.size) * self.std_schedule()
|
||||
Reference in New Issue
Block a user