use tanh instead of sigmoid; inputs [-1, 1]