-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix predict docstring and remove trailing dim #467
Conversation
Thanks. The docstring fix is fine, but I'm afraid changing the return type would be breaking so we should wait until 2.0. |
I see your point, but I am not sure it is so clear cut. Is there a way that we could verify whether this change breaks any downstream package? Even though it is possible, it seems unlikely to me that changing from Otherwise, it seems overly laborious to change now the docstring to document the (IMO incorrect) return type, add a milestone to not forget about this, and then come back to it and update code and docstring. |
Let's merge this and #458 and then tag 1.7.0. |
Co-authored-by: Milan Bouchet-Valat <[email protected]>
Thanks for accepting the change! I've rebased and force-pushed to fix the conflicts (on the Project.toml file). |
Codecov Report
@@ Coverage Diff @@
## master #467 +/- ##
=======================================
Coverage 84.12% 84.12%
=======================================
Files 7 7
Lines 819 819
=======================================
Hits 689 689
Misses 130 130
Continue to review full report at Codecov.
|
This PR fixes the docstring of
predict(::LinearModel, x; interval, level)
, which claimed to return a matrix with 3 columns, whereas it is actually a named tuple with three fields (prediction
,lower
,upper
).It also fixes the types of the returned
lower
andupper
. Previously,prediction
was a vector (IMO, the correct shape), whereaslower
andupper
wereN x 1
matrices (IMO, the incorrect shape). Now, all three are vectors.