Do you want to learn python from me with a lot of interactive quizzes, and exercises? Here is my project-based python learning course: codebasics.io/courses/python-for-beginner-and-intermediate-learners
Thank you so much! Slicing doesn't take into account the last 'stop at' row indicated, which isn't clearly stated in SciPy documentation (unless I missed it). Anyhow, your tutorial makes things much more intuitive. Merci!
Even with regular python lists that is true and they have mentioned it in python documentation. Not sure about scipy docs though. But anyways now you know it and will remember it 😊
Did you know that I'm still new to Python (and Numpy)? Anyhow, thanks again for making it all clear: something tells me that I'll be returning to your channel again soon ; )@@codebasics
Sir, I just start data science from your channel. I just have completed my python course from udemy. i have two question. please answer me: 1. should I learn more about NumPy or this is enough for a beginner?? 2. After completing this what should learn next??
Excellent teaching. Superb!!!! Please also do videos on Tensorflow machine learning. I want to save a trained Tensorflow model and then later use it in some another program. How can I do it.
First of all thanks a lot for the great tutorial. I wanted to ask a small question about the boolean array though. In the example you have written b = a > 4 where we are looking for all those elements which returns True for condition > 4. I was trying to create a simple example where I want to check whether the array element is prime or not with a simple function and return boolean. Is there is an easy way to do something like that...
v good tutorial. when u want ppl to focus on last rows of ur screen bring it in center. we have youtube bar and it is not very good user experience ;) - A lazy UX guy
Hi, your video is awesome and i understand every part of it but i got this code about the index thingy and I got the error 'index 4 is out of bounds for axis 1 with size 4' and i really dont know how to fix it. So, i really hope that you can teach on how to fix this cause i need to finish it for my assignment
Hai could you pls check over my code..and is there any medium for me to give you the code so that you can check it..it is my pleasure if youre able to give me one medium of yours
Hello Sir, I want to grab an index of an array from its value. How can I do it? X1 = np.array([1,0,1]) X = np.array([[1,1,1],[1,1,0],[1,0,1],[1,0,0],[0,1,1],[0,1,0],[0,0,1],[0,0,0]]) I want to grab index of X when X1 == X Can I do it? How can I do it?
You can use np.where. Check this: thispointer.com/find-the-index-of-a-value-in-numpy-array/ I've not tried this on complex object like array within array but just try it and let me know if it works.
I divide a 3D image into small patches, these patches, I will process them (for example I will convert each patch into a vector,), my problem is that how can I extract these patches with their positions from the original image, I could only extract the patches and not with the positions (code in python), the code is attached def patch_extract_3D (input, patch_shape, xstep = 1, ystep = 1, zstep = 1): patches_3D = np.lib.stride_tricks.as_strided (input, (int ((input.shape [0] - patch_shape [0] + 1) / xstep), int ((input.shape [1] - patch_shape [1] + 1) / ystep), int ((input.shape [2] - patch_shape [2] + 1) / zstep), patch_shape [0], patch_shape [1], patch_shape [2]), (input.strides [0] * xstep, input.strides [1] * ystep, input.strides [2] * zstep, input.strides [0], input.strides [1], input.strides [2])) patches_3D = patches_3D.reshape (patches_3D.shape [0] * patches_3D.shape [1] * patches_3D.shape [2], patch_shape [0], patch_shape [1], patch_shape [2]) # = Adjoint3D return (patches_3D) input is an 3D matrix and thank you for your help :)