10.6: Neural Networks: Matrix Math Part 1 - The Nature of Code

  Рет қаралды 137,675

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 108
@monkeyrobotsinc.9875
@monkeyrobotsinc.9875 10 ай бұрын
4:50 i love your skewed perspective projection onto the board as you write further from yourself. 🤣
@avenger123321
@avenger123321 7 жыл бұрын
I like the fact that you don't emphasize optimality initially. I recently took an algorithms course and one of the main key points my professor used to stress upon was that when you start out writing an algorithm, the primary objective is to ensure that it is 'Correct' even if it's slow in it's naive implementation. Only when we can convince ourselves (and others) that it behaves correctly for required inputs, we can move forward to optimizing it if need be. Good content as always Dan :)
@codethings271
@codethings271 7 жыл бұрын
ur best teacher in the world
@doxo9597
@doxo9597 4 жыл бұрын
He’s really not
@xgerbil3586
@xgerbil3586 6 жыл бұрын
you just cleared up 2 semesters of physics for me in like 30 seconds..
@lafeo0077
@lafeo0077 6 жыл бұрын
Gosh I am in love with your way of teaching. Sooo energetic and confident in your work it gives you the sense of security in learning.
@5widespread
@5widespread 7 жыл бұрын
Absolutely love Daniel's style!!!! New favorite KZbin Channel!!!!
@przemekbary
@przemekbary 3 жыл бұрын
By far the best course for beginners. Great job!
@jonjonsantos821
@jonjonsantos821 7 жыл бұрын
hi,i am a struggling java programmer that forgot how to program,and seeing your video somehow give a push to start writing code again.LIKE THE PERSONALITY,Thanks.
@apppples
@apppples 7 жыл бұрын
Linear algebra is the best math. The most fun and the most intuitive.
@Ab-cj6gl
@Ab-cj6gl 3 жыл бұрын
i just started JS 2 days and i was trying to do this on my own 😂😂 i made great progress with arrays and loops and a lot of functions lol but i can see your approach is 10000% better
@DantevanGemert
@DantevanGemert 7 жыл бұрын
Not only pixels live in a matrix: We *all* live in it
@ramseshendriks2445
@ramseshendriks2445 6 жыл бұрын
Hello from the netherlands
@kadblue2000
@kadblue2000 5 жыл бұрын
Not really cos we don't know if all fundamental elements are cubic packing
@arturogoleman5221
@arturogoleman5221 4 жыл бұрын
This is glorious, I been tryin to find out about "secret energy coupon code" for a while now, and I think this has helped. Have you heard people talk about - Bannrial Bizarre Bulldozer - (should be on google have a look ) ? It is a smashing one of a kind guide for discovering your spiritual animal and the clues it has to your future success without the hard work. Ive heard some great things about it and my mate got amazing success with it.
@matke8723
@matke8723 7 жыл бұрын
Lol, i was actually following along and understood everything even if i started learning js a week ago. Watching your videos gives me confidence i can become a good programmer one day. But I'm too hasty. It'll take years for me to learn.
@Lukas-sc6mt
@Lukas-sc6mt 7 жыл бұрын
3:22 isn't it a 6 dimensional vector? Because your index starts at 0 and x and y is 2 dimensional
@SLaYeRDutch
@SLaYeRDutch 7 жыл бұрын
yes
@furrane
@furrane 7 жыл бұрын
Yes indeed, basically, for vectors : number of numbers = number of dimensions
@iminni3459
@iminni3459 7 жыл бұрын
yep
@syedbaryalay5849
@syedbaryalay5849 6 жыл бұрын
yep, any one would realise that, and btw he is a human
@morphman86
@morphman86 5 жыл бұрын
You can see it as each entry in a vector being a dimension. We use it in graphics a lot. A vector of X and Y would give us coordinates on a plane, so it is 2 dimensions. A vector of D and V gives us a direction and a velocity and in linear algebra, that is also 2 dimensions. When talking about coding arrays, you usually say that each nested array would be a dimension. In that sense, the matrix of Row rows, filled with Col arrays would be a 2-dimensional array, but it's actually n number of n-dimensional vectors.
@ColdBlueLight
@ColdBlueLight 7 жыл бұрын
i am doing the same thing but in python and man its been a ride. thanks for giving me some more info on how all this works!
@mgfos207
@mgfos207 7 жыл бұрын
you are the coolest guy on youtube bro!
@mandeepthebest
@mandeepthebest 6 жыл бұрын
You are a god among the teachers.
@drksydedj
@drksydedj 6 жыл бұрын
dude... you are the best ever!
@paega86
@paega86 7 жыл бұрын
Even if you movements and hand postures makes me picture you as a ostrich, this was by far one of the most informative and interesting videos I have come across in a long while, hat off and thanks!
@linsus
@linsus 5 жыл бұрын
⎛ n ⎞ n! ⎜ ⎟ = ------------- ⎝ k ⎠ k!(n-k)! 3:30 The round bracket notation is oftenly used for displaying binomial coefficients. Further information can be found at the Wikepedia page: en.wikipedia.org/wiki/Binomial_coefficient
@monkeyrobotsinc.9875
@monkeyrobotsinc.9875 10 ай бұрын
5:45 HAHAHAHAH you can literally see how your brain is projecting from your view onto the board as you write. even up to the top right corner. actual invisible lines lol.
@furrane
@furrane 7 жыл бұрын
Hey Daniel, a quick suggestion in case you havn't recorded the rest of this matrix series : why not create a way to "print" the matrix ? This might be more convenient than having to do what you do now. Also, as a side note, Matrix addition as you define it (matrix + scalar) is kind of a no-no. It works but the correct way is matrix+matrix.
@davidecologni2851
@davidecologni2851 7 жыл бұрын
I think console.table method is better than create another function 😉
@furrane
@furrane 7 жыл бұрын
Sure, I don't know enough of JS to know the best way to do so, but surely there is already something to build on. I know in python I would overwrite the __str__() function so I can print any class. So in any case I think it would be a nice quick tip for jS users to know how to do this cleanly =)
@davidecologni2851
@davidecologni2851 7 жыл бұрын
Furrane browser console are more dynamic than normal computer console ... in this case browser's console letteraly draw simple table
@akritskiy
@akritskiy 7 жыл бұрын
Hey, I'm really enjoying this series. Thanks! :)
@rastcheck6037
@rastcheck6037 6 жыл бұрын
Great explanation!! How to implement this in Processing? I got a lil lost since this playlist is a mix of Processing and Javascript :)
@vimalsheoran8040
@vimalsheoran8040 4 жыл бұрын
You can use the same ideas and implement the code in Java. Maybe Dan already as uploaded a processing version of it.
@ariebrons7976
@ariebrons7976 7 жыл бұрын
dear mr Shiffman, thank you for the years of inspiring content. your easy tutorials have led to quite a lot of homebrewed code. now if one might want to share his or hers creation with his or her friends how does one do that? in short: how does one make a p5.js executable? thanks in advance have a nice day arie brons
@jellohunter7981
@jellohunter7981 5 жыл бұрын
You can’t make it into an eye but maybe run it in an html file. (Everyone can run an html file in browser)
@aprilmintacpineda2713
@aprilmintacpineda2713 6 жыл бұрын
I subscribed! Great explanation!
@sanchitverma2892
@sanchitverma2892 5 жыл бұрын
april fool
@tester2619
@tester2619 7 жыл бұрын
u very talented sir
@antonioc760
@antonioc760 6 жыл бұрын
Dan which set of tutorials should I follow prior to this in order to instal the Javascript editor you use here (atom?) ?
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
This is my current workflow! (uses vscode instead of Atom but it's the same) kzbin.info/www/bejne/nXvEZ6qonp2MhLM (Full playlist: kzbin.info/aero/PLRqwX-V7Uu6Zu_uqEA6NqhLzKLACwU74X)
@MrBittu92
@MrBittu92 7 жыл бұрын
awesome u deserve a hell lot of views
@aniekanumoren6088
@aniekanumoren6088 7 жыл бұрын
is there a matrix math library built in for processing? or do i have to download an external library
@navjotsingh2251
@navjotsingh2251 5 жыл бұрын
Matrices can easily be created using arrays. Thats how i implement them. Though, you need to be comfortable with arrays and loops to do it.
@CrepeKemado
@CrepeKemado 7 жыл бұрын
Hey Daniel! Why is this video not listed?
@bastifmbh
@bastifmbh 7 жыл бұрын
can someone direct me to the sourcecode on github please? can't find it there and mine isn't working...
@xrayer4412
@xrayer4412 5 жыл бұрын
what are the cloudflare as the link in the script code? why are your console somewhere else? im so confuesed sence you switched from procesing
@ridilatrois7991
@ridilatrois7991 6 жыл бұрын
is "new Array(rows).fill(new Array(cols).fill(0));" good?
@emmereffing
@emmereffing 7 жыл бұрын
following along in python!
@sadhlife
@sadhlife 7 жыл бұрын
3:20 6 dimentional*
@Dalendrion
@Dalendrion 7 жыл бұрын
May I just mention that the word is "dimension"? (Oh hey, I rhymed.) But yes, it is indeed 6-dimensional.
@wyrIwind
@wyrIwind 7 жыл бұрын
You can't use dot product with two matrices if the number of columns of the first matrix does not match the number of rows of the second one. Nice video though!
@pratyush2690
@pratyush2690 5 жыл бұрын
Is linear algebra sufficient for neural network
@panjersonten7610
@panjersonten7610 6 жыл бұрын
need lesson for training input and training output for predicting next close price of stock price
@ranjithkumarpranjithkumar
@ranjithkumarpranjithkumar 7 жыл бұрын
can you share Invitation link for Live watch
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
If you subscribe to the channel and click the "alarm bell" you'll get notifications.
@samuelmutuswa9708
@samuelmutuswa9708 5 жыл бұрын
thanks so much
@RenkoGSL
@RenkoGSL Жыл бұрын
Gilbert Strange has free Linear Algebra on KZbin... and he literally wrote the book!!! lol :D He recently retired I believe
@pimborrastelo8249
@pimborrastelo8249 7 жыл бұрын
Pot product.
@rusifbudaqov2712
@rusifbudaqov2712 6 жыл бұрын
can you expalin with java?
@createrkid
@createrkid 5 жыл бұрын
why not just create a 2d Array or is there some reason???
@cameronnichols9905
@cameronnichols9905 4 жыл бұрын
The reason is so we can define what happens when performing different operations. If you try to multiply a 2d array by a 2d array, you won't get the same result if you multiply 2 matrices together
@gamerslive2067
@gamerslive2067 7 жыл бұрын
which programing language you are using
@aryparamartha9140
@aryparamartha9140 7 жыл бұрын
lol lois java script
@gamerslive2067
@gamerslive2067 7 жыл бұрын
thanks dear
@Anakkomputer
@Anakkomputer 7 жыл бұрын
NICE VIDEO
@NardiPaffon
@NardiPaffon 5 жыл бұрын
No fricking way you're in your 40's. No. Way. I honestly thought you're younger than me, and I'm 29.
@eccentriccode3158
@eccentriccode3158 6 жыл бұрын
Could somebody please eplain why he uses prototype instead of creating normal functions?
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
This video will help: kzbin.info/www/bejne/noTCiKShrrqUnpo However, if you keep watching the videos you'll see I refactor the code to use ES6 classes soon enough.
@heatwave2379
@heatwave2379 7 жыл бұрын
Vector what is it I get confused
@iminni3459
@iminni3459 7 жыл бұрын
Something which has an x and y (and maybe a z etc.) such as a co-ordinate (a location) or a velocity (how fast something is going in a certain direction).
@andobando4873
@andobando4873 7 жыл бұрын
New Vake essentially an n dimensional vector is just an n by 1 matrix.
@jonatanlaksamana462
@jonatanlaksamana462 5 жыл бұрын
Well just imagine 1 dimensional matrix
@fanpow
@fanpow 7 жыл бұрын
what is that console used on port 8000???
@DantevanGemert
@DantevanGemert 7 жыл бұрын
Do you mean the chrome devTools? press f12 or ctrl+shift+i
@fanpow
@fanpow 7 жыл бұрын
Yes, I've found the answer to my question here: kzbin.info/www/bejne/i3Srq5-Lnql3Z5I
@siux94
@siux94 7 жыл бұрын
Its more like coding pain than coding train
@PatrykUnderhill
@PatrykUnderhill 6 жыл бұрын
xD
@edvandossantossousa455
@edvandossantossousa455 3 жыл бұрын
que vídeo legal.
@sanchitverma2892
@sanchitverma2892 5 жыл бұрын
my heart racing idk why maybe cause i wanted to learn neural networks for a loooong time
@santiagocalvo
@santiagocalvo 3 жыл бұрын
I just gave this video a like, it's on 1984 likes, i guess george orwll would aprobe haha
@kswof97
@kswof97 7 жыл бұрын
>_> Lets do it >_>
@Amrhossam96
@Amrhossam96 7 жыл бұрын
what is neural network applications
@furrane
@furrane 7 жыл бұрын
Applications are litterally limitless. From identifying spam emails to finding new patterns in symptomes/diseases in medical research, to an autonomous stock trader making millions.
@TheRayll
@TheRayll 7 жыл бұрын
Hi! are you good now?
@fasligand7034
@fasligand7034 6 жыл бұрын
Dan Shiffman is my waifu
@WistrelChianti
@WistrelChianti 2 жыл бұрын
prototype? That's a new one...
@alahjandrodagrate1611
@alahjandrodagrate1611 4 жыл бұрын
Thank you so much, I hate learning parts of math that I don't actually use or need.
@muhammadsaqlainishtiaq4467
@muhammadsaqlainishtiaq4467 6 жыл бұрын
These Are Matrices not vectors Dan.
@zackmercurys
@zackmercurys 7 жыл бұрын
That hole in your laptop screen. c:
@AbdulHadi-hs1uf
@AbdulHadi-hs1uf 7 жыл бұрын
I dont understand
@iminni3459
@iminni3459 7 жыл бұрын
ermm... Maybe try something a bit simpler first.
@sohailape
@sohailape 6 жыл бұрын
it's basic high school math???
@ker-balkanrider
@ker-balkanrider 7 жыл бұрын
In my experience, linear algebra is one of the most fucked up things you can subjet your brain to
@codytremblay8986
@codytremblay8986 6 жыл бұрын
You don't look old enough to be in school 20 something years ago.
10.7: Neural Networks: Matrix Math Part 2 - The Nature of Code
13:37
The Coding Train
Рет қаралды 83 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 61 МЛН
10.2: Neural Networks: Perceptron Part 1 - The Nature of Code
44:39
The Coding Train
Рет қаралды 504 М.
I Made an Electronic Chessboard Without Turns
14:32
From Scratch
Рет қаралды 1 МЛН
10.11: Neural Networks: Matrix Class Improvements - The Nature of Code
21:40
How to Create a Neural Network (and Train it to Identify Doodles)
54:51
Sebastian Lague
Рет қаралды 1,9 МЛН
Coding Challenge 171: Wave Function Collapse
1:18:37
The Coding Train
Рет қаралды 558 М.
Can Water Recognise Numbers? | KNN Digit Recogniser
5:36
PickentCode
Рет қаралды 37 М.
How (and why) to raise e to the power of a matrix | DE6
27:07
3Blue1Brown
Рет қаралды 2,9 МЛН
The deeper meaning of matrix transpose
25:41
Mathemaniac
Рет қаралды 394 М.