-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG + 1] FIX for LassoLarsCV on with readonly folds #4684
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
Conversation
do all four arrays need to be writable? |
The answer is yes. LGTM. |
@@ -428,6 +434,24 @@ def test_no_warning_for_zero_mse(): | |||
assert_true(np.any(np.isinf(lars.criterion_))) | |||
|
|||
|
|||
def test_lars_path_readonly_data(): |
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.
you could probably do a more light-weight test by using stringIO and np.memmap? I don't like IO in tests.... but seems good enough.
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.
mmap is a system call, you cannot do it on a Python StringIO instance.
It might be interesting to add a flag to joblib to force it to memmap in parallel for debugging and testing purposes. Maybe even to memmap with n_jobs=1? |
Automatic memmaping is done internally by the |
@agramfort I would appreciate a second review on this. I met today a real user that was impacted by this issue. |
LGTM does it fix the pb of this user? |
it should. |
[MRG + 1] FIX for LassoLarsCV on with readonly folds
FIX #4597