Esempio n. 1
0
    def __init__(self, dim, sigma=0.0):
        Explorer.__init__(self, dim, dim)
        self.dim = dim

        # initialize parameters to sigma
        ParameterContainer.__init__(self, dim, stdParams=0)
        self.sigma = [sigma] * dim
Esempio n. 2
0
 def __init__(self, dim, sigma=0.):
     Explorer.__init__(self, dim, dim)
     self.dim = dim
     
     # initialize parameters to sigma
     ParameterContainer.__init__(self, dim, stdParams=0)
     self.sigma = [sigma] * dim
Esempio n. 3
0
 def __init__(self, statedim, actiondim, sigma= -2.):
     Explorer.__init__(self, actiondim, actiondim)
     self.statedim = statedim
     self.actiondim = actiondim
     
     # initialize parameters to sigma
     ParameterContainer.__init__(self, actiondim, stdParams=0)
     self.sigma = [sigma] * actiondim
     
     # exploration matrix (linear function)
     self.explmatrix = random.normal(0., expln(self.sigma), (statedim, actiondim))
     
     # store last state
     self.state = None
Esempio n. 4
0
    def __init__(self, statedim, actiondim, sigma= -2.):
        Explorer.__init__(self, actiondim, actiondim)
        self.statedim = statedim
        self.actiondim = actiondim

        # initialize parameters to sigma
        ParameterContainer.__init__(self, actiondim, stdParams=0)
        self.sigma = [sigma] * actiondim

        # exploration matrix (linear function)
        self.explmatrix = random.normal(0., expln(self.sigma), (statedim, actiondim))

        # store last state
        self.state = None
Esempio n. 5
0
 def __init__(self):
     Explorer.__init__(self, 1, 1)
Esempio n. 6
0
 def __init__(self):
     Explorer.__init__(self, 1, 1)
Esempio n. 7
0
 def __init__(self, shield_options, exploration):
     Explorer.__init__(self, 2, 1)
     self.exploration = exploration
     self.shield_options = max(1, shield_options)
Esempio n. 8
0
 def activate(self, state, action):
     """ Save the current state for state-dependent exploration. """
     self.state = state
     return Explorer.activate(self, state, action)
Esempio n. 9
0
 def __init__(self, shield_options, exploration):
     Explorer.__init__(self, 5, 5)
     self.exploration = exploration
     self.shield_options = max(1, shield_options)
     print "init"