Skip to content

optim and "the function should not" advice

2 messages · Gildas Mazo, Brian Ripley

#
On 20/09/2012 09:24, Gildas Mazo wrote:
On face value that means it is unable to find a small step that goes 
downhill consistent with the gradient, and usually indicates an error in 
the gradient function or using numerical derivatives on a 
non-differentiable function.
None of the code you show us changes 'theta'.  It would be a very 
unusual thing to do, but has happened in error when people have used 
compiled code.