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


2 answers
46 views
0
I don't know how to improve the error code. SyntaxError: invalid character identifier

I get an error when I execute the code below, but I don't know where to improve it.Dis_sample=[]for_in range(10): PP=np.random.choice (P_sample_all.shape[0], 2, replace=False) PP_sample.append(PP)   D...

2 years ago

1 answers
46 views
0
COUPLING DATA IN COLUMN DIRECTION

Up until now, we have connected the two data in the column direction using the following code.Each row * column has data1 in the form of 2*32, data2 in the form of 5*32, and data3 in the form of 8*32....

2 years ago

1 answers
49 views
0
Cannot import name 'NUMPY_MKL' error when using sklearn

I get the same error when I import and use a package that is python.You can see numpy, scikitlearn, pandas, etc.The code itself does not display an error, but the following error appears on the consol...

2 years ago

1 answers
58 views
0
IndexError: too many indications for array due to operation on element of numpy array

When I wrote the following Opencv program on Python,#-*-coding:utf-8-*-import cv2import numpy as npth = 100# Acquisition of background and input imagesim_bg = cv2.imread('kyousitu2.jpeg')im_in=cv2.imr...

2 years ago

1 answers
51 views
0
Could not broadcast is displayed

I'd like to set up a diagnostic imaging program, but I get the following error.I'm using google collateral and I'm trying to upload some of them from kaggle's Chest X-Ray Images (Pneumonia) dataset to...

2 years ago

3 answers
49 views
0
In Numpy, we want to generate an n-dimensional random vector under the constraint that the sum of the number of elements is N.

I would like to create an n-dimensional random vector v with Numpy.I want the sum of the elements of the vector to be N.For example, If n=4 and N=1, v=np.array([0.1, 0.3, 0.2, 0.4])Or If n=6 and N=3, ...

2 years ago

1 answers
97 views
0
About Floating Point Bool Determination

Attempting to reproduce pytorch's torch.nn.Linear module with numpy.As the result showed some errors, I rounded off the decimal point and printed out the decision of the bool.Why does the result of tr...


1 answers
109 views
0
I want to find the standard deviation of the arrangement at once.

I use python and numpy to calculate the standard deviation into an array, but since I use for, it is very slow and troublesome.I would appreciate it if there was a way to find the standard deviation o...

2 years ago

1 answers
117 views
0
There is a difference between the point of acquisition with pyautogui and the HSV value when reloading after saving the same image.

Regarding the title, I was at a standstill because I didn't know the cause.QuestionsIn Python, I have written a program to compare the following two HSV values.Convert images from pyautogui.screenshot...


1 answers
102 views
0
I want to learn whether the x,y coordinates entered into the neural network are located above or below the sin curve.

I was writing a code to learn whether the x,y coordinates entered into the neural network in python 3 are located above or below the sin curve, but an error occurred and I couldn't move forward and hi...

« - 7 - »

© 2024 OneMinuteCode. All rights reserved.