Exercise 7.7

Answers

tanh (x) = exex ex+ex, we have d tanh (x) dx = 4 (ex+ex)2 = 1 tanh 2(x) , so we have

Ein(w) = 1 N n=1N (tanh (wTx n) yn) 2 = 1 N n=1N (tanh (wTx n) yn) 2 = 1 N n=1N2 (tanh (wTx n) yn) dtanh (wTxn) dx = 1 N n=1N2 (tanh (wTx n) yn) (1 tanh 2(wTx n))xn = 2 N n=1N (tanh (wTx n) yn) (1 tanh 2(wTx n))xn

If w , tanh (wTxn) 1, and Ein(w) 0, so the gradient won’t change when w , which is hard to improvoe the perceptron solution.

User profile picture
2021-12-08 09:53
Comments