[Scipy-tickets] [SciPy] #1862: Allow canonical keyword arguments for distribution parameters

SciPy Trac scipy-tickets@scipy....
Sat Mar 9 11:06:13 CST 2013

#1862: Allow canonical keyword arguments for distribution parameters
 Reporter:  chrisfonnesbeck  |       Owner:  rgommers   
     Type:  enhancement      |      Status:  new        
 Priority:  low              |   Milestone:  Unscheduled
Component:  scipy.stats      |     Version:  0.11.0     
 Keywords:                   |  

Comment(by josefpktd):

 I don't think we want to overload loc and scale also, otherwise it gets
 very confusing, I guess.
 The normal distribution is parameterized with keywords loc and scale
 (which can also be used as positional arguments.

 One of the always confusing parameterization is, for example, the
 lognormal. And besides creating an alias outside of the current
 distribution framework we cannot do anything about it.

 for hypergeom, for example, I always have to look up what the parameters
 are and mean

 >>> stats.hypergeom.shapes
 'M, n, N'

 For many distribution it would be relatively clear and a useful "bonus".

 Note, we will also have to change the way the docstring template is
 generated, if we want to document the actual shape parameters.

Ticket URL: <http://projects.scipy.org/scipy/ticket/1862#comment:6>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list