-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
LREG: deprecate trans
argument
#100
Conversation
docs/source/lreg.rst
Outdated
@@ -31,7 +31,7 @@ The package provides ``llsq`` to solve these problems: | |||
|
|||
This function accepts two keyword arguments: | |||
|
|||
- ``trans``: whether to use the transposed form. (default is ``false``) | |||
- ``dims``: whether input observations stored as rows (1) or columns (2). (default is ``2``) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ``dims``: whether input observations stored as rows (1) or columns (2). (default is ``2``) | |
- ``dims``: whether input observations are stored as rows (``1``) or columns (``2``). (default is ``2``) |
docs/source/lreg.rst
Outdated
@@ -132,7 +132,7 @@ The package provides ``ridge`` to solve these problems: | |||
|
|||
This function accepts two keyword arguments: | |||
|
|||
- ``trans``: whether to use the transposed form. (default is ``false``) | |||
- ``dims``: whether input observations stored as rows (1) or columns (2). (default is ``2``) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ``dims``: whether input observations stored as rows (1) or columns (2). (default is ``2``) | |
- ``dims``: whether input observations are stored as rows (``1``) or columns (``2``). (default is ``2``) |
docs/source/lreg.rst
Outdated
|
||
For a matrix ``Y`` comprised of multiple columns: | ||
For a matrix column-stored regressors ``X`` and dependent variables comprised of multiple columns ``Y``: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text still says "a matrix" but you mention two matrices, right?
trans::Bool=false, bias::Bool=true, | ||
dims::Union{Integer,Nothing}=nothing) where {T<:Real} | ||
if dims === nothing | ||
Base.depwarn("`trans` argument is deprecated, use llsq(X, Y, dims=d) instead.", :trans) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT this warning will be printed even if the caller didn't set trans
, in which case it will be confusing. I guess it should say that dims
is required, and only mention trans
if it's true
, right?
Also, the default for dims
should be 1
until we remove the deprecation, or that will break code.
I switched back default |
Deprecate
trans
in favor ofdims
argument