Skip to content
Prev 299808 / 398503 Next

nls problem: singular gradient

On 11/07/2012 11:04 AM, Jonas Stein wrote:
Take a look at the predicted values at your starting fit:  there's a 
discontinuity at 0.4, which sure makes it look as though overflow is 
occurring.  I'd recommend expanding tanh() in terms of exponentials and 
rewrite the prediction in a way that won't overflow.

Duncan Murdoch