8000 [MRG] FIX Access Memory's location as a positional arg by jnothman · Pull Request #11782 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG] FIX Access Memory's location as a positional arg #11782

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

Closed
wants to merge 1 commit into from

Conversation

jnothman
Copy link
Member
@jnothman jnothman commented Aug 9, 2018

I'm not sure why circle was failing claiming that location and cachedir were both set. As far as I can tell, we never set both.

However, we can set cachedir in old versions and location in 0.12 by passing them as the first positional argument, rather than a named arg (which is slightly harder to read, but I think that it's still okay). Their semantics are identical as long as backend is the default.

I have also avoided/changed some if-elses currently handling support of multiple joblib versions around this API change.

?Partial fix for #11771

@jnothman jnothman changed the title FIX Access Memory's location as a positional arg [MRG] FIX Access Memory's location as a positional arg Aug 9, 2018
@jnothman
Copy link
Member Author
jnothman commented Aug 9, 2018

It looks like the thing catching CircleCI might be a bug in pickling/unpickling Memory instances in joblib.... raising an issue there

@jnothman
Copy link
Member Author
jnothman commented Aug 9, 2018

Even if joblib/joblib#741 is fixed, I think this PR improves and the code, reducing deprecation warnings, and should be considered.

@jnothman jnothman closed this Aug 13, 2018
@rth
Copy link
Member
rth commented Aug 13, 2018

Should we wait for joblib/joblib#741 to be merged an another release of joblib made then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0