py tag

191 questions


1 answers
49 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

1 answers
162 views
0
TypeError for python error: ufunc'kv'not supported

I am not familiar with Python and do not know what the error is and how to resolve it.Does this mean that the called kv does not support integration?source codeimport numpy as npimport pandas aspdimpo...

2 years ago

2 answers
119 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

1 answers
136 views
0
I'd like to try calculating the intersection of two straight lines with a solve.

When the straight line is parallel to the x-axis or the y-axis, do we need to deal with the case separately?How many cases should I divide it into?Thank you.The following error appears in Example 7.Un...

2 years ago

1 answers
92 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
47 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
65 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

1 answers
145 views
0
What is the number of interval ranges in the union of sympy?

s What is the number of interval ranges in the Union of sympy?②Is this OK? I tried Union→Interval→Union.Thank you for your cooperation.from sympathy import*k = Symbol ('k')ineq = 'k**2-40>0'an1 = s...

2 years ago

3 answers
48 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
144 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
« - 11 - »

© 2024 OneMinuteCode. All rights reserved.