(self, state_action)
return self.normalize(state, None)[0]
Evaluate the dynamics.
Evaluate the dynamics.
Evaluate the dynamics .
def build_evaluation(self, state_action):
        """Evaluate the dynamics."""
        # Denormalize
        state, action = tf.split(state_action, [2, 1], axis=1)
        state, action = self.denormalize(state, action)

        n_inner = 10
        dt = self.dt / n_inner
        for i in range(n_inner):
            state_derivative = self.ode(state, action)
            state = state + dt * state_derivative

        return self.normalize(state, None)[0]
def build_evaluation ( self , state_action ) : # Denormalize state , action = tf . split ( state_action , [ 2 , 1 ] , axis = 1 ) state , action = self . denormalize ( state , action ) n_inner = 10 dt = self . dt / n_inner for i in range ( n_inner ) : state_derivative = self . ode ( state , action ) state = state + dt * state_derivative return self . normalize ( state , None ) [ 0 ]