Re: [Rd] checkpointing

2006-01-06 Thread Ross Boylan
Here's some code I put together for checkpointing a function being optimized. Hooking directly into optim would require modifying its C code, so this seemed the easiest route. I've wanted more information on the iterations than is currently provided, so this stuff some info back in the calling env

Re: [Rd] checkpointing

2006-01-03 Thread Ross Boylan
On Tue, Jan 03, 2006 at 01:26:39PM +, Prof Brian Ripley wrote: > On Tue, 3 Jan 2006, Kasper Daniel Hansen wrote: > > >On Jan 3, 2006, at 9:36 AM, Brian D Ripley wrote: > > > >>I use save.image() or save(), which seem exactly what you are asking for. > > > >I have the (perhaps unsupported) impr

Re: [Rd] checkpointing

2006-01-03 Thread Kasper Daniel Hansen
On Jan 3, 2006, at 2:26 PM, Prof Brian Ripley wrote: > On Tue, 3 Jan 2006, Kasper Daniel Hansen wrote: > >> On Jan 3, 2006, at 9:36 AM, Brian D Ripley wrote: >> >>> I use save.image() or save(), which seem exactly what you are >>> asking for. >> >> I have the (perhaps unsupported) impression th

Re: [Rd] checkpointing

2006-01-03 Thread Barry Rowlingson
Roger D. Peng wrote: > One possibility is to write in some checkpointing into your objective > function, > such as saving the current parameter values via 'save()' or 'dput()'. Has anyone successfully checkpointed and restarted R using any of the linux process checkpointing solutions I find w

Re: [Rd] checkpointing

2006-01-03 Thread Roger D. Peng
One possibility is to write in some checkpointing into your objective function, such as saving the current parameter values via 'save()' or 'dput()'. -roger Ross Boylan wrote: > I would like to checkpoint some of my calculations in R, specifically > those using optim. As far as I can tell, R do

Re: [Rd] checkpointing

2006-01-03 Thread Prof Brian Ripley
On Tue, 3 Jan 2006, Kasper Daniel Hansen wrote: > On Jan 3, 2006, at 9:36 AM, Brian D Ripley wrote: > >> I use save.image() or save(), which seem exactly what you are asking for. > > I have the (perhaps unsupported) impression that Ross wanted to save the > progress during the optim run. Since it

Re: [Rd] checkpointing

2006-01-03 Thread Gabor Grothendieck
One possibility for overcoming this problem might be to divide the variables being optimized over into two sets using a grid over one set (which should probably consist of only one or two variables) and then fixing the gridded variables use optim over the rest. In many problems its really just one

Re: [Rd] checkpointing

2006-01-03 Thread Kasper Daniel Hansen
On Jan 3, 2006, at 9:36 AM, Brian D Ripley wrote: > I use save.image() or save(), which seem exactly what you are > asking for. I have the (perhaps unsupported) impression that Ross wanted to save the progress during the optim run. Since it spends most of its time in the .Internal(optim(***

Re: [Rd] checkpointing

2006-01-03 Thread Brian D Ripley
I use save.image() or save(), which seem exactly what you are asking for. On Mon, 2 Jan 2006, Ross Boylan wrote: > I would like to checkpoint some of my calculations in R, specifically > those using optim. As far as I can tell, R doesn't have this facility, > and there seems to have been little