Zachary Kneupper <zachary.kneup...@gmail.com> added the comment:

> The ML world has collapsed on the terms X and y. (With that 
> capitalization).

The ML community will probably use 3rd party packages for their linear 
regressions in any case.

In my estimation, the ML community would be comfortable with any of these pairs 
of terms:

Fine:
+ regressor, dependent_variable
+ independent_variable, dependent_variable
+ x, y

Bad:
+ X, y <- this wouldn't makes sense here since the first argument is always a 
vector and is never a matrix.


Often, capital letters indicate matrices, and lower case letters indicate 
vectors (or scalars). The reason that X is often capitalized is because it 
indicates that X is an m-by-n matrix of several independent variables; whereas 
y is lowercase because it is a single vector for the dependent variable. Since 
this linear_regression(regressor, dependent_variable) function takes a vector 
for the independent variable (as opposed to allowing a matrix of multiple 
regressors), it's probably not appropriate to use `X` (capitalized).

----------

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

Reply via email to