• Register

Recent questions tagged numpy

0 votes
1 answer 3 views
Problem: I am not a mathematician, I just want to write a code that can find a center of multidimensional vectors. I tried many things to solve the problem but nothing worked. I keep getting the same problem: <lambda>() takes 1 positional argument but 2 were given.
asked 9 hours ago Irenka Kiri 17.9k points
0 votes
1 answer 3 views
Problem: I have been trying to solve this problem, please help > Attributeerror: 'series' object has no attribute 'sort'
asked 1 day ago Junia Phoebe 15.3k points
0 votes
1 answer 13 views
Problem: Can anyone help me with this problem? > Attributeerror: 'tensor' object has no attribute 'numpy'
asked 1 day ago Junia Phoebe 15.3k points
0 votes
1 answer 3 views
Problem: Try to discover this >Integer scalar arrays can be converted to a scalar index
asked 1 day ago Sawyer Parviz 13.2k points
0 votes
1 answer 3 views
Problem: Help me with this problem > How to get marginal distribution from joint distribution?
asked 1 day ago Priscilla Gurpreet 3.7k points
0 votes
1 answer 2 views
Problem: Someone assist me please >How to find marginal distribution from joint distribution
asked 1 day ago Sawyer Parviz 13.2k points
0 votes
1 answer 3 views
Problem: How to find equilibrium points of a differential equation?
asked 2 days ago Junia Phoebe 15.3k points
0 votes
1 answer 2 views
Problem: Is there someone who knows how to resolve this issue? >Typeerror: object of type 'int64' is not json serializable.
asked 3 days ago Florina Gulnar 6.7k points
0 votes
1 answer 4 views
Problem: I'm trying to figure out a solution, need help >List indices must be integers or slices, not numpy.float64.
asked 3 days ago Florina Gulnar 6.7k points
0 votes
1 answer 5 views
Problem: I'm not sure how I got this >Linalgerror: last 2 dimensions of the array must be square.
asked 3 days ago Florina Gulnar 6.7k points
0 votes
1 answer 7 views
Problem: Does anyone grasp the problem? >Indexerror: index 2 is out of bounds for axis 0 with size 2
asked 4 days ago Chi Omega 13.6k points
0 votes
1 answer 8 views
Problem: Can anyone help me? > Boolean index did not match indexed array along dimension 0.
asked 4 days ago Irenka Kiri 17.9k points
0 votes
1 answer 3 views
Problem: Is there any easier way to solve this? > Fatal error: numpy/arrayobject.h: no such file or directory
asked 4 days ago Irenka Kiri 17.9k points
1 vote
1 answer 5 views
Problem: I&rsquo;m unable to plot graphs in Python even after installing Python 2.5.4, Numpy 1.5.0 win32, Matplotlib 1.0.0 win32, pywin32 218. I&rsquo;m getting this error: import pylab File "C:\Python25\lib\site-packages\pylab.py", line 1, ... in <module> from matplotlib._path import affine_transform ImportError: DLL load failed: The specified module could not be found. How to solve this error?
asked 6 days ago Raj Tyagi 15.6k points
0 votes
1 answer 7 views
Problem: I want to write a function that randomly picks elements from a training set, based on the bin probabilities provided. I divide the set indices to 11 bins, then create custom probabilities for them. bin_probs = [0.5, 0.3, 0.15, 0.04, 0.0025, 0.0025, 0.001, 0.001, ... It is 1-D, it is integer, and it is scalar. What am I missing? Note : I tried to pass indices with astype(int). Same error.
asked May 2 anika11 32.2k points
0 votes
1 answer 7 views
Problem: I want to calculate the eigenvalues and eigenvectors w, v = numpy.linalg.eig(a) How can I do this?
asked May 2 Humaira ahmed 50.7k points
0 votes
0 answers 5 views
Problem: I have numpy data x = [[1. 2.2 3.4] [3. 4. 5. ]] and y = [[2.6660993 3.6791213 3.7325573]] Just want to concatenate these, result should be this. [[1. 2.2 3.4] [3. 4. 5. ] [2.6660993 3.6791213 3.7325573] ] However, np.concatenate(x,y) shows the error. only integer scalar arrays can be converted to a scalar index
asked May 1 Yeamin 22k points
1 vote
1 answer 40 views
Problem: Any solution to this problem please? Runtimewarning: invalid value encountered in true_divide.
asked Apr 27 PkGuy 23.5k points
0 votes
1 answer 14 views
Problem: Please let me know any solution regarding this .. Attributeerror: 'list' object has no attribute 'shape'
asked Apr 26 Ifra 37.2k points
1 vote
1 answer 9 views
Problem: I need solution of this error; Valueerror: numpy.dtype has the wrong size, try recompiling.
asked Apr 26 PkGuy 23.5k points