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
87 views
0
stackoverflow error in python in keras

If you run the program below, you will receive a stackoverflow error.I don't know what to do, so please let me know if you know.main.py # Import Packageimportosfrom keras.layers import BatchNormalizat...


1 answers
44 views
0
IndexError: understanding too many indications for array

I understand that there are many similar questions, but the code that should have worked is As it no longer works, I am posting without knowing the cause.The following error occurred in the SSD learni...

2 years ago

2 answers
63 views
0
I'd like to get a location with elements of the tensor array.

I'd like to get an index of the tensor array, but it doesn't work, so please let me know. I'd like to extract only the following shape and the maximum element 1 is present.tensor([[1., 0., 0., 0., 0.]...

2 years ago

3 answers
43 views
0
Python 3 gets an error using numpy

I am having trouble getting the following error using numpy in Python 3.ValueError: could not convert string to float:b'0,000000'The areaa.txt contains the following:1000004,2193094,2193098,9886748,98...

2 years ago

1 answers
132 views
0
conversion from numpy to pytorch

I'm working on a prediction program for machine learning, and I'm working on two models: the one written in tensorflow and the one written in pytorch.I'd like to convert a prediction model written on ...

2 years ago

1 answers
82 views
0
ValueError on Python: I don't know what to do with Length mismatch.

The code below suddenly displays ValueError: Length mismatch, and I don't know how to deal with it.I thought it was because I got the same securities code over and over again, but it was working fine ...


1 answers
134 views
0
Input and target (teacher) sequences do not match on keras CNN

I'm thinking of classifying two classes at keras on CNN.Here's the code.import randomimport pandas aspdfrom pandas import Series, DataFrameimport numpy as npimport matplotlib.pyplot aspltimport kerasf...


3 answers
96 views
0
I want to read the csv file with numpy and create a dictionary using a tuple (which contains data from the csv file).

[Introduction] I am trying to create a dictionary using tuple in python, but an error occurred and I cannot create it.I'm sorry, but I'd appreciate it if you could tell me how to correct the error.Tha...

2 years ago

1 answers
99 views
0
image data set resize

I'd like to resize the numpy image data set.Specifically, I would like to resize the image data set with the shape of the numpy array (2000, 512, 512, 3) to the numpy array (2000, 256, 256, 3). ( 5512...


1 answers
58 views
0
Understanding Pythorch Output

The program below identifies the handwritten numeric dataset MNIST into 10 classes.The number of correct answers and the identification rate are determined by the validate function, and we used a conf...

« - 10 - »

© 2024 OneMinuteCode. All rights reserved.