def get_update(self, p, y):
z = p * y<EOL>if z > <NUM_LIT>:<EOL><INDENT>return np.exp(-z) * y<EOL><DEDENT>if z < -<NUM_LIT>:<EOL><INDENT>return y<EOL><DEDENT>return y / (np.exp(z) + <NUM_LIT:1.0>)<EOL>
:param p:
:param y:
:return: