at first I removed findMaxUpdateNorm. After a 5 iterations, it goes into inf. energy. Shouldn't the energy be decreasing? And then it crashes at the next data term estimation.

Or if I run the code with findMaxNorm enable, it will crash at 3rd iteration at findMaxNorm
**

**