Repository navigation
MAINT: wrap lm_robust instead of re-implementing - #5772
jbrockmendel wants to merge 1 commit into
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5772 +/- ##
==========================================
+ Coverage 82.28% 82.29% +<.01%
==========================================
Files 593 593
Lines 93622 93615 -7
Branches 10339 10337 -2
==========================================
- Hits 77041 77038 -3
+ Misses 14184 14183 -1
+ Partials 2397 2394 -3
Continue to review full report at Codecov.
|
|
Don't touch this. |
|
meaning, I don't want to think now about why I made a copy of the function. |
|
Buddy, leave it open and look at it in a year like everything else. |
Oh, I can answer that because the discussion came up before: it was because you wanted to avoid a circular import. But that's no longer an issue, AFAICT. |
|
What changed that circular import is not an issue anymore? if it was (I thought the circular import argument was for another function.) I closed it so that Kevin is not tempted to merge it. |
I'm not convinced it was ever an issue, but #4905 (comment) you said that was why you copy/pasted instead of importing. I guess somehow you were concerned about it becoming a circular import at some point in the future (?). But (and I'm not sure why I didn't point this out in that thread at the time) _diagnostic_other was imported right at the top of the file right from the start in #2096 until unused imports were removed. Can you take a look at the two places where (Me being wrong here is the desired outcome) |
|
Besides the possible bug discussed in this thread, the thread itself makes the risk of Kevin merging it effectively zero, while the risk of it falling through the cracks is significant. Please re-open. |
|
There is the open issue #4905 for it, cross-linking to here, so I don't see a reason to keep the PR open. |
|
That's actually pretty reasonable. Let's see what other non-mergeable PRs can be closed by the same logic. Many of them are long-abandoned. |
|
the difference is that old PRs that add new features contain useful information for implementing or reimplementing those features. This PR just (re)moves code when it is not clear where the final location of the function will be and which version of the function and returns we want to keep in the end. also both modules are _private because the final design and location is unclear, independently where the official path will be |
This PR prevents further drift in copy/pasted code, which has already caused one possible-bug. One possibly-bug that you've avoided discussing because you are reflexively hostile. Consider putting a pin in this for a couple months. |
|
Drift in code is part of the development process and can be intentional. This type of functions need to change when we add new use cases for it. We don't have a complete blueprint for how these functions should look at the end, and we need to figure it out along the way as the use cases change and the number increases. |
|
I’m not getting into the “development process” discussion again. It only leads to a gif of Inigo Montoya asking what you thin YAGNI means. |
The why do you keep submitting these PRs? If you don't want to waste your and my time arguing about the development process and repeating it each time again, then stick to it. Many of those are useful, but proposing or making soooooooo many cleanup changes is not. Except for #5741, I haven't seen any interesting statistics or econometrics question/issue in a week. |
Updates docstring to accurately describe return values.
BTW the function that calls
_lm_scoreappears to be inconsistent in what it returns, and in what it expects_lm_scoreto return.