Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

I'll work up a PR for this.  

We can continue to tease-out the best method names. I've has success with 
"examples" and "from_samples" when developing this code in the classroom.  Both 
names had the virtue of being easily understood and never being misunderstood.

Intellectually, the name fit() makes sense because we are using data to create 
best fit model parameters.  So, technically this is probably the most accurate 
terminology.  However, it doesn't match how I think about the problem though -- 
that is more along the lines of "use sampling data to make a random variable 
with a normal distribution".  Another minor issue is that class methods are 
typically (but not always) recognizable by their from-prefix (e.g. 
dict.fromkeys, datetime.fromtimestamp, etc).

"NormalDist" seems more self explanatory to me that just "Normal".  Also, the 
noun form seems "more complete" than a dangling adjective (reading "normal" 
immediately raises the question "normal what?").  FWIW, MS Excel also calls 
their variant NORM.DIST (formerly spelled without the dot).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36018>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to