[SciPy-Dev] [SciPy-User] log pdf, cdf, etc
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, <firstname.lastname@example.org> wrote:
> On Sat, May 29, 2010 at 4:51 PM, Travis Oliphant <email@example.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
> > 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
> 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
> 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.
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-Dev