{{#items}}

{{text}}

{{/items}} {{ctaText}}

{{#items}} {{/items}}

showing results for - "what is argmax n pyhton"

Lesly

25 Apr 2017

```
1import numpy as np
2A = np.matrix([[1,2,3,33],[4,5,6,66],[7,8,9,99]])
3
4np.argmax(A) # 11, which is the position of 99
5
6np.argmax(A[:,:]) # 11, which is the position of 99
7
8np.argmax(A[:1]) # 3, which is the position of 33
9
10np.argmax(A[:,2]) # 2, which is the position of 9
11
12np.argmax(A[1:,2]) # 1, which is the position of 9
```

similar questions

argmax pythonhow to use ggplot matplotlibpython array use numpy arangepython sigmoid functionnp arangenumpy arange number of elementsdimensions of np array pythonnp arange in pythonwhat is the output of the following code 3f np arange 280 2c22 2c6 29np arange shapesigmoid prime pythonargv in pythonnp argmin top nidxmax in pythonhow to make a sigmoid function in pythonpython np array get dimantionargc pythonmean of a vector in pythonqueries leading to this page

argmax in numpypytgon argmaxnp argmax 28numpy argmax for a matrixwhat does np argmax doargmax array pythonhow to use np argmaxnp array argmaxnp argmax argmax 28 29 pythonwhat does argmax do in pythonimplement argmax in pythonnp argmax pythonpython argmaxwhat is np argmaxnp argmaxnp argmaaxargmax python np numpy argmaxnp argmax in pythonargmax pythonwhat is argmax n pyhtonargmax in pythonnp ndarray argmaxwhat is argmax in pythonnumpy argmax functionnp argmax 28 29np argmax axispython insrt n abount of 5cthow to get argmax in pythonnumpy argmax 28x 2c axis 3d0 29argmax numpynumpy argmax indexargmax 28 29 pythonnumpy argmaxpython np argmax axisargmax function in pythonwhat is argmax n pyhton your answer for

you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content

please ensure to add code which is syntactically corrent and executes properly

ask question on maxinterview

you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content

please be clear, to the point and respectful