Rank, Axes, and Shape Explained - Tensors for Deep Learning

  Рет қаралды 72,570

deeplizard

deeplizard

Күн бұрын

Пікірлер: 75
@deeplizard
@deeplizard 6 жыл бұрын
Check out the corresponding blog and other resources for this video at: deeplizard.com/learn/video/AiyK0idr4uM
@reefcrazed2070
@reefcrazed2070 5 жыл бұрын
Very well thought out and explained well. I like these 10 minute chunks too, just enough to not be overwhelmed with too much new information.
@deeplizard
@deeplizard 5 жыл бұрын
Thank you Reefcrazed!
@muayas9602
@muayas9602 2 жыл бұрын
Very nice explanations of tensors. Plus those clips from developers gives the final touch.
@joebender9052
@joebender9052 5 жыл бұрын
I really like your teaching style. I feel like I'm getting a much better understanding of things I thought I already knew.
@akarshjain7141
@akarshjain7141 4 жыл бұрын
A new perspective to my existing knowledge of rank, axes and shape of tensors ! Thanks deep lizard !
@sebgrootus
@sebgrootus 2 жыл бұрын
I've been studying AI for 2 years, but i gained a better understanding thanks to your teaching style. Very nice :)
@Sikuq
@Sikuq 4 жыл бұрын
Fantastic PyTorch introduction. I downloaded your code via your Patreon, run it step-by-step in VSCode, and I now realize just how far I still have to go. Thanks.
@yousufborno3875
@yousufborno3875 4 жыл бұрын
Wow !! you guys made it so simple. Great job ! Please keep making vedio. This channel deserves a lot of subscribers and should be a go to channel for ML/DL developers.
@atmismahir
@atmismahir 5 жыл бұрын
at 3:16 the comment should be "The third index of axis 2" . Thanks for the tutorials :)
@s25412
@s25412 3 жыл бұрын
It threw me off when watching the video, but it all makes sense after this comment
@Spencer-to9gu
@Spencer-to9gu Жыл бұрын
seriously, that confused the shit out of me
@Brahma2012
@Brahma2012 5 жыл бұрын
Reshaping has been explained here concisely at its best. Thanks
@Vikram-wx4hg
@Vikram-wx4hg 4 жыл бұрын
Excellent video!
@richarda1630
@richarda1630 3 жыл бұрын
The Chamath cameo caught me by surprise :) how profound to watch this now in 2021
@abyssus9934
@abyssus9934 3 жыл бұрын
Very intuitive explanation! Thank you so much!
@Sikuq
@Sikuq 4 жыл бұрын
Excellent foundation recap. Thanks.
@vipulmishra554
@vipulmishra554 6 жыл бұрын
At 7:43, can't we interpret it as reshaping to a 2d-array with 1 row and 9 columns? Because reshaping it to a tensor with length of first axis as 1 and second axis as 9 makes sense to me only if 1st axis refers to columns and 2nd one to rows. So, is that the case about axes in pytorch?
@viictorsperanta5023
@viictorsperanta5023 3 жыл бұрын
You are a great explainer. Thank you.
@silversword7528
@silversword7528 2 жыл бұрын
Hi, very good video. Just to note that there is an error at mn 3:19. You have written axis 3 where is should be axis 2 I guess.
@ashutoshchauhan5586
@ashutoshchauhan5586 6 жыл бұрын
Very nice explanation
@deeplizard
@deeplizard 6 жыл бұрын
Hey Ashutosh - Thank you!
@lingshuaikong5644
@lingshuaikong5644 Жыл бұрын
Thanks for this great series, Sir! It really helps. Also, I thought maybe there's a little typo in the video when you say the third index of axes 3 in the time of 3:23 because axes 3 has only 1 index.
@abhijeetsharma5533
@abhijeetsharma5533 5 жыл бұрын
3:02 each element along the 2nd axis is ..? shouldn't it be an array as well(and not a number)? because only when we access a particular index of that [element along the 2nd axis], we'll get a number. Isn't it? Correct me if I am wrong.
@plebblesrollingston
@plebblesrollingston 11 ай бұрын
Minor Corrections: @03:16: "The third index of axis 2". Instead of 'thrid', it should be 'third' and instead of '3', it should be '2'.
@iamparadox8885
@iamparadox8885 6 жыл бұрын
this tutorial is awesome
@ernieblessed9510
@ernieblessed9510 3 жыл бұрын
so intelligent, I felt smart now
@forvm2051
@forvm2051 5 жыл бұрын
8:47 I really laughed...
@DanielWeikert
@DanielWeikert 6 жыл бұрын
Thank you guys! I am really looking forward to future videos about reshaping. Honestly that is one of the most difficult things to understand for me. When do I need what shape of my data? Hope you will enlighten me ;) Great work again!
@deeplizard
@deeplizard 6 жыл бұрын
Hey Daniel - You're welcome! We're with you on that one. Shaping is tricky. Lot's to look forward to on shaping coming up. Especially when we start building the CNN. We've got you! ;)
@DanielWeikert
@DanielWeikert 6 жыл бұрын
Awesome
@wilsonzhang5258
@wilsonzhang5258 4 жыл бұрын
At 4:43, shouldn't that be "we have multiple words for the same concepts" instead of "different concepts"?
@deeplizard
@deeplizard 4 жыл бұрын
You are on to something there 😂 I think I was trying to articulate that the "multiple words for the same concept" phenomenon was occurring multiple times. 😄 Seems to have came out wrong.
@qzorn4440
@qzorn4440 Жыл бұрын
So after PyTorch is setup what would be some simple test examples to make sure it is functioning correctly? 😎 Thanks.
@maheshvenk
@maheshvenk 5 жыл бұрын
A big Thank You
@deeplizard
@deeplizard 5 жыл бұрын
You are welcome!
@Fatima-kj9ws
@Fatima-kj9ws 3 жыл бұрын
Awesome
@Nissearne12
@Nissearne12 4 жыл бұрын
I like this serie of PyTorch tutorial much.
@fahimtaibahmed1335
@fahimtaibahmed1335 5 жыл бұрын
Which video is the indices? is there a link thank you
@deeplizard
@deeplizard 5 жыл бұрын
Hi Fahim - You can find an organized list of all the videos here: deeplizard.com/learn/video/v5cngxo4mIg Tensor episodes start on number 5. Good luck!
@tonihuhtiniemi1222
@tonihuhtiniemi1222 5 жыл бұрын
I
@deeplizard
@deeplizard 5 жыл бұрын
Hey Toni - Thank you for the ❤️ and joining the Hivemind on Patreon. Chamath is cool!
@mjackstewart
@mjackstewart 2 жыл бұрын
Hmm … A mathematical tensor is an object that remains unchanged under a change of coordinates, and its components change in predictable ways under a change of coordinates. So when you say a neural network tensor retains the same information but can take on different shapes, is THIS the underlying parallel between math an NN tensors?
@BenR-qj3fn
@BenR-qj3fn 2 жыл бұрын
Is that the music from Kerbal Space Program in the background?
@SOMADLOVECLUB
@SOMADLOVECLUB 4 жыл бұрын
1:40 lmao KSP music escootit
@griffingibson4389
@griffingibson4389 4 жыл бұрын
t.reshape{9,4} would be how you get the neural network shape at the end of the the video then? Never typed a line of code in my life have mercy.
@iamparadox8885
@iamparadox8885 6 жыл бұрын
this tutorials are awesome
@zes7215
@zes7215 6 жыл бұрын
wrg, no such thing as growing intelligenx or not, nonex, doesn't matter, cpux, any infinitely intelligent nmw, learn or machine learning or not doesn't matter, think,do,canthink do any nmw and any can be perfx
@prachijadhav7578
@prachijadhav7578 3 жыл бұрын
{ "question": "How many dimensions given tensor t has? t = [[[1,2], [3,4], [5,6]]]", "choices": [ "3", "4", "5", "2" ], "answer": "3", "creator": "PrachiUR", "creationDate": "2021-11-25T07:30:53.447Z" }
@amdenis
@amdenis 4 жыл бұрын
Do you have more of these types of videos on TensorFlow? They are great videos, but the market has really shifted strongly to TF over the past couple years-- at least for our US teams. I run consulting firm HQ'd in Silicon Valley and Research Triangle. with 16 teams of people, who are hiring on new DS and AI people every month now. Although PyTorch still accounts for some of the projects, about 80-90% of all new projects we get across commercial, defense and government are all TensorFlow 2.0 now. As such, we like to provide support and learning materials for the new people coming on, such as books and videos. For better or worse, the market is growing faster than the average skill level of people, and many of the new people who we develop and groom over time have a year or less AI dev experience. So, if you do not already have all of these sorts of videos in Tensorflow rather than PyTorch you should, as your instructional style and knowledge level are perfect for many of our new hires coming out of school.
@deeplizard
@deeplizard 4 жыл бұрын
Hey Andrew - Thanks for your comment and these details 😊 We have a set of courses that are detailed here: deeplizard.com/ My view is that AI devs should be encouraged to learn multiple libraries. The knowledge should hopefully generalize. Especially for the tensor videos in the PyTorch course, Part 1 in particular (all about tensors), the information is definitely general, the knowledge gained applies to TensorFlow as well, even though the demonstration is with PyTorch.
@amdenis
@amdenis 4 жыл бұрын
​@@deeplizard - So true and thank you so much for the feedback. Please don't think I am criticizing your teaching. It is about the best I've come across in a long while. Also, we do use a bunch of different frameworks, languages and related tools, including some of the proprietary ones for certain .mil and closed architecture projects. It is just that we are finding an increasing number of the kids we are hiring have spent too much time on some tools and frameworks at the expense of what many of the major projects increasingly require. We don't mind starting good people who can learn efficiently at $100K with somewhat limited experience, but we are having to pay $150+ & equity and train them for 12 months because the universities and other institutions have exposed them mostly to less applicable tools. This is not a new issue; when I graduated some decades ago from MIT, and then even subsequently at U of I Champaign Urbana, they were teaching using languages like PL/I and Pascal, Scheme and Modula-2, despite the fact the business were clamoring for Fortran, COBOL and related alternatives. While on average I'm glad I learned everything from Ada to Zilog AL, I spent the next 3 years after graduating learning languages and frameworks that were most needed. Things moved much slower and budgets and expectations were lower then, so it worked out relatively okay. However, even then I wished I had learned more useful tools and languages. Since then, I have always tried to make sure that my background and the teams I hired are educated based on what's actually needed, as is reasonably possible; and all I can say is that technology is now moving too fast for even the "best" universities to stay current in what they teach-- let alone pro-active. It generally takes years for such institutions to propose new curriculum and associated tools and possibly get them approved. I know and agree with what you are saying, and we encourage breadth and depth, and still maintain dev suites running things like old versions of Matlab and Simulink on SGI Onyx's to about a dozen versions of virtualized COBOL and Fortran. However, and this is where groups like yours come in and really can shine, you CAN stay current and ahead of the game with tools like TF, Swift, etc, in order to make up for the limitations and deficiencies of our educational institutions. Of course we hire deep theory people with doctorates, and seasoned (read 'old like me') researchers who have deep specialties. However, like most others in the field (AI, Quantum-AI, crypto and related), we have little problem finding great available specialists with deep, somewhat less mainstream skills. What is difficult to find are people with what 80%+ are hiring specifically for: deep, efficient TensorFlow ML and DL hosted, platform and embedded skills. Maybe 1 out of 9 or 10 of our last hires were of this ilk and didn't require 1-2 years of concurrent OTJ training. We are always happy to pay more than double what the typically trained hires get plus incentives for such recent grads or self-trains. The issue is that over the past 5 years it has gone from finding them every week, to every month and now just two last year. This is why I am ecstatic to find resources like yours, where the material is taught better than virtually anything I have come across anywhere. Your blending of theory with practical, and the accuracy of what you put forth are better than almost anything we come across. Also, you do have a good mix, and you definitely teach some of the most useful tools. As I said, about 10% of our projects still involve some amount of PyTorch. I just mentioned the TF as a note to you to ensure you're aware the bigger role that you play given your amazing teaching abilities and knowledge set.
@louerleseigneur4532
@louerleseigneur4532 4 жыл бұрын
merci merci
@aakashsingh8120
@aakashsingh8120 4 жыл бұрын
What's adding along axis = 1 mean here?
@deeplizard
@deeplizard 4 жыл бұрын
timestamp?
@WangLiaoYuan
@WangLiaoYuan 2 жыл бұрын
the example (3,3) is not good. If it could be (3,4), so the rank is 4, axes is 3. Am I right?
@aipreacher9378
@aipreacher9378 5 жыл бұрын
Where are the notebooks available???
@deeplizard
@deeplizard 5 жыл бұрын
Hey Sourangshu - Download access to code files and notebooks is available as a perk for the deeplizard hivemind. Check out the details regarding deeplizard perks and rewards at: deeplizard.com/hivemind If you choose to join, you will gain access to the code from this series at the link below: www.patreon.com/posts/code-for-pytorch-21607032
@shanakaj007
@shanakaj007 5 жыл бұрын
glad to see a Sri Lankan in the video...
@deeplizard
@deeplizard 5 жыл бұрын
Thanks for mentioning this. I previously thought Chamath was from India. Are you also Sri Lankan?
@shanakaj007
@shanakaj007 5 жыл бұрын
@@deeplizard Yes I'm and that's a fair confusion. hahaaa i'm huge fan of your videos series because you are so talented in delivering advanced stuff in a simple manner with graphics..
@prateekyadav9811
@prateekyadav9811 6 ай бұрын
I am wondering if I specially dumb or something. I am yet to finish this video but since I am totally confused I felt compelled to make this comment. In previous video of this series, you said that the dimension of a tensor is the number of indexes needed to obtain an element from the tensor. From the slide displayed at 1:00, it seems that rank is the same as dimension because you are asserting that a 2d array (indexes = 2 and thus, dimension = 2) has rank 2. Then, from 1:47 to 1:56, you state that a tensor of rank 2 means that tensor has 2 dimensions or 2 axes. You didn't at all define what these terms mean but merely pointed to the notion of indexes. In all this, I only understood what an indexes are, that's all. I am sorry but, I, personally, found this to be a frustratingly poor explanation.
@nehadyounis
@nehadyounis 4 жыл бұрын
hey isn't it the music from kerbal space program?
@deeplizard
@deeplizard 4 жыл бұрын
KSP creators used the same music library as we did :D
@nehadyounis
@nehadyounis 4 жыл бұрын
deeplizard that might explain why both of you are awesome
@het314
@het314 3 жыл бұрын
A multidimensional Array?
@Floodbait_117
@Floodbait_117 2 жыл бұрын
I hate math but want to learn about deep learning my curiosity is out weighting my hate of math
@kyle_bro
@kyle_bro 4 жыл бұрын
I had to check and see if I had ksp running in the background lol
@deeplizard
@deeplizard 4 жыл бұрын
Lol
@leiferickson4841
@leiferickson4841 4 жыл бұрын
thrid index
@Небудьбараном-к1м
@Небудьбараном-к1м 5 жыл бұрын
Had a hard time figuring what leength is
@iamparadox8885
@iamparadox8885 6 жыл бұрын
.
CUDA Explained - Why Deep Learning uses GPUs
13:33
deeplizard
Рет қаралды 245 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
TensorFlow fundamentals: What are tensors in TensorFlow.js?
16:37
Google for Developers
Рет қаралды 9 М.
Creating PyTorch Tensors for Deep Learning - Best Options
11:02
deeplizard
Рет қаралды 37 М.
I Scraped the Entire Steam Catalog, Here’s the Data
11:29
Newbie Indie Game Dev
Рет қаралды 686 М.
Why LLMs Are Going to a Dead End Explained | AGI Lambda
14:46
AGI Lambda
Рет қаралды 12 М.
Multi-Dimensional Data (as used in Tensors) - Computerphile
9:20
Computerphile
Рет қаралды 151 М.
Why Neural Networks can learn (almost) anything
10:30
Emergent Garden
Рет қаралды 1,2 МЛН
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 403 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН