numexpr Questions

1

Solved

I am trying to use the lux library in python to get visualization recommendations. It shows warnings like NumExpr defaulting to 8 threads.. import pandas as pd import numpy as np import opendataset...
Pyriform asked 24/2, 2022 at 7:34

1

Solved

I have written the following NumPy code by Python: def inbox_(points, polygon): """ Finding points in a region """ ll = np.amin(polygon, axis=0) # lower limit ur =...
Plywood asked 24/12, 2021 at 4:10

1

Solved

Since NumPy doesn't make use of multiple cores, I'm learning to speed up NumPy code with NumExpr since it has very good support for multithreading. Below is an example that I'm working with: # inp...

1

Solved

Test code: import numpy as np import pandas as pd COUNT = 1000000 df = pd.DataFrame({ 'y': np.random.normal(0, 1, COUNT), 'z': np.random.gamma(50, 1, COUNT), }) %timeit df.y[(10 < df.z) &a...
Mobile asked 1/10, 2018 at 9:59

5

Solved

The following questions Evaluating a mathematical expression in a string Equation parsing in Python Safe way to parse user-supplied mathematical formula in Python Evaluate math equations from ...
Chasteen asked 5/12, 2015 at 14:15

1

Solved

I've been attempting to optimize a piece of python code that involves large multi-dimensional array calculations. I am getting counterintuitive results with numba. I am running on an MBP, mid 2015,...
Darice asked 11/2, 2016 at 21:45

1

Solved

I would like to evaluate the performance of numexpr module in python (2.7). For that purpose, I created a random sparse matrix of size (10^5, 10^5). However, the script below throws an error at the...
Frangipane asked 20/11, 2015 at 10:41

0

Hi i have problem doing fast matrix multiplication, addition,function_overwrite and summation with axis reduction and working in numpy.memmaps over CPU without RAM (I think). Only when using numexp...
Foreyard asked 13/9, 2015 at 15:2

2

Solved

The purpose of this mathematical function is to compute a distance between two (or more) protein structures using dihedral angles: It is very useful in structural biology, for example. And I alr...
Gabi asked 27/8, 2015 at 20:32

2

Solved

I often need to sort large numpy arrays (few billion elements), which became a bottleneck of my code. I am looking for a way to parallelize it. Are there any parallel implementations for the ndar...
Pneumo asked 18/12, 2014 at 16:32

0

Is numexpr safe again malicious attack? I'm considering using it in a web application, to evaluate user input text. I've also considered using PLY, ASTEVAL and Pyparsing.
Bigod asked 23/7, 2013 at 7:24

1

Solved

Is it safe in python numexpr to assign values to the same array you are operating on to avoid creating a temporary array? From the description of memory usage on the project homepage it looks okay...
Caruso asked 14/3, 2013 at 21:6

1

Solved

I have been experimenting and trying to learn the Numexpr package. Examples on how to use it are sparse at best. Can someone please give me a quick example on how to use the "local_dict" and "globa...
Sextain asked 29/1, 2013 at 1:57

3

Solved

Let's use, for example, numpy.sin() The following code will return the value of the sine for each value of the array a: import numpy a = numpy.arange( 1000000 ) result = numpy.sin( a ) But my m...
Miceli asked 11/7, 2012 at 22:3
1

© 2022 - 2024 — McMap. All rights reserved.