Giter Site home page Giter Site logo

Comments (12)

silastittes avatar silastittes commented on June 22, 2024 1

method='BFGS' (instead of L-BFGS-B) runs with scipy==1.8.1 fwiw.

from product-space-fem.

petrelharp avatar petrelharp commented on June 22, 2024

But, we can ignore this for now because we have a requirements file that pins scipy earlier than this.

from product-space-fem.

silastittes avatar silastittes commented on June 22, 2024

I've narrowed the segfault down to this line

results = opt.minimize(fun, m0.array(), args, method, jac, callback=callback, options=options)

There was an edit to scipy minimize for v1.8.1 here
scipy/scipy@1a0ac2d

from product-space-fem.

silastittes avatar silastittes commented on June 22, 2024

This might be relevant but didn't read closely
scipy/scipy#14915

from product-space-fem.

silastittes avatar silastittes commented on June 22, 2024

Or this one scipy/scipy#5102

from product-space-fem.

petrelharp avatar petrelharp commented on June 22, 2024

Or this one scipy/scipy#5102

That one looks promising. However, we're only using 125 parameters in that example, so I don't think it can be it? Oh, that's also with scipy 0.12.1.

from product-space-fem.

petrelharp avatar petrelharp commented on June 22, 2024

ps. I got the number of parameters by sticking in

        print(f"Optimizing using {method} on {len(m0.array())} parameters with arguments {args} and options {options}.")

just before the call to opt.minimize.

from product-space-fem.

petrelharp avatar petrelharp commented on June 22, 2024

We're not doing constrained optimization, so no need to use L-BFGS-B instead of BFGS!

from product-space-fem.

silastittes avatar silastittes commented on June 22, 2024

Awesome! I’ll play around with the versions for Python and scipy in the conda yml a bit more and make sure that switch clears up the segfault for other versions. Want me to make a small PR with the tiny updates after that?

from product-space-fem.

petrelharp avatar petrelharp commented on June 22, 2024

Sure! I notice that BFGS doesn't have the ftol and maxcor options, but probably it has an option that's similar to ftol at least; perhaps we should stick that in.

from product-space-fem.

silastittes avatar silastittes commented on June 22, 2024

Cool. Happy to modify that. Does fixing the method to be BFGS seem like the right move, or should it keep option to use other methods?

from product-space-fem.

petrelharp avatar petrelharp commented on June 22, 2024

I think we might want to try other ones out. Maybe we should throw an error if it's "L-BFGS-B", though?

from product-space-fem.

Related Issues (10)

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.