-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG+1] Make sparse_encode give copy on write arrays #5998
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
LGTM |
# Test that SparseCoder does not error by passing reading only | ||
# arrays to child processes | ||
|
||
init_dict = np.random.rand(500, 64) |
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 should not use the global random number generator in the test. Always create a local one using:
rng = np.random.RandomState(0)
and then draw samples from this random number generator.
@GaelVaroquaux I have implemented your suggestion. Can you give this a review again ? |
This failed due to an HTTP failure. @MechCoder , can you re run this ? |
58d5e48
to
5f95cbd
Compare
@GaelVaroquaux Could you give this another review ? |
I added come comments in the unit test to make it more clear |
I am -1 on this change. This is why I changed the default to |
@ogrisel How about now ? |
Sorry for the slow feedback @vighneshbirodkar. It looks good to me! |
I will do the conflict resolution and merge. |
Closing in favor of #11346. |
Addresses #5956