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
IndexError: understanding too many indications for array

I don't know why this error occurs.The code I wrote looks like this.>>>if__name__==_main__:... data1 = np.genfromtxt('./ozon_sheet.csv')... x1 = data1 [:,1]... Traceback (most recent call l...

2 years ago

1 answers
46 views
0
Runtime warning in power of np.array

Please let me know as I was at a loss because the power of the 2D array of numpy (power by element) could not be successful.Environment:Python: 3.7.5Number: 1.17.4 If you try to multiply the float32 t...

2 years ago

2 answers
48 views
0
I want to randomly extract data from the list and create a new list of data.

I have a matrix list of 100x3 as shown below.There are two things I would like to do for this matrix: ·I would like to randomly extract two lines at any number of times (e.g., 3 times).ex)[[a1, a2, a3...

2 years ago

1 answers
49 views
0
Method of calculating correlation coefficients for each sample in Python 3

Using Python, based on existing DataFrame (Data Set Before Processing (df) below), correlation factor I would like to discharge .The specific data set image looks like the After-Processed Data Set bel...

2 years ago

1 answers
52 views
0
How to Output a Value with Changed Random State

I am outputting while changing random state in machine learning.For example, is it possible for the following program to output random state from 0 to 20 all values?Currently, I manually change from 0...

2 years ago

1 answers
68 views
0
I don't understand the flow of the correlation matrix calculation

I don't understand the flow of the correlation matrix calculation.#Create correlation matrixR=np.corrcoef(X.T)# set the diagonal component to zero_R=R-np.identity(10)# Get index with maximum correlati...


2 answers
45 views
0
How to Calculate Each Row of a Matrix in a For Loop

There are 201 vectors of length 3575 and they are stored in the numpy.ndarray format. For ease of explanation, use x.I'd like to calculate for each line of this x, a vector whose shape is (13575), but...

2 years ago

2 answers
59 views
0
One-dimensional error occurs in Pandas.

array([-1, 0, 1, 1, 1, 0, 2, 3, 4, 5, 6, 7, 8, 7, 0], [-1, 9, 10, 11, 12, 11, 13, 11, 14, 11, 15, 12, 16, 17, 18], [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...

2 years ago

1 answers
45 views
0
The result will be different from the result you should have.Please tell me about "nan".

I started studying recently.I'd like to display a three-dimensional graph in a two-dimensional array, but somehow it says nan.Please let me know if anyone knows.

2 years ago

2 answers
111 views
0
Understanding List to np.array Conversion

I have a question about converting a list consisting of numpy.array to numpy.array.Below is the matrix (test).test= [array([4.76175243, 5.35280132, 5.6358859, 6.23928513, 6.75275935, 6.82693267, 6.68...

2 years ago
« - 9 - »

© 2024 OneMinuteCode. All rights reserved.