In the gradient function, what is the type of variable ‘m’ ? I mean what does it actually contains. Is it a numpy array containing values of X or something else. And how can we see the type of m? Like there is a type() function but here I used it but didn’t get any result. Is this because that m is a local variable? I actually don’t know this so it’s my doubt.
Type of variable
Hey @anuragbansals, you are talking about m = X.shape[0] right ?
So m is nothing just an integer variable that is used to store the number of training examples in our dataset !
You can use type(m) and see the type of it !
If there is still any doubt, feel free to ask me anytime !
Happy Learning
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.