<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def inverse(self, z):
 """ Inverse of the logit transform Parameters z : array-like The value of the logit transform at `p` Returns ------- p : array Probabilities Notes ----- g^(-1)(z) = exp(z)/(1+exp(z)) """

        z = np.asarray(z)
        t = np.exp(-z)
        return 1. / (1. + t)