(self, x, obs, t, noise)
return u
Return an action for a state.
        Args:
            x: State vector.
            obs: Observation vector.
            t: Time step.
            noise: Action noise. This will be scaled by the variance.
Return an action for a state.
        Args:
            x: State vector.
            obs: Observation vector.
            t: Time step.
            noise: Action noise. This will be scaled by the variance.
Return an action for a state . Args : x : State vector . obs : Observation vector . t : Time step . noise : Action noise . This will be scaled by the variance .
def act(self, x, obs, t, noise):
        """
        Return an action for a state.
        Args:
            x: State vector.
            obs: Observation vector.
            t: Time step.
            noise: Action noise. This will be scaled by the variance.
        """
        # Normalize obs.
        obs = obs.dot(self.scale) + self.bias

        self.net.blobs[self.net.blobs.keys()[0]].data[:] = obs
        action_mean = self.net.forward().values()[0][0]
        u = action_mean + self.chol_pol_covar.T.dot(noise)
        return u
def act ( self , x , obs , t , noise ) : # Normalize obs. obs = obs . dot ( self . scale ) + self . bias self . net . blobs [ self . net . blobs . keys ( ) [ 0 ] ] . data [ : ] = obs action_mean = self . net . forward ( ) . values ( ) [ 0 ] [ 0 ] u = action_mean + self . chol_pol_covar . T . dot ( noise ) return u