Giter Club home page Giter Club logo

Comments (6)

GaelVaroquaux avatar GaelVaroquaux commented on June 18, 2024

In MultiPCA, if the user provides a masker, we clone it. Unfortunately, in
joblib 0.6, a bug prevent cloning a Memory object.

I don't understand. The memory shouldn't be cloned, only the masker. What
is the error message? Sorry, I am supposedly listening to talks, so I
cannot reproduce myself.

G

from nilearn.

AlexandreAbraham avatar AlexandreAbraham commented on June 18, 2024

The Masker contains a Memory object. Therefore, when we clone the masker, the Memory is cloned too. Unfortunately, in joblib 0.6, cloning a Memory does not work if cachedir is None.

Philippe's patch fixes this bug but it breaks Travis build :-/

from nilearn.

GaelVaroquaux avatar GaelVaroquaux commented on June 18, 2024

The Masker contains a Memory object. Therefore, when we clone the masker, the
Memory is cloned too. Unfortunately, in joblib 0.6, cloning a Memory does not
work if cachedir is None.

OK, I remember now.

Philippe's patch fixes this bug but it breaks Travis build :-/

OK, you can do a try/except on the cloning of the masker rather than
testing for version.

G

from nilearn.

AlexandreAbraham avatar AlexandreAbraham commented on June 18, 2024

Yes, this is what I've done for the moment. I opened this issue to remember to look for a cleaner fix if it exists (ie use Philippe's patch while keeping Travis build functional).

from nilearn.

pgervais avatar pgervais commented on June 18, 2024

I don't think there is any need for a "clean" patch: this is a workaround, and such things are always a little messy. If the code inside the "try" branch is clean, that doesn't matter to me if what is in the "except" clause is ugly. Using a try/except by itself is not bad practice.

from nilearn.

AlexandreAbraham avatar AlexandreAbraham commented on June 18, 2024

Okay then. I close this issue !

Fixed in 9f5b3e8

from nilearn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.