From: David B. <Dav...@mo...> - 2004-09-03 14:09:33
|
If this causes a core-dump, the bulletproofing should be in bfgsmin itself rather than in the objective function. Nothing the user can do should cause a core-dump, otherwise it is a bug.. D. According to Michael Creel <mic...@ua...> (on 09/03/04): > On Friday 03 September 2004 14:24, Teemu Ikonen wrote: > > > > > bfgsmin consistently makes octave dump core on at least one fitting problem > > I have. Unfortunately I don't have the time to send a more detailed bug > > report just now. > > > > Teemu > > > > I'll be happy to look at it when you have time to send it in. Just guessing, > but if your objective function goes non-numeric, you might get problems. I do > something like the following to bullet-proof > > Michael > > > # this takes a general model and calculates average log likelihood > function [obj_value, score] = mle_obj(theta, model, modelargs) > [obj_value, score] = feval(model, theta, modelargs); > obj_value = - mean(obj_value); > > # let's bullet-proof this in case the model goes nuts > if (((abs(obj_value) == Inf)) || (isnan(obj_value))) > obj_value = realmax; > endif > > if isnumeric(score) score = - mean(score)'; endif > endfunction > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Octave-dev mailing list > Oct...@li... > https://lists.sourceforge.net/lists/listinfo/octave-dev -- David Bateman Dav...@mo... Motorola CRM +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary |