[SciPy-User] speed of logpdf functions in scipy.stats

Robert Kern robert.kern at gmail.com
Sat Mar 28 07:35:43 EDT 2015


On Sat, Mar 28, 2015 at 12:13 AM, Brian Blais <bblais at gmail.com> wrote:
>
> On Fri, Mar 27, 2015 at 8:01 PM,  <josef.pktd at gmail.com> wrote:
> > On Fri, Mar 27, 2015 at 7:28 PM, Brian Blais <bblais at gmail.com> wrote:
> > You can compare
> > norm.logpdf(x,0,1)
> > and
> > norm._logpdf(x,0,1)
> >
> > to get an estimate on the overhead of the argument checking.
>
> I thought there would be something like that.  However, when I try
>
> y=D.norm._logpdf(x,0,1)
>
> I get an error: TypeError: _logpdf() takes exactly 2 arguments (4 given)
>
> scipy version 0.15.1, anaconda distribution.

He meant norm._logpdf(x).

--
Robert Kern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20150328/efddb203/attachment.html>


More information about the SciPy-User mailing list