numpy tag

NumPy (pronounced /ˈnʌmpaɪ/ (NUM-py) or sometimes /ˈnʌmpi/ (NUM-pee)) is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays. The ancestor of NumPy, Numeric, was originally created by Jim Hugunin with contributions from several other developers. In 2005, Travis Oliphant created NumPy by incorporating features of the competing Numarray into Numeric, with extensive modifications. NumPy is open-source software and has many contributors. NumPy is a NumFOCUS fiscally sponsored project.

Reference: WIKIPEDIA

137 questions


1 answers
48 views
0
Python standard deviation,

import numpy aspx=np.random.normal(250,50,20)When the salary of 20 office workers was generated by the average and standard deviation, they wrote it like that.

2 years ago

1 answers
43 views
0
Python SyntaxError: 'return' outside function

i2 = np.random.randint(3)j2 = np.random.randint(3)a1 = np.eye(3)[i2][j2]a2 = np.eye(3)[j2][i2]if (a1 == a2) : return Trueelse : return FalseIf i2 and j2 change positions through unspecified parts i2 a...

2 years ago

1 answers
46 views
0
Is there a way to load the npy in the folder at once?

It's hard to get it because I have to do location + file name if I do np.load.

2 years ago

1 answers
52 views
0
Resize when arranging images in number-fi

Is interpolation applied automatically when resizing Or should I change the image to interpolation and number-fi?

2 years ago

1 answers
112 views
0
Labeling questions during data preprocessing

There are several types of No.Fy Arrays and sequences of Arrays by appending to another listRead one number array to save the sequence.Read the next number array again and save the sequence again When...

2 years ago

1 answers
120 views
0
Convert function result value to over pi

import numpy as npu = np.random.randint(2,size=(1,100))print(u)print(np.size(u,1))def turbo_enc(u): K = np.size(u,1) print(K) enc = np.zeros_like(u) enc = u return encenc1 = turbo_enc(u)print(enc1)def...

2 years ago

2 answers
50 views
0
To sort the Numpy array by x array

Number Pi array is x=[x3,x6,x1,x4,x2,x5,x5] Here x1<x2<x3<x4<x5<x6y=[y3,y6,y1,y4,y2,y5,y5] Don't know that the value of y is large or small If you change x to ascending order using the ...

2 years ago
« - 14 -

© 2024 OneMinuteCode. All rights reserved.