I'm looking for the max value of two arrays, and I tried to get the max of each and add to another 'np.array'. However, I got 1.
maximums = [x_train.argmax(), x_test.argmax()]
print(maximums)
maximums = np.array(maximums)
print(maximums)
maximum = maximums.argmax()
print(maximum)
I expected the value of maximum to be 577, but it is 1.
[417, 577]
[417 577]
1
Where is the error, or why I don't get what I wanted?
EDITED: I found a function that makes what I wanted, and it is ´numpy.amax()´ https://thispointer.com/find-max-value-its-index-in-numpy-array-numpy-amax/