Word Embedding in PyTorch + Lightning

  Рет қаралды 37,678

StatQuest with Josh Starmer

StatQuest with Josh Starmer

Күн бұрын

Пікірлер: 87
@statquest
@statquest Жыл бұрын
Here's the code: lightning.ai/lightning-ai/studios/statquest-word-embedding-with-pytorch-lightning?view=public&section=all To learn more about Lightning: lightning.ai/ Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/
@loserc1854
@loserc1854 8 ай бұрын
waiting for ur next book
@drintro
@drintro 9 ай бұрын
The best part of this example is the way the first example is written with single dimension arrays for all of the parameter values. That makes the matrix operations explicit and more clear even to an experienced developer. I recommend writing and debugging the code from watching the video. There are small things that you might get wrong that will teach you something.
@statquest
@statquest 9 ай бұрын
Thank you! I'm glad you liked the example.
@ijf03208rek
@ijf03208rek Жыл бұрын
I bought The StatQuest Illustrated Guide to Machine Learning, and it's absolutely amazing, same with every single one of your videos! I highly recommend that book to anybody who is interested in learning about this stuff! Thank you thank you thank you so much for taking the time to put together the content you make, I can't believe how well you paint this stuff into perspective! You're a freaking awesome person Josh, I'm still absolutely elated that I stumbled across this channel! I never would have expected to be so consumed with learning this and everything about this!
@statquest
@statquest Жыл бұрын
Thank you very much! I'm really glad you enjoy my videos and my book! Thank you! :)
@vishnumuralidharan9858
@vishnumuralidharan9858 9 ай бұрын
Hi Josh, I just want to say that you are an absolutel godsend to the ML and DS community. I have been following your content since 2020 and you have never let me down. I hit a block with PyTorch code implementation and your videos simply untangled a lot of my mental knots. Keep up the great work!
@statquest
@statquest 9 ай бұрын
Awesome! Thank you!
@InglesConConfianza
@InglesConConfianza Жыл бұрын
Just finished the Deep Learning playlist. Thank you so much for this great work.
@statquest
@statquest Жыл бұрын
BAM! Thank you very much! You deserve an award!
@exxzxxe
@exxzxxe 10 ай бұрын
Josh- you are a Master in making the difficult comprehensible!
@statquest
@statquest 10 ай бұрын
Wow, thanks!
@tom19860526
@tom19860526 10 ай бұрын
I like your videos. Both the slides and explanations are very detailed and clear. I cherish them every time I watch them. It is a good learning video. thank you very much.
@statquest
@statquest 10 ай бұрын
Thank you very much! :)
@beegdigit9811
@beegdigit9811 2 ай бұрын
Your content is really for the future generations
@statquest
@statquest 2 ай бұрын
Thanks!
@itaydagan7459
@itaydagan7459 Жыл бұрын
Josh you are one of a kind!! Thank you for all the content!
@statquest
@statquest Жыл бұрын
Thank you!
@itsawonderfullife4802
@itsawonderfullife4802 Жыл бұрын
I too, love your work and specially appreciate your playful style and all the movie references. ;)) Thanks for your videos, all of them.
@statquest
@statquest Жыл бұрын
Thank you very much!
@bakerb-rz6lv
@bakerb-rz6lv Ай бұрын
I have a bug when I import the numpy: ImportError: numpy.core.multiarray failed to import. My python is 3.10, while it works in python 3.8. In python 3.10 I can not degrade numpy to 1.20 or lower, maybe some module did not compatible.
@statquest
@statquest Ай бұрын
Try running it on lightning and see if it works there.
@nourin_siddique
@nourin_siddique Жыл бұрын
Yayy !! I was wanting a video like this !!!
@statquest
@statquest Жыл бұрын
BAM! :)
@marwolaeth111
@marwolaeth111 Жыл бұрын
StatQuest is so inspiring! Please consider making a 'Quest about Geometric deep learning. What do you think?
@statquest
@statquest Жыл бұрын
I'll keep that in mind.
@eliyahubasa9401
@eliyahubasa9401 Жыл бұрын
Great video, a great way to study. Thank you.
@statquest
@statquest Жыл бұрын
Thanks!
@RaynerGS
@RaynerGS Жыл бұрын
You rock. I love your work. Salute from Brazil.
@statquest
@statquest Жыл бұрын
Muito obrigado! :)
@elodiebeitman8251
@elodiebeitman8251 Жыл бұрын
Hi! I also bought The StatQuest Illustrated Guide to Machine Learning - It's awesome! Triple BAM! I think there might be a small error with the formula on page 135 (Naive Bayes: FAQ Part 3) though, FYI! Thanks again!
@statquest
@statquest Жыл бұрын
This is a known error in the book. All of them are listed here: statquest.org/sigml-errata/
@TJ-hs1qm
@TJ-hs1qm Жыл бұрын
StatQuest Time!!
@statquest
@statquest Жыл бұрын
BAM! :)
@abhilashb722
@abhilashb722 Жыл бұрын
This is really great 🎉🎉🎉. Can you please continue this pytorch + lightning series
@statquest
@statquest Жыл бұрын
Yep! Working on it right now.
@kisholoymukherjee
@kisholoymukherjee Жыл бұрын
And hope you will also add them to the Deep Learning Playlist. Keep rocking (and BAM-ing!) @@statquest
@statquest
@statquest Жыл бұрын
@@kisholoymukherjee Will do!
@diegoandradex12
@diegoandradex12 Жыл бұрын
Great video as always
@statquest
@statquest Жыл бұрын
Thanks again!
@sweetlearning6629
@sweetlearning6629 Жыл бұрын
Thing is; i always look forward to new videos from you, cause i know it would be awesome as always. I would want to see more videos on computer vision tho, just hope you'd consider this. Thanks
@statquest
@statquest Жыл бұрын
I'll keep that in mind.
@gsestream
@gsestream Жыл бұрын
as a related thing, finding closest things on a map/grid, without making a cell division system, sort all dimensions then check if they collide, like spheres or aabb bounding boxes, n log n time complexity, as opposed to n^2 time complexity, similar to grid cell partitioning of data, for clustering, or k-nearest clustering, but just finds closest at range, any number, very fast. should be applicable directly in high dimensionality complex data analysis, dimensionality reduction, covariance matrices, yep its designed to be fast
@mohamedthasneem7327
@mohamedthasneem7327 3 ай бұрын
Thank you very much for the video sir.
@statquest
@statquest 3 ай бұрын
Welcome!
@vigneshvicky6720
@vigneshvicky6720 Жыл бұрын
Plz start teaching yolov8 which is used for object detection, segmentation, classification ... Every problem will be solved plz plz
@statquest
@statquest Жыл бұрын
I'll definitely keep that in mind! Keep reminding me on future "in PyTorch + Lightning" videos.
@vigneshvicky6720
@vigneshvicky6720 Жыл бұрын
@@statquest sure sir but try to do it from scratch because everyone are using build in one so many of them dont know what is going inside. I would like to learn it from scratch so that I can finetune architecture myself . Do it as soon as possible🙏
@d25102
@d25102 Жыл бұрын
Thank you!
@statquest
@statquest Жыл бұрын
:)
@VishalKumar.S-g8f
@VishalKumar.S-g8f 11 ай бұрын
Hi josh Starmer, after learning ML, whether this series is enough for a s beginner to learn deep learning? and do any additional things to know other than this series for deep learning?
@statquest
@statquest 11 ай бұрын
It's a great way to start.
@yashsonune4391
@yashsonune4391 11 ай бұрын
Thank you again for the quality content. 🔥. Btw is there any plans for teaching about fine-tuning Language models. I heard this paper (Universal Language Model Fine-tuning for Text Classification) is of higher relevance and backbone for many state of the art solutions.
@statquest
@statquest 11 ай бұрын
I'm working on one.
@kartikchaturvedi7868
@kartikchaturvedi7868 Жыл бұрын
Superrrb Awesome Fantastic video
@statquest
@statquest Жыл бұрын
Thanks!
@RaynerGS
@RaynerGS Жыл бұрын
The original work [1] uses a multidimensional vector for each word instead of a unique real value. For instance, Troll2 = [,025, 0,735, 0,256, 0,145], in this case, four dimensionality. In the paper, the authors use a matrix instead of a neuron. Question: using neurons, how would you increase the word dimensionality representation? 1: "Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient Estimation of Word Representations in Vector Space. In Proceedings of Workshop at ICLR, 2013."
@statquest
@statquest Жыл бұрын
The number of values associated with each word is determined by the number of activation functions in the hidden layer. If you want 4 numbers, then add 4 activation functions.
@horrorislander
@horrorislander 2 ай бұрын
At 25:30, hidden = self.input_to_hidden(input) but at 26:17, hidden = self.input_to_hidden(input[0]) Similiarly, at 25:48, loss = self.loss(output_i, label_i) but at 26:17, loss = self.loss(output_i, label_i[0]) Note the absence/presence of a subscript. Does this matter? My "type-along-with-Josh" code had problems when I ran it, which is why went back and checked. When I adopted the code from the "small-font" version at 26:17, it seemed to run correctly, but since I know nothing more about these modules other what's in your videos... maybe it doesn't matter? There certainly could be some other issue with my "type-along" code, maybe one I inadvertently fixed or randomly didn't break the program the second time. Still, I thought it worth mentioning the differences. Thank you for the video series!
@statquest
@statquest 2 ай бұрын
I'll be honest, I thought the code at 26:16 was so small that no one would ever actually read it - but I still apologize for the confusion it caused. That being said, it's always better to download the code rather than type it in, because I actively maintain it, and when the library changes, I'll change the code there (I can't change the video, which is a bummer).
@DumplingWarrior
@DumplingWarrior 2 ай бұрын
At 11:45 when we set input = input[0], we're only selecting the input that corresponds to predict what comes after Troll 2. Does that mean if we'd like to predict what comes after "is" with input [0,1,0,0], we'd need change this code to input[1]? Seems oddly inconvenient to have to change something in a class for different scenarios.
@statquest
@statquest 2 ай бұрын
No. All "input[0]" does it remove an extra set of brackets. We get the same extra set for each row in the dataset, so we don't have to change this code.
@d_b_
@d_b_ Жыл бұрын
👍So, these are word embeddings. Do you know/think that sentence embeddings and text embeddings differ much from this process?
@statquest
@statquest Жыл бұрын
I'm pretty sure they are the same, but I'm not certain.
@lebronjames8507
@lebronjames8507 Жыл бұрын
Do u guys have an education I can get somewhere? I saw u guys had a probability basics playlist but do u have some type of course to take me through every single subtopic of stats?!
@statquest
@statquest Жыл бұрын
Not yet.
@debarunkumer2019
@debarunkumer2019 11 ай бұрын
Can you please create a playlist to demonstrate the coding part of Encoders, Decoders and Transformers? This is an earnest request from your FAN. Thanks.
@statquest
@statquest 11 ай бұрын
I'm working on it right now.
@deepikasheshabutter4790
@deepikasheshabutter4790 4 ай бұрын
When is the next video comingggg???
@statquest
@statquest 4 ай бұрын
It just came out: kzbin.info/www/bejne/eWq0hKOiatOgqLs
@Johan-zs9xh
@Johan-zs9xh 6 ай бұрын
Excuse me, what is your code editor?
@statquest
@statquest 6 ай бұрын
I use jupyter.
@iurgnail
@iurgnail Жыл бұрын
do a video for ARIMA and VAR and their cousins please!
@statquest
@statquest Жыл бұрын
I'll keep that in mind.
@mikinyaa
@mikinyaa Жыл бұрын
🥳
@statquest
@statquest Жыл бұрын
YES! :)
@arseniykan
@arseniykan Жыл бұрын
BAMbastic
@statquest
@statquest Жыл бұрын
Thanks!
@wibulord926
@wibulord926 Жыл бұрын
what is the different between pytorch and pytorch lightning sir ?
@statquest
@statquest Жыл бұрын
PyTorch Lightning is something that works with PyTorch that makes it easier to code and makes it easier to scale in the cloud and makes your code run faster in genernal.
Coding a ChatGPT Like Transformer From Scratch in PyTorch
31:11
StatQuest with Josh Starmer
Рет қаралды 52 М.
Word Embedding and Word2Vec, Clearly Explained!!!
16:12
StatQuest with Josh Starmer
Рет қаралды 340 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 235 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3,2 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 8 МЛН
How to train a model to generate image embeddings from scratch
51:44
The StatQuest Introduction to PyTorch
23:22
StatQuest with Josh Starmer
Рет қаралды 161 М.
Лекция. Контестные эмбеддинги. Word2Vec.
29:12
Deep Learning School
Рет қаралды 16 М.
Introduction to Coding Neural Networks with PyTorch and Lightning
20:43
StatQuest with Josh Starmer
Рет қаралды 66 М.
Vectoring Words (Word Embeddings) - Computerphile
16:56
Computerphile
Рет қаралды 297 М.
Transformer Neural Networks, ChatGPT's foundation, Clearly Explained!!!
36:15
StatQuest with Josh Starmer
Рет қаралды 752 М.
Encoder-Only Transformers (like BERT), Clearly Explained!!!
18:52
StatQuest with Josh Starmer
Рет қаралды 10 М.
Watching Neural Networks Learn
25:28
Emergent Garden
Рет қаралды 1,3 МЛН
The Essential Main Ideas of Neural Networks
18:54
StatQuest with Josh Starmer
Рет қаралды 992 М.
A Complete Overview of Word Embeddings
17:17
AssemblyAI
Рет қаралды 113 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 235 МЛН