Create a Simple Neural Network in Python from Scratch

In this video I'll show you how an artificial neural network works, and how to make one yourself in Python. In the next video we'll make one that is usable, but if you want, that code can already be found on github. I recommend watching at 1.5x speed, unless you're coding along.
Coding starts at 2:30
Part 2: • Create a Simple Neural...
Github code for complete neural network: github.com/jonasbostoen/simpl...
Additional reading:
♦ / how-to-build-a-simple-...
♦ iamtrask.github.io/2015/07/12...

Пікірлер: 709

  • @JonasBostoen
    @JonasBostoen5 жыл бұрын

    In the next video we’re going to be making a blockchain in JavaScript, so subscribe if you’re interested in that stuff!

  • @SoumilShah

    @SoumilShah

    5 жыл бұрын

    great video so made everything so easy

  • @CrypticConsole

    @CrypticConsole

    5 жыл бұрын

    Dow stupid schools blocked pip and zip archives so I can't install numpy

  • @itstatanka

    @itstatanka

    5 жыл бұрын

    Which compilar did you use?

  • @siddhant5697

    @siddhant5697

    4 жыл бұрын

    in which software r u coding??

  • @frankynakamoto2308

    @frankynakamoto2308

    4 жыл бұрын

    Polycode Can the neurons and inputs be placed together, like neurons with much built in data?? Also I need a very powerful neural network for several different purposes, speech, faceID and math solving problems, do you have something that you made that is open source that you can share with me??

  • @johnc3403
    @johnc34034 жыл бұрын

    "stay with me, it's gonna be ok"... dude, that's such a lovely sentiment. You were born to teach I think, with that ability to keep pupils onboard. Very good video my man, thank you so much..

  • @hfe1833
    @hfe18335 жыл бұрын

    What the?....this is it, finally I found good tutorial

  • @Pancake3000

    @Pancake3000

    4 жыл бұрын

    same lol Ive finally can actually flippin understand thank much +1 sub i can english.

  • @scottpatterson9136

    @scottpatterson9136

    3 жыл бұрын

    I agree

  • @koksem

    @koksem

    3 жыл бұрын

    ye someone finally explains what it is XD

  • @mariomuysensual

    @mariomuysensual

    3 жыл бұрын

    same!

  • @mohamedsuhailirfankhazi6628
    @mohamedsuhailirfankhazi66283 жыл бұрын

    My friend, your explanation in 15 minutes gave more clarity to me than hours of crash course tutorials online. So simple and well explained. Awesome stuff my man!

  • @djjjo6130
    @djjjo61304 жыл бұрын

    “Stay with me, it’s gonna be okay” that makes me feel like I’m actually learning something and not just being told something

  • @MC_MrOreo

    @MC_MrOreo

    3 жыл бұрын

    (I know I’m late but) Literally came to the comment section about this 😂

  • @morphman86
    @morphman865 жыл бұрын

    After watching hyper-advanced tensorflow/keras stock market prediction tutorials for a while, being completely lost, I stumbled on this. I finally, after weeks of trying to learn NN and decades of practical programming experience, understand it. The iterative backpedaling was what confused me with all of those other videos, but taken down to its most simple form, like in this video, I can now see that it's merely looking at what it got, what it was trying to get and make adjustments to the appropriate synapses based on that, then trying again. It's not the maths that confused me, it's how the machine actually learned. And that was perfectly demonstrated in this video. Thank you!

  • @RandageJr

    @RandageJr

    4 жыл бұрын

    Do you know where I can find these tutorials? It would be very helpful for me, thanks!

  • @jacobokomo1880

    @jacobokomo1880

    4 жыл бұрын

    kindly feel free to share with us Who was the teacher who took you through the Previous Tutorials. However, This teacher is doing well. Credits 💪

  • @GovindKumar-bt2ne

    @GovindKumar-bt2ne

    4 жыл бұрын

    B

  • @morphman86

    @morphman86

    4 жыл бұрын

    @Isaiah _ Neural Network

  • @KennTollens

    @KennTollens

    4 жыл бұрын

    I agree too. So many videos complicate and dance around simple mechanics. Knowing the flow of the engine and the simple concept of what is happening, the other videos might make more sense now that I can put it into context.

  • @brehontechologies
    @brehontechologies5 жыл бұрын

    Finally, a clear, straightforward tutorial to code along. GREAT JOB!

  • @arifmeighan3162
    @arifmeighan31623 жыл бұрын

    This tutorial is a perfect blend of talking/programming and slides. Its also quick and to the point 8)

  • @paulschmidt8742
    @paulschmidt87425 жыл бұрын

    Bro, it was much easier then I thought. Thx for explaining.

  • @mattisaderp8929
    @mattisaderp89294 жыл бұрын

    "stay with me it's gonna be okay"

  • @wirly-

    @wirly-

    3 жыл бұрын

    TypeError: '

  • @henil0604

    @henil0604

    3 жыл бұрын

    @@wirly- Loll

  • @chinmayhattewar4456

    @chinmayhattewar4456

    3 жыл бұрын

    @@wirly- hahaha

  • @robertdraxel7175
    @robertdraxel71755 жыл бұрын

    Most useful video on the internet for a total beginner, for anyone new to AI. Thanks.

  • @joesminis
    @joesminis5 жыл бұрын

    At the 10 minute mark and I just wanted to say that your explanations are clicking left and right with me thank you!!!!

  • @calmo15
    @calmo154 жыл бұрын

    Amazing video, too few sources do the absolute basics. however, can you please crank your volume up!

  • @abdechafineji8782
    @abdechafineji87824 жыл бұрын

    The best one who can give you the right explanation of creating of a neural network from scratch.

  • @Oleg-kk6xv
    @Oleg-kk6xv4 жыл бұрын

    Thank you very much. I constantly see these videos about the theory of Machine Learning and AI but I have never found an in-depth start from scratch tutorial with mo libraries, all while explaining everything. Thank you!

  • @Awesomer5696
    @Awesomer56964 жыл бұрын

    What a fantastic way of explaining it. Whilst this is obviously not immediately useful, It's a sort of toy approach that gives you a building block to understand the greater scope.

  • @aaronisinjapan
    @aaronisinjapan4 жыл бұрын

    Wow, I’ve been looking for a tutorial just like this for a long time! Subscribed! Please keep making videos!!

  • @chessprogramming591
    @chessprogramming5913 жыл бұрын

    Man, this was so to the point! Thanks for your efforts. Best NN basics tutorial I've found so far! Very very useful!

  • @MsRAJDIP
    @MsRAJDIP5 жыл бұрын

    So far the best simplest and practical tutorial I got. U cleared all my doubt and little background in python helped me lot.

  • @hdluktv3593
    @hdluktv35934 жыл бұрын

    I watched a lot of videos about Machine Learning because I wanted to unterstand how that works. Non of these Videos explained so good like yours how a neuron and the adjustment actually works. Good work, now I finally understood it.

  • @deanresin4804
    @deanresin48045 жыл бұрын

    This was a such a great tutorial. Very clear, concise and well paced.

  • @coleboothman1158
    @coleboothman11585 жыл бұрын

    Hey dude just saw this video from your post on /r/programming - This video is awesome! You're great at explaining everything. Neural nets can sometimes be confusing but this makes a lot of sense to me. Thanks so much!!

  • @timothec.8216
    @timothec.82165 жыл бұрын

    Thanks a lot. This is much more comprehensible than all I have watched and read

  • @StreetArtist360
    @StreetArtist3603 жыл бұрын

    Simple, Clear and straight to the point. Great Job!!!

  • @progmaster15
    @progmaster154 жыл бұрын

    Dude this video was really helpful! Thank you for explaining the basics of neural networks! :D

  • @sreedeepsreedeep2260
    @sreedeepsreedeep22605 жыл бұрын

    Best tutorial on neural networks i have seen till now....thanks buddy😘

  • @ankitds1369
    @ankitds13694 жыл бұрын

    in output after training : you can use this, and this will round off the decimal as a round off value - print(np.round(outputs,1))

  • @REVscape95
    @REVscape955 жыл бұрын

    waiting for the next video, this type of explanation really helps

  • @JonasBostoen

    @JonasBostoen

    5 жыл бұрын

    I've uploaded it!

  • @stevesajeev6477
    @stevesajeev64773 жыл бұрын

    Wow... The perfect tutorial.. I have been searching in the internet for a tutorial on how to make neural networks from scratch . now I got it.. this is soo cool... Very detail explanation...

  • @notyourtypicalanime7475
    @notyourtypicalanime74752 жыл бұрын

    This is what I'm looking for, on how to train your datasets by adjusting weights. Thank you so much!

  • @k.chriscaldwell4141
    @k.chriscaldwell41414 жыл бұрын

    Superb! Using the seeded weights so that you and the viewer get the same results was a brilliant touch. Helps the viewer know if he miscoded or not. Thanks.

  • @Pancake3000
    @Pancake30004 жыл бұрын

    This is the thing that finally helped me understand! Never stop doing the grade vids!

  • @povmaster235
    @povmaster2353 жыл бұрын

    At last... the video that doesn't just explain stuff but, but actually tells you what to do too!

  • @rahulaga
    @rahulaga Жыл бұрын

    This is by far the best explanation. I guess by keeping the complexity level of chosen example pretty low, you landed the message perfectly, thanks !!

  • @botancitil92
    @botancitil922 жыл бұрын

    I have been looking for a toy example of Neural Networks, thanks to your video I get to see one. Your video is very concise. Thank you. Also, thank you for sharing your Python code.

  • @volador2828
    @volador28283 жыл бұрын

    Nice work! Finally found someone that can teach the way I can understand it.. I subscribed and look forward to watching all your videos!

  • @harlongbitimung4108
    @harlongbitimung41084 жыл бұрын

    This video has taught me more than anything about ANN.

  • @Rekefa
    @Rekefa5 жыл бұрын

    What a great video! Keep up with the good work, thanks for sharing your knowledge

  • @this-is-bioman
    @this-is-bioman5 жыл бұрын

    Holy cow! I love this video!

  • @JonasBostoen
    @JonasBostoen6 жыл бұрын

    Coding starts at 2:30

  • @ChillGuyYoutube

    @ChillGuyYoutube

    3 жыл бұрын

    Polycode ping your comment so others will see it!

  • @du42bz

    @du42bz

    3 жыл бұрын

    @@ChillGuyKZread maybe his firewall blocks icmp packets

  • @rr.studios

    @rr.studios

    3 жыл бұрын

    @@du42bz I read that as "pimp packets"

  • @ciencialmente9969
    @ciencialmente99694 жыл бұрын

    1:39 "so we need a little meth"

  • @Loading-tr7yv

    @Loading-tr7yv

    4 жыл бұрын

    I think we all do

  • @astrainvictum9638

    @astrainvictum9638

    3 жыл бұрын

    Adderall is good for that

  • @deekshithtirumala6474

    @deekshithtirumala6474

    3 жыл бұрын

    It's math LoL 😛

  • @shimuk8
    @shimuk85 жыл бұрын

    I joined my university 2 months late, absolutely had no idea how to learn the lost neural network project topic and then I saw your video !!! Thanks a lot dude !!! For saving my semester HAHAHA

  • @JonasBostoen

    @JonasBostoen

    5 жыл бұрын

    meaaaww hahaha nice, share it to any of your buddies if you think they need it ;-)

  • @shimuk8

    @shimuk8

    5 жыл бұрын

    @@JonasBostoen Oh yes already did that,,, right now you have blessings of many helpless students LOL

  • @elephant1989811
    @elephant19898114 жыл бұрын

    what a excellent explanation of complex subject! Please keep up the videos.

  • @chandlerlabs2478
    @chandlerlabs24782 жыл бұрын

    Completely new to this and you made it very easy to understand. Thank you and good job!

  • @tomroggen7469
    @tomroggen74696 жыл бұрын

    Love your vids dude! Keep it up! ;)

  • @KonradGebura
    @KonradGebura4 жыл бұрын

    Thanks this was so helpful it really cleared up a lot of my questions about the topics other videos said let’s not talk about that yet..., thanks again these videos are super helpful keep up the amazing work

  • @akmaleache4735
    @akmaleache47355 жыл бұрын

    I watched lot of Ann videos on KZread, and all of them missing something which I am not getting But thanks to you I got what I need. Especially explaining the working. Thank u again

  • @JonasBostoen

    @JonasBostoen

    5 жыл бұрын

    Akmal Eache thanks man

  • @title601a
    @title601a5 жыл бұрын

    NICE!!!!! Finally, I can understand what is NN and backpropagation. Simple and Easy to understand. Thank a lot to Polycode :)

  • @novi0
    @novi010 ай бұрын

    2 minutes in and I already have a better understanding than 2 semesters worth of lectures

  • @madanvishal1
    @madanvishal14 жыл бұрын

    Excellent Explanation making things crisp and clear

  • @charlesgrinstead580
    @charlesgrinstead5804 жыл бұрын

    Very clear and well explained. Thank you!

  • @jeffwads
    @jeffwads4 жыл бұрын

    It helps to have someone who actually knows how to break a "problem" down to its bare essentials. Excellent work.

  • @GabrielCarvv

    @GabrielCarvv

    4 жыл бұрын

    Excellent picture

  • @imdadood5705
    @imdadood57053 жыл бұрын

    Dude!!! This is enlightening! Thanks

  • @SureshSingh-en5uj
    @SureshSingh-en5uj4 жыл бұрын

    FINALLY!!.... I have been looking for such tutorial which teaches from scratch... That's Very good of you to do so... Keep it up bro.. Make more videos like this... BTW I am new to your channel. Just subscribed

  • @dridihamza7157
    @dridihamza71574 жыл бұрын

    this is on of the best yet simple explanation. keep up

  • @landaravi
    @landaravi4 жыл бұрын

    This is the tutorial actually I'm searching for understanding of Neural network... Thanks a lot...

  • @4Dtechcurious
    @4Dtechcurious Жыл бұрын

    This is Informative, love it!

  • @travisjoldersma966
    @travisjoldersma966 Жыл бұрын

    Finally a video I can understand! Thank you

  • @warrenkuah4314
    @warrenkuah43143 жыл бұрын

    Incredible! I think this is the first video that has helped me understand the formulas behind a neural network! However, I was wondering how you implement the calculation of biases into the actual code and Backpropagation steps and formula?

  • @aizej9896
    @aizej98964 жыл бұрын

    thx for the totorial gived the neural network my own training data and it worked geat!

  • @twittuks
    @twittuks4 жыл бұрын

    Amazing tutorial, keep up the good work

  • @SuryaPrakashVIT
    @SuryaPrakashVIT4 жыл бұрын

    Wonder full video, this will definitely turn upside down of my project. Thank You so much!!! :)

  • @atibyte
    @atibyte4 жыл бұрын

    Nice and simple explanation, thank you!

  • @prasanjitrath281
    @prasanjitrath2814 жыл бұрын

    Your video is a life saver, thanks! Hope you make more such videos!

  • @quasistarsupernova
    @quasistarsupernova Жыл бұрын

    One of the best coding videos!

  • @TechnoBotic
    @TechnoBotic3 жыл бұрын

    Great Stuff, Keep it up !!

  • @marco.nascimento
    @marco.nascimento5 жыл бұрын

    Very nice!! Consise but well explained, good work.

  • @gabrilrh
    @gabrilrh5 жыл бұрын

    i need more, thats awesome

  • @chriswritt8268
    @chriswritt82685 жыл бұрын

    Great explanations! Keep it up!

  • @reddinghiphop1
    @reddinghiphop13 жыл бұрын

    This video is 100% gold, thank you !

  • @ice13ill
    @ice13ill2 жыл бұрын

    Very well explained!

  • @samayvarjangbhay8987
    @samayvarjangbhay89875 жыл бұрын

    finally a properly structured tutorial

  • @0siiris

    @0siiris

    5 жыл бұрын

    Nice profile pic 😂

  • @yabool2001
    @yabool2001 Жыл бұрын

    Wow! That's really awsome!

  • @alslaboratory570
    @alslaboratory5704 жыл бұрын

    Thanks so much! After days of looking, found a great tutorial and can expand my knowledge!!!

  • @alslaboratory570

    @alslaboratory570

    Жыл бұрын

    bruh

  • @Democracy_Manifest
    @Democracy_Manifest Жыл бұрын

    This video deserves an award

  • @TheThiagosp1
    @TheThiagosp15 жыл бұрын

    Amazing video! very well explained. Congratulations

  • @chrispap5496
    @chrispap54964 жыл бұрын

    Thanks for this awesome tutorial!

  • @critterpower
    @critterpower4 жыл бұрын

    Great tutorial, better than the usual,"Just use this library...."

  • @andrestation6754
    @andrestation67543 жыл бұрын

    Thanks for explaining .. Nice job!

  • @nooraalameri6938
    @nooraalameri69383 жыл бұрын

    Excellent explanation!!!!!! Thank you very much

  • @louiebostoen6663
    @louiebostoen66636 жыл бұрын

    Very helpful, subscribed!

  • @vamsisanapathi7420
    @vamsisanapathi74204 жыл бұрын

    This tutorial is fantastic.

  • @diljithpk1615
    @diljithpk16152 жыл бұрын

    Nice presentation. Made it feel very simple

  • @tommygun296
    @tommygun2963 жыл бұрын

    Very clean! VERY NICE! 🙏😍 Great Video! 😊😊😊 thank you

  • @newdawn8691
    @newdawn86914 жыл бұрын

    Great Job, Very well explained.

  • @ujjwalchetan4907
    @ujjwalchetan49072 жыл бұрын

    Good explanation. Valuable content.

  • @laurentiubistrian6372
    @laurentiubistrian63725 жыл бұрын

    thanks for the detailed explanation!

  • @fossared
    @fossared3 жыл бұрын

    Thank you for this wonderful video :) !

  • @jefersonferri
    @jefersonferri2 жыл бұрын

    You did a great job, you should make more videos. May be explaining how to make a more complex neural network.

  • @nocopyrightgameplaystockvi231
    @nocopyrightgameplaystockvi2313 жыл бұрын

    Line no 16 : synaptic_weights=2 * np.random.random((3,1))-1 this line makes an array of 3X1 or a matrix of size 3X1. I did not understand this line before I tried this line separately. This makes an easy grasp of the random concept, but as I learned in Soft Computing in my Btech, you can directly initialize the weights as 1, which will then get adjusted during training. you can also replace the line with it : synaptic weights=np.array([[1,1,1]]).T THANKS TO YOU for making this short and easy tutorial!

  • @Retriiiii

    @Retriiiii

    4 ай бұрын

    Hey can you tell me why are we multiplying 2 and subtracting 1?

  • @nocopyrightgameplaystockvi231

    @nocopyrightgameplaystockvi231

    4 ай бұрын

    ​@@Retriiiiiwhere??

  • @Retriiiii

    @Retriiiii

    4 ай бұрын

    @@nocopyrightgameplaystockvi231 2 * np.random.random((3,1)) -1 ^ ^

  • @mirosaide8786
    @mirosaide87864 жыл бұрын

    Well explained. Congrats.

  • @anilsarode6164
    @anilsarode61645 жыл бұрын

    Thanks a lot .....love the way you made the video

  • @sikegotcha5452
    @sikegotcha54523 жыл бұрын

    Thanks so much for this video, it helps me so much!

  • @piriyaie
    @piriyaie Жыл бұрын

    Hi Sir! Such a awesome video! Thank you very much for that!!!

  • @Adam-ze3pr
    @Adam-ze3pr2 жыл бұрын

    Hai, thank you, this is very easy to catch for newbie like me. Simple and clear. Keep going 👍

  • @alidakhil3554
    @alidakhil35544 жыл бұрын

    That is best empirical lesson on basic NN

  • @cking9145
    @cking91454 жыл бұрын

    You are my hero! My prof is so bad explaning exact the same things over I guess 4 or 5 lesson of 3 hours each. And you just need some minutes ... haha I subscirbed you immediately. I need more of it!

  • @SoulEaterZika
    @SoulEaterZika4 жыл бұрын

    Thank you so much. This tutorial is direct, clear and instructive. 1 more inscribed.

  • @shohelmojumder2329
    @shohelmojumder23294 жыл бұрын

    such a great way to teach beginners

  • @et118
    @et1184 жыл бұрын

    Yes!!! Finally found a good tutorial!!!