What does ‘()’ mean to numpy apply along axis and how does it differ from 0
I was trying to get a good understanding of numpy apply along axis. Below is the code from the numpy documentation (https://numpy.org/doc/stable/reference/generated/numpy.apply_along_axis.html)
Numpy array slicing with a comma
There are multiple questions on StackOverflow, asking how the comma syntax works, but most of them refer to m[:,n]
which refers to the nth
column. Similarly, m[n,:]
refers to the nth
row. I find this method of slicing used in the labs of Machine Learning Specialization by Andrew Ng. But does this slicing have any advantage over m[n]
?