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
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
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??
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...
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.
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
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 :)
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.
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
Well done. I really like the fast pace and you still didn't miss anything. This was exactly what I was looking for.
graph?
It's awesome tutorial. Using graph to express what code do is pretty impressive. Appreciate your effort :)
Best tutorial I see so far.... thank you!
Using graph to express what code do is really pretty impressive.
Clear and straightforward. Thank you
awesome tutorial... being from a no technical background, i enjoy and understand your tutorials better than most online videos.. :)
Great tutorial on NumPy arrays, array addressing, and array computations - *thank you!*
Your tutorials are very helpful and very well explained, thank you very much, they are awesome !!!!
Very nice tutorials man. I learned and enjoyed this very much.
Really appreciate your efforts!!! Amazing tutorial!
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
@@codebasics could you please share the github link
fantastic numpy tutorial. thanks.
Great stuff. Learnt a lot. 5 stars!
Thank you very much sir, cleared all my doubts
numpy is super , thanks, hope u give python stuff in future too... ,ur way is too nice
A very heartily thanks to you for you awesome videos, thank you so very much !!!
Thanks very much bro. You saved my time.
Good overview! thank you!
This was a great skill to learn...thank you Bhavel:)
good job codebasic
Very good explained,. Just what I was looking for. Thanks
Glad it was helpful!
Totally helpful!
please, try to add videos related to scipy, matlplotlib,
Superb tutorial Man. Thumbs up to you.
@ (8:59) how the hsplit works when we call for a np.hsplit(a,3) only by 3???
Thanks, helped alot ...
😄
great video dude, please do make more.
Thanks for your effort, this was helpful
Adhavan, I am glad you liked it.
Thank you for making this - very helpful.
My pleasure daniel
so clear, thank!
Thanks for awesome explain
Great tutorials!
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
Thanks for feedback learn Sanskrit. Your point makes sense and I will keep that in mind
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??
very helpful tutorial sir..much appreciated!
Glad to hear that Rohan
excelent series. Thanks!
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...
Very helpful! thank you!
Amazing - cheers
Awesome sir
your videos are amazing...... completely!!!!!..... But I wish you had problems for us to practice
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.
Can you please explain .t transpose function and the use of defining axis (0) or 1 in hstack , vstack etc
great video thank you !
Thank you very much!
Great teaching. Can you please add videos on matplotlib?
Thank you so much.
That's gold
dude, please make on numpy with images, pixels array and all that stuff
thanks you 🙂
nice tutorial
Any tutorial for intermediate ??? please share playlist link.
thnks for the information
Thank you again
Awesome...
Super!!
superrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Appreciate your efforts....Sir.....Are these 4 videos sufficient for numpy ???.......
Okk sir..... thank you very much sir..... appreciate your efforts....!!
could you suggest any project a beginner for better understanding of numpy, python?
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
codebasics tq for your rply..but when i see your video it say that we can do like that if im not mistaken haha but anyway tq
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
Nice
how to insert a value into numpy array from keyboard
Very Helpful.. Thank you
is this series completed or are there more videos coming?
codebasics you should show how to add numbers to an empty bumpy array
enjoying
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 :)
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.
Good
sir, why didn't you prefer doing it on pycharm
is ravel and flat function same???
flat returns a copy
ravel returns original (if possible)
AttributeError: 'numpy.ndarray' object has no attribute 'falt'
Don't know, why few people pressed unlike button.
nice videos... :)
Take a bow ... :) :)
:)