py tag

191 questions


1 answers
76 views
0
FUNCTION FITTING IN SCIPY

I'd like to make a scatterplot and attach a function to the scatterplot I made, but the curves overlap and output. Is it related to the monotonous increase in the values of array_x and array_y?Please ...

1 years ago

1 answers
66 views
0
I'm in trouble because I can't do anything about the error.TypeError: loop of ufunc does not support argument 0 of type Float which has no callable exp method

Error Message ------------------------------------------------------------------------------------------------AttributeError Traceback (most recent call last)AttributeError: 'Float' object has no attr...

1 years ago

1 answers
118 views
0
I want to use Pickle in Google Colab

As the title suggests, I would like to install and use Pickle on Google Colab.Notable to pip install pickle in python 3.6-StackOverflow Based on the above page, I ran the following command, but the pi...


2 answers
73 views
0
Extracting columns of multidimensional arrays without using numpy

The code fits in about one line without using numpy and is fastI would like to extract columns.It's also https://x1.inkenkun.com/archives/861I've looked into this article and many other things, but Ba...

1 years ago

1 answers
63 views
0
I want to get values from the number.array array.array array.

I would like to search for the value I want to get from the array using numpy.array and display it in print.But index=np.where (data[powering]==2.35) IndexError: arrays used as indications must be of ...

1 years ago

1 answers
138 views
0
How to use scipy.sparse.dia_matrix

See the documentation for instructions on how to use scipy.sparse.dia_matrix.dia_matrix(data, offsets), shape=(M,N))where the data [k,:] stores the diagnostic entries for diagnostic offsets [k]The fol...

1 years ago

3 answers
66 views
0
How do we solve the equation for this exponential function?

How do I solve the equation for x in the exponential function below? exp(-1/x**2) = exp(-2/x**2) - exp(-3/x**2)I used sympy's solution method, but it was executed infinitely and it didn't work.The env...

1 years ago

2 answers
49 views
0
DOT PRODUCT IN DEPTH DIRECTION FOR THREE-DIMENSIONAL ARRAY WITHOUT FOR SENTENCE

I recently started using python for numerical calculations.For example, import numpy as npA = np.zeros (500, 4, 4) B=np.identity(4)Suppose you have a three-dimensional array A and a matrix B.Suppose A...

1 years ago

1 answers
99 views
0
Convert the mov file to a numpy array

I would like to read the quick time movie format video file and convert it to a 3D numpy array.[Frame, X, Y] is the image.You can save up to the serial number jpg below (all you have to do is read thi...

1 years ago

2 answers
63 views
0
I want to connect different shapes of ndarrays with new axes added.

How do I connect different shapes of ndarrays with new axes added?For example, a two-dimensional array of two different shapes (columns equal)a=array([1,1,1,1], [1,1,1,1], [1,1,1,1]])b = array([2,...

1 years ago
« - 6 - »

© 2024 OneMinuteCode. All rights reserved.