Guest User

Untitled

a guest
Nov 15th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. import numpy as np
  2.  
  3. # activation function and its derivative
  4. def tanh(x):
  5. return np.tanh(x);
  6.  
  7. def tanh_prime(x):
  8. return 1-np.tanh(x)**2;
Add Comment
Please, Sign In to add comment