-
Notifications
You must be signed in to change notification settings - Fork 6
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
ADA-SVR (1/4) Unused of parameter full_rank #58
base: main
Are you sure you want to change the base?
ADA-SVR (1/4) Unused of parameter full_rank #58
Conversation
Remove the error because it's not possible to access it due to the operation of np.dot(X, X.T) on line 39. The only line using this function.
I remove the VallueError because it's not possible to access it due to the operation of np.dot(X, X.T) on line 39. The only line using this function. |
variable unnecessary and without meaning in this context
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58 +/- ##
==========================================
- Coverage 77.09% 77.00% -0.09%
==========================================
Files 46 46
Lines 2471 2453 -18
==========================================
- Hits 1905 1889 -16
+ Misses 566 564 -2 ☔ View full report in Codecov by Sentry. |
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.
LGTM.
Is thsis part of the code base tested ?
There were not tests for this part of the code. I found the dead code by trying to test this code through the main function ada_svr. |
Add comment about the condition of X from the removal lines
I suggest to take this opportunity to add a test. best, |
Do you want to remove it or keep it and add some tests for it? |
My feeling is that we should add a test. |
The pull request removes lines that cannot be tested via the main function. |
I replace the function _make_inverse with the function of numpy: https://numpy.org/doc/stable/reference/generated/numpy.linalg.pinv.html |
Just to get a trace of it. |
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.
LGTM, thx.
In the file hidimstat/adaptive_permutation_threshold.py, the function _manual_inversion has a parameter full_rank. This parameter is not used in the main function ada_svr (line 39).
I propose to remove because it's actually a dead code. Can you check if there are not too many assertions and if I miss some assertions?