Comments (5)
From [email protected] on January 14, 2011 06:06:32
Yes, I can reproduce that (it takes a while, but I see the segfault).
Now that there is preliminary support for the proposed new iterator in NumPy, I was wandering if this would crash too, but we have some problem here:
nesum = ne.evaluate("sum(a, axis=0)")
ValueError: The 'op_axes' provided to the iterator constructor for operand 1 contained duplicate value 0
ne.print_versions()
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Numexpr version: 2.0.dev
NumPy version: 2.0.0.dev-c44820a
Python version: 2.6.1 ( r261 :67515, Feb 3 2009, 17:34:37)
[GCC 4.3.2 [gcc-4_3-branch revision 141291 ]]
Platform: linux2-x86_64
AMD/Intel CPU? True
VML available? False
Detected cores: 2
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mark, what do you think?
from numexpr.
From [email protected] on January 24, 2011 11:16:42
The numpy mailing list has some discussion of a problem that sounds related:
numexpr.evaluate gives randomized results on arrays larger than 2047 elements. The following program demonstrates this:
from numpy import *
from numexpr import evaluate
x = zeros(2048)+.01
print evaluate("sum(x, axis = 0)")
print evaluate("sum(x, axis = 0)")
For me this prints different results each time, for example:
11.67
14.84
If we set the size to 2047 I get consistent results.
20.47
20.47
Interestingly, if I do not add .01 to x, it consistently sums to 0.
using numpy 1.5.1 and numexpr 1.4.1
from numexpr.
From [email protected] on January 24, 2011 11:29:31
I should also mention that this was duplicated with prod and at least one other person experienced this with a different array size 8192 (213) instead of 2048 (211).
from numexpr.
From [email protected] on January 25, 2011 02:16:32
Okay. This is a problem with the threading code. Now, forced the use of a single thread on reduction operations. Fixed in r269 .
Status: Verified
from numexpr.
From [email protected] on March 04, 2012 11:27:21
What would be the best way to get the threading code back for sum and prod, while fixing this bug?
from numexpr.
Related Issues (20)
- Warn that evaluate() should not be used on user input HOT 60
- 2.8.5 breaks pandas HOT 1
- The occasional crash occurs when calling MKL functions inside the numexpr module. HOT 1
- ValueError exception for scientific notation with digits after . HOT 2
- It is not possible to disable sanitization via `NUMEXP_SANITIZE` when using `numexpr.NumExpr` HOT 2
- pow with integer arrays that overflow differs from numpy in 2.8.7 HOT 5
- Please upload a pure python wheel to PyPi HOT 2
- ``global_dict`` input ignored in version 2.8.7 HOT 5
- support new numpy complex types HOT 5
- Forbidden Control Character Error for imaginary element HOT 1
- `NPY_MAXARGS` not a compile time constant HOT 3
- Test failures on PyPy3.10: mostly `ValueError: ex_uses_vml parameter is required` HOT 28
- numexpr.test() not working on Mac M1, python 3.9, numpy 2.0.0.dev HOT 2
- [BUG]: Sanitizing regex does not exclude string literals HOT 3
- 2.9.0 tar.gz is missing on pypi HOT 2
- Numexpr engine in pandas fails when using eval on a dataframe HOT 1
- Stale Issues HOT 6
- Copy transpose operation HOT 1
- Tests fail on 12-thread Ryzen 5 HOT 5
- Complex (imaginary) evaluations HOT 7
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 numexpr.