Comments (4)
Funny... Could you tell me which test failed? Or an example that fails?
from bme.
Hi Ramon,
Thanks. I had troubles running test_03:
- uncomment lines 451-454
- set meth="trust-constr"
- comment line 456
- run nose2 test_03 from the "test/" directory
I get the following error:
File "/Users/sandrobottaro/Software/crap/BME/test/test_03.py", line 38, in test
chib,chia, srel = rew.optimize(theta=2)
File "/Users/sandrobottaro/Software/crap/BME/bme_reweight.py", line 455, in optimize
bounds=self.bounds)
File "/Users/sandrobottaro/anaconda/lib/python2.7/site-packages/scipy/optimize/_minimize.py", line 615, in minimize callback=callback, **options)
File "/Users/sandrobottaro/anaconda/lib/python2.7/site-packages/scipy/optimize/_trustregion_constr/minimize_trustregion_constr.py", line 506, in _minimize_trustregion_constr factorization_method)
File "/Users/sandrobottaro/anaconda/lib/python2.7/site-packages/scipy/optimize/_trustregion_constr/tr_interior_point.py", line 309, in tr_interior_point constr_eq0, jac_eq0)
File "/Users/sandrobottaro/anaconda/lib/python2.7/site-packages/scipy/optimize/_trustregion_constr/tr_interior_point.py", line 56, in init
self.jac0 = self._compute_jacobian(jac_eq0, jac_ineq0, s0)
File "/Users/sandrobottaro/anaconda/lib/python2.7/site-packages/scipy/optimize/_trustregion_constr/tr_interior_point.py", line 164, in _compute_jacobian
[J_ineq, S]]))
File "/Users/sandrobottaro/anaconda/lib/python2.7/site-packages/numpy/matrixlib/defmatrix.py", line 1237, in bmat
arr_rows.append(concatenate(row, axis=-1))
ValueError: all the input array dimensions except for the concatenation axis must match exactly
from bme.
I have run test_03.py
and I don't get an error. Maybe it is a scipy version issue?
I am using scipy version 1.2.1. on python 3.6.8. And you?
Having said that, trust-constr is much slower than L-BFGS-B for test_03. In my laptop, L-BFGS-B takes 6 seconds and trust-constr more than 60. So to avoid compatibility issues I recommend we fall back to L-BFGS-B.
from bme.
Ah-ha. Right. With python3.7 works
(and not with Python 2.7, which is not supported anyway).
Thanks!
Sandro
from bme.
Related Issues (4)
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 bme.