Re: [Rd] stats package, optim and other optimization methods: more parameters?

From: Mike Preuss <mike.preuss_at_cs.uni-dortmund.de>
Date: Wed, 14 Nov 2007 23:19:57 +0100

Dear Brian,

thanks for the hint. But my question is more concerned with the technical procedure. Of course, I can change the C code locally. And then use a locally changed package. But then nobody else beside myself can use it, right? If changes were made in the official code (and it's not really changing the code, only adding some parameters to the interface), my experiments could be repeated by others.

And if the official code is then changed again, I'd have to update the local code every time. Or is that unlikely? Or am I missing some important point here?

Best, Mike

Prof Brian Ripley wrote:
> On Wed, 14 Nov 2007, Mike Preuss wrote:
>
>> Dear R developers,
>>
>> concerning the stats package,
>> is there a way to access more of the 'internal'
>> parameters of the optim() methods (e.g. BFGS),
>> without me rewriting optim code and using it as
>> an internal, patched stats package? It may not
>> sound useful to you, but for me it is important
>> to be able to change the parameters as I want
>> to apply parameter tuning methods. Currently,
>> I'm doing so only on the very limited parameter
>> set available via the control parameter, but
>> e.g. for the CG and BFGS methods, this is practically
>> empty. But there are internally set parameters
>> (e.g. for the line searches), just they are not
>> accessible from the outside.
>
> Why don't you read the C code to find out?
>
> You probably also need to read the reference to understand the choices
> made, and why the author didn't feel it useful to make them accessible.
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 14 Nov 2007 - 22:29:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 15 Nov 2007 - 00:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.