Comments (12)
method='BFGS'
(instead of L-BFGS-B
) runs with scipy==1.8.1
fwiw.
from product-space-fem.
But, we can ignore this for now because we have a requirements file that pins scipy earlier than this.
from product-space-fem.
I've narrowed the segfault down to this line
There was an edit to scipy minimize for v1.8.1 here
scipy/scipy@1a0ac2d
from product-space-fem.
This might be relevant but didn't read closely
scipy/scipy#14915
from product-space-fem.
Or this one scipy/scipy#5102
from product-space-fem.
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.
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.
We're not doing constrained optimization, so no need to use L-BFGS-B instead of BFGS!
from product-space-fem.
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.
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.
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.
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)
- plotting ProductFunction HOT 2
- gradient verification HOT 1
- Ellipse field plot HOT 1
- `InverseProblem.optimize( )` both modifies its input in place and returns it HOT 2
- get contours HOT 1
- outline easy-mode workflow
- name!
- ensure the `pf.SpatialData` class gets data in the right order
- conda environment works with flexible but not strict channel priority
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from product-space-fem.