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

        Tx, Tu = map(np.diag, self.normalization)

        state = tf.matmul(state, Tx)
        if action is not None:
            action = tf.matmul(action, Tu)

        return state, action
def denormalize ( self , state , action ) : if self . normalization is None : return state , action Tx , Tu = map ( np . diag , self . normalization ) state = tf . matmul ( state , Tx ) if action is not None : action = tf . matmul ( action , Tu ) return state , action