-
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
Unused of parameter full_rank #58
base: main
Are you sure you want to change the base?
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.11% 77.15% +0.03%
==========================================
Files 46 46
Lines 2465 2460 -5
==========================================
- Hits 1901 1898 -3
+ Misses 564 562 -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. |
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?