(self, state)
return state
Normalize states and actions.
Normalize states and actions.
Normalize states and actions .
def normalize(self, state):
        """Normalize states and actions."""
        if self.normalization is None:
            return state
        Tx_inv = np.diag(self.inv_norm)
        state = tf.matmul(state, Tx_inv)
        return state
def normalize ( self , state ) : if self . normalization is None : return state Tx_inv = np . diag ( self . inv_norm ) state = tf . matmul ( state , Tx_inv ) return state