[SciPy-Dev] [SciPy-User] log pdf, cdf, etc

Travis Oliphant oliphant@enthought....
Tue Jun 1 00:20:41 CDT 2010

On May 31, 2010, at 6:39 AM, Ralf Gommers wrote:

> On Sun, May 30, 2010 at 5:38 AM, <josef.pktd@gmail.com> wrote:
> On Sat, May 29, 2010 at 4:51 PM, Travis Oliphant <oliphant@enthought.com> wrote:
> >
> > Hey Josef,
> >
> > I've been playing with distributions.py today and added logpdf, logcdf, logsf methods (based on _logpdf, _logcdf, _logsf methods in each distribution).
> I would like to get the private _logpdf in a useful (vectorized or
> broadcastable) version because for estimation and optimization, I want
> to avoid the logpdf overhead. So, my testing will be on the underline
> versions.
> >
> > I also added your _fitstart suggestion.   I would like to do something like your nnlf_fit method that allows you to fix some parameters and only solve for others, but I haven't thought through all the issues yet.
> I have written a semi-frozen fit function and posted to the mailing
> list a long time ago, but since I'm not sure about the API and I'm
> expanding to several new estimators, I kept this under
> work-in-progress.
> Similar _fitstart might need extra options, for estimation when some
> parameters are fixed, e.g. there are good moment estimators that work
> when some of the parameters (e.g. loc or scale) are fixed. Also
> _fitstart is currently used only by my fit_frozen.
> I was hoping to get this done this year, maybe together with the
> enhancements that Per Brodtkorb proposed two years ago, e.g. Method of
> Maximum Spacings.
> I also have a Generalized Method of Moments estimator based on
> matching quantiles and moments in the works.
> So, I don't want yet to be pinned down with any API for the estimation
> enhancements.
>  These recent changes are a bit problematic for several reasons:
> - there are many new methods for distributions without tests. 

These methods are simple to see and verify.    Which methods specifically are you concerned about? 

> - there are no docs for many new private and public methods

They are all fairly self explanatory.   But, docs can be added if needed.

> - invalid syntax: http://projects.scipy.org/scipy/ticket/1186

This has been fixed (it was easier to fix the syntax then file the ticket...)  Also to be clear this is only invalid for Python < 2.6 (the comment makes it sound like somehow the changes weren't tested at all). 

> - the old rv_continuous doc template was put back in

I'm not sure what you mean.   Which change did this? 

> This, plus Josef saying that he doesn't want to fix the API for some methods yet, makes me want to take it out of the 0.8.x branch. Any objections to that Travis or Josef? 

I would really like to see these changes go in to 0.8.x.    If Josef feels strongly about the API in the future, we can change it for the next release.   I don't understand what the specific concerns are.  


> Cheers,
> Ralf
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user

Travis Oliphant
Enthought, Inc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20100601/85fa03c4/attachment.html 

More information about the SciPy-Dev mailing list