(self, state, action)
return state, action
Normalize states and actions.
Normalize states and actions.
Normalize states and actions .
def normalize(self, state, action):
        """Normalize states and actions."""
        if self.normalization is None:
            return state, action

        Tx_inv, Tu_inv = map(np.diag, self.inv_norm)
        state = tf.matmul(state, Tx_inv)

        if action is not None:
            action = tf.matmul(action, Tu_inv)

        return state, action
def normalize ( self , state , action ) : if self . normalization is None : return state , action Tx_inv , Tu_inv = map ( np . diag , self . inv_norm ) state = tf . matmul ( state , Tx_inv ) if action is not None : action = tf . matmul ( action , Tu_inv ) return state , action