Skip to main content

Questions tagged [numpy]

NumPy is one of the many modules in Python that adds support of large multidimensional arrays and matrixes, along with a large library of high-level mathematical functions for operations with these arrays.

-3 votes
0 answers
14 views

Deep learning problem for boundary detections [closed]

import numpy as np #Reference: https://stackoverflow.com/questions/55890813/how-to-fix-object-arrays-cannot-be-loaded-when-allow-pickle-false-for-imdb-loa np_load_old = np.load # modify the default ...
Renuka Prasad's user avatar
0 votes
0 answers
24 views

numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject error

I am trying to import pmdarima but it gives the error ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject I uninstalled numpy ...
Eyram's user avatar
  • 1
0 votes
1 answer
45 views

Issue with Custom Rounding Function in Python Pandas

I have implemented a custom rounding function in Python using Pandas, but it's not producing the expected results in certain cases. It basically should always round down to the nearest step.Here's the ...
arrabattapp man's user avatar
-3 votes
0 answers
20 views

how can I compute the striking force of a football player using python [closed]

in a football match between England and Spain Julius Fueke needs a decisive goal, write a Python program that can compute the striking force of each of the players i tried using the import numpy but ...
yagi's user avatar
  • 1
0 votes
0 answers
18 views

How to "average out" multiple curves with sklearn Lasso regression?

The lecture slides here: https://www.cs.cmu.edu/~ggordon/10725-F12/slides/09-acceleration.pdf on page show multiple lines on a convergence plot apparently "averaged out" with Lasso ...
ufghd34's user avatar
  • 151
1 vote
1 answer
60 views

Generate n random 2D points within a valid region

I want to generate a fixed number of random-uniformly distributed xy points within a valid mask. The generated points should be continuous, i.e. can be "between pixels". I'm looking for an ...
Toni's user avatar
  • 33
1 vote
1 answer
24 views

How to extract graph edges in a specific order from networkx?

I am trying to find the shortest path that passes through a set of points that are pretty much aligned. This needs to work in all directions, so I can't just sort them by x or y values. The solution I ...
user19109076's user avatar
1 vote
1 answer
54 views

image to ascii art with edge detection using the sobel filter in python using pygame not rotated correctly

I have to layers of ascii art, one for the sobel filter, one for the general ascii art. I then overlap then and, because the sobel filter is initially only 0, using a simpe filter. The code works for ...
noschXL's user avatar
  • 25
-3 votes
0 answers
30 views

Neural Network cost not changing [closed]

I can't seem to figure out why my cost print function is giving me the same cost every time and my weights and biases are not changing. Help would be greatly appreciated and I have tried putting it ...
Damienwin's user avatar
-1 votes
0 answers
25 views

A problem with Importing Matplotlib (A module that was compiled using NumPy 1.x) [duplicate]

When I'm trying to import matplotlib by the following standard code: import matplotlib.pyplot as plt I'm getting the following error massage: A module that was compiled using NumPy 1.x cannot be run ...
Elad's user avatar
  • 19
3 votes
1 answer
45 views

Why the addion of float32 array and float64 scalar is float32 array in Numpy?

If one add float32 and float64 scalars, the result is float64: float32 is promoted to float64. However, I find that, adding a float32 array and a float64 scalar, the result is a float32 array, rather ...
Ma Ming's user avatar
  • 43
0 votes
0 answers
22 views

Numpy dependency errors while installing the RPM Package

I've created a RPM Package for a python application using setuptools and rpmbuild, the application need few modules like numpy,flask..etc,I've install all the modules in the package itself. but while ...
madduri charan's user avatar
0 votes
0 answers
38 views

A property of Python class returns an empty numpy array with pybind11

I adopted a project that was abandoned by it's original creator on GH: pybind11 bindings for whispercpp. I had to update Python version from 3.8 to 3.11.8 in CI and discovered that some of the test ...
WintermuteAI's user avatar
0 votes
1 answer
41 views

Sobel filter implementation in Pygame is not detecting vertical edges but only horizontal ones

I wanted to apply the Sobel filter to an image for edge detection with the vectors and tried it on some test images, but it only marked the vertical edges despite seeing the horizonal edges. The full ...
noschXL's user avatar
  • 25
0 votes
0 answers
42 views

How can I build my Flutter app to use Python for OpenCV and Numpy? [closed]

I'm developing a Flutter app for iOS that requires image processing using Python, specifically with OpenCV and NumPy. I'm facing several challenges and would appreciate guidance on the best approach: ...
user26409301's user avatar

15 30 50 per page