AI Learns the Numbers

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 28. 06. 2024
  • 💚 Link to Code: / greencode
    I decided to explore Pytorch and machine learning by teaching an AI the numbers. I used CNNs, neural nets, and even some complex networks (like AlexNet) to help the AI recognize the numbers. Hope you enjoy the video!
    📖 Awesome Coding Tutorials/Explainers:
    Daniel Bourke: ‱ Learn PyTorch for deep...
    â€Ș@mrdbourke‬ (this man taught me everything I know about pytorch)
    Backpropagation:
    ‱ What is backpropagatio...
    ‱ Back Propagation in Ne...
    Convolutional Neural Networks:
    ‱ CNN: Convolutional Neu...
    ⭐ Other Social Media Links:
    🔊 Discord: / discord
    🐩 Twitter: / thegreencoding
    📾 Instagram: / greencodecodes
    đŸŽ” Tiktok: / greencodecodes
    ✹ Subscriber count: 38 subscribers.
  • Věda a technologie

Komentáƙe • 275

  • @Green-Code
    @Green-Code  Pƙed rokem +20

    Thank you so much for watchingâ˜ș! Make sure to check out the fundraiser💚: gofundme.com/raising-10000-for-diabetes-by-the-end-of-2022

    • @millionare5446
      @millionare5446 Pƙed rokem +2

      2022 already ended

    • @TurkeyTerrorizer
      @TurkeyTerrorizer Pƙed rokem

      @@millionare5446 NAAAAAH REALLY

    • @kpopandkdramalovers7740
      @kpopandkdramalovers7740 Pƙed rokem +1

      Diabete

    • @Wonders_of_Reality
      @Wonders_of_Reality Pƙed rokem

      I like your presentation, wit and pacing. But black backgrounds and white text is just killing my eyes. I do realise that the majority of artists like black environment. Just wanted to point out that a minority exists as well. It would be great if all the software would be switchable to a light mode for accessability reasons.

  • @aydink7739
    @aydink7739 Pƙed rokem +95

    Keep it going. Your production quality and also kind of self ironic style is fantastic.

    • @Green-Code
      @Green-Code  Pƙed rokem +2

      Thank you so much! :)

    • @DanksterPaws
      @DanksterPaws Pƙed rokem +4

      His style reminds me of codebullet, I actually was a little confused because I clicked on this video subconsciously and I thought it was him for about the first quarter of the video.

    • @thirddrone
      @thirddrone Pƙed rokem

      @@DanksterPaws def codebullet inspirrd

    • @thisiso0_tron_0o41
      @thisiso0_tron_0o41 Pƙed rokem +2

      Yeh feels like style has been stolen from code bullet. Still huge effort making this kind of videos

  • @Jason_vinion
    @Jason_vinion Pƙed rokem +7

    Also thank you so much for linking the code that’s awesome!!! And very very appreciated!

  • @brianwu3566
    @brianwu3566 Pƙed rokem +19

    Honestly I think you can go above an beyond with res nets similar to resnet50 or alpha zero's net arch and then add a multilayered perception, it helps a lot with when compared to a fully connected layer(Alexnet). Truthfully speaking, just throwing more layers and neurons increases the accuracy, but also increases the chances of overfitting.

  • @marklondon9004
    @marklondon9004 Pƙed rokem +1

    Great stuff! Looking forward to seeing the rest of your work

  • @zbyszekradzimi4066
    @zbyszekradzimi4066 Pƙed rokem +6

    The production quality on this is insane. When i clicked i thought it was 596 k subscribers not 596. Then i saw that when you made this u had 38. THATS CRAZYYYYYY. Subscribed and im probably gonna bingewatch your videos now. Your style reminds me of code bullets.

  • @therealmstoltz7032
    @therealmstoltz7032 Pƙed rokem +7

    Awesome video! I did a 1st year engineering project that looked at different solutions to MNIST, our most accurate model was very similar to Alexnet but with some parameter / layer changes that let it get up to 99.7%. However, there are much less complex models that can reach the 99% mark.

  • @NathanHedglin
    @NathanHedglin Pƙed rokem +4

    Absolutely amazing video. Great presentation style. Quality is above 99% 😊

  • @saud9947
    @saud9947 Pƙed rokem +1

    WTF! I just saw you only have 100 subs?! With this quality you deserve more. You have my sub.

  • @saikhrisat1624
    @saikhrisat1624 Pƙed rokem +1

    This is the first video of yours that was recommended to me on CZcams, and it was the best thing that happened to me today. Keep it up, bro. I enjoy your videos, but don't forget when you have more than 1 million subscribers đŸ‘»

    • @Green-Code
      @Green-Code  Pƙed rokem

      Wow thank you dude. I won't forget :)

  • @Eren_Yeager_is_the_GOAT
    @Eren_Yeager_is_the_GOAT Pƙed rokem +46

    This deserves waaaaay more likes and views
    EDIT: wow already 256k views and 7k likes did not expect that in such a short amount of time

  • @_sahildahat_
    @_sahildahat_ Pƙed rokem

    Great video! Learned something new and would love to learn more!! Thank you!

  • @Shannooty
    @Shannooty Pƙed rokem +1

    Been playing with mnist lately too, cool to see your results. Looking forward to more vids :)

    • @Green-Code
      @Green-Code  Pƙed rokem

      Oh, that's so cool. Pytorch or Tensorflow?

  • @nithish.s8681
    @nithish.s8681 Pƙed rokem

    good job dude, you are keeping it straight forward

  • @GigantTech
    @GigantTech Pƙed rokem

    thank you very much for giving the code out to everyone

  • @juaan_
    @juaan_ Pƙed rokem +8

    Hey, first i wanna say I really like the style of the vid and its cool to be here when the channel is still small. Can I ask how did u learn to code, and how long have you been at it for?

    • @Green-Code
      @Green-Code  Pƙed rokem +1

      Thank you so much! :D
      I started learning to code I think maybe 8 years ago. I mostly just watched tutorial videos and I built little projects.
      I'm still not great at it lol, but I have been slowly improving.

    • @Spindely
      @Spindely Pƙed rokem

      @@Green-Code can you give some ideas of what to do in python? I wanna learn to use it but iam not sure what to do with it

  • @Covalact
    @Covalact Pƙed rokem

    i just want to have a comment on your channel from the start of your journey to 100k , good luck you got it with an awesome content

  • @asrar4907
    @asrar4907 Pƙed rokem +1

    Yo boi, dont you stop uploading these type of videos, you will one day reach a high feat, and 10k by the end of 2023 i wish i could donate but i dont have anything one me rn, keep going g

  • @theuser810
    @theuser810 Pƙed rokem +1

    I have also had the pleasure of completing the CNN course on Kaggle,
    This video came at a great time, also best of luck with your channel!

    • @Green-Code
      @Green-Code  Pƙed rokem

      Thank you so much! I don't really know what course that is, but I hope it was interesting :)

  • @CrushedAsian255
    @CrushedAsian255 Pƙed rokem +1

    This is such a well made video! You deserve way more subscribers. Keep it up!â€đŸŽ‰đŸ˜Š

    • @Green-Code
      @Green-Code  Pƙed rokem

      Thank you for the kind words! New video today :)

  • @jerin_stephen
    @jerin_stephen Pƙed rokem

    This is awesome man ... đŸ€™đŸ€™đŸ€™Keep rocking đŸ€™đŸ€™đŸ€™

  • @dedse3
    @dedse3 Pƙed rokem

    Great video man, you make it interesting all the way until the end! I also checked your blog, nice article about science and code! +1 sub and share

    • @Green-Code
      @Green-Code  Pƙed rokem

      Thank you bro, I appreciate that! I haven't touched the blog in a long time, but I'm very glad you enjoy it :)

  • @usmonovjjs7490
    @usmonovjjs7490 Pƙed rokem

    Woow! Bro you explained very well! Amazing job 👍

  • @zizohemid4356
    @zizohemid4356 Pƙed rokem +1

    Nice video format. Keep it up!
    The model sees numbers I can't see XD

  • @ltsben6564
    @ltsben6564 Pƙed rokem +8

    Wow! This is incredible! I assumed because of your thumbnail and while I was watching the video that I was watching someone with 100k+ subscribers yet I've come to find you only have 385... I'll add another to start the way! I'm not much of a programmer, but this video and its style is incredible! I'm waiting for the video on Sunday ;)

    • @Green-Code
      @Green-Code  Pƙed rokem

      Thank you so much man! You made my day :). I'm still editing today's video but it should be uploaded later today. Let me know if you like it 💚

    • @Destroyanad
      @Destroyanad Pƙed rokem

      @@Green-Code Man u growin fast, already 1k subs

  • @FVT-tn8ji
    @FVT-tn8ji Pƙed rokem

    Thanks for the video, this was really interesting!

  • @Geosquare8128
    @Geosquare8128 Pƙed rokem +1

    Great video keep it up!

  • @albertg4096
    @albertg4096 Pƙed rokem

    Amazing video! Will you make tutorials on how to do something like this? It would probably be the most informative tutorial on Machine Learning I've ever seen

    • @Green-Code
      @Green-Code  Pƙed rokem +1

      Possibly :) (but not at the moment)

  • @danielabang6097
    @danielabang6097 Pƙed rokem

    love the video man. Looking forward for future uploads

  • @xmdani4165
    @xmdani4165 Pƙed rokem

    Again amazing video! You should make more videos!!!

  • @artemvolsh387
    @artemvolsh387 Pƙed rokem +2

    Great, thanks for the video. I personally like the details of implementation. If it's possible to create a video that would serve as a walkthrough of practice basics, that would be great learning material.

    • @Green-Code
      @Green-Code  Pƙed rokem +1

      Thank you for the suggestion! I might do that in the future

  • @fragly
    @fragly Pƙed rokem +2

    I had to rub my eyes to make sure your sub count really said 386 subs and not 386k subs
    wildly underrated, excited to see more content

  • @Jason_vinion
    @Jason_vinion Pƙed rokem +5

    Wow this is amazing, may not seem like much now but this is top notice entertainment give it a few years and I have no doubt you’ll have quite a bit of subs (50k-100k) then it’s just growing after that

  • @puzzLEGO
    @puzzLEGO Pƙed rokem +2

    5:56 honestly that does look way more like a 7 than a 1 😂

    • @Green-Code
      @Green-Code  Pƙed rokem +1

      Yep, my drawing skills are not the best 😂

    • @puzzLEGO
      @puzzLEGO Pƙed rokem

      @@Green-Code haha you did great! keep up the AI videos btw they have so much potential

    • @oienu
      @oienu Pƙed rokem

      I'm 120% sure is a 7, no one can think is another thing if you don't put a 7 at side for reference. Humans have the same problem trying to discern between a 0 and a O if you don't have a context.

  • @alfashow2439
    @alfashow2439 Pƙed rokem

    Nice viedo, you got me interested!

  • @thunder89
    @thunder89 Pƙed rokem +2

    Two linear layers without any non-linearity as activation function in between is exactly the same as one linear layer.
    Think of a linear layer as (matrix) multiplication: out=weight1×(weight2×input) is the same as out=(weight1×weight2)×input .
    So the first two models are almost the same, just written a bit differently..
    Thid explains why they perform the same..

  • @djvelocity
    @djvelocity Pƙed rokem +1

    *It is a crime that you have 4000 followers.* You deserve 4 million đŸ€Ż

  • @iffathossain8050
    @iffathossain8050 Pƙed rokem

    The quality of this video is excellent. As an ML engineer, I suggest focusing on the F1 score on a previously separated testing dataset (There will be 3 divisions - training, testing, and validation). It would be best if you also created a graph from the history of training the model including the validation dataset. You see accuracy is not the one that we seek, we see how much pure the training has become. Also, it is essential to explain why you are applying a model, though most of the time, it's difficult to understand.

  • @demonslime
    @demonslime Pƙed rokem

    1:20 where did you get the model of my brain during exams from

  • @YahiyaJasem
    @YahiyaJasem Pƙed rokem

    Great video ma man ,, i learned a lot

  • @sergi00
    @sergi00 Pƙed rokem +1

    really good content oh and IM UR 100TH SUB LESGO

  • @ZenithCoding
    @ZenithCoding Pƙed rokem

    great intro to neural nets :D

  • @gavril3698
    @gavril3698 Pƙed rokem

    my homework on special mathematics subject in computer engeneering was literaly this :)

  • @slacker2016
    @slacker2016 Pƙed rokem +1

    5:57 I honestly thought that was a seven too

  • @the_old_boy
    @the_old_boy Pƙed rokem

    Thats a cool video. Hope to see more of it.

    • @Green-Code
      @Green-Code  Pƙed rokem

      Thanks! Just posted a new video 😊

  • @PotatoImaginator
    @PotatoImaginator Pƙed rokem

    Very cool , i need to learn Machine Learning , Neural Networks too :)

  • @marcofe82
    @marcofe82 Pƙed 5 měsĂ­ci

    It's unbelievable how with your video I learnt a lot about AI. Thank u so much!!!

  • @Harvey1G
    @Harvey1G Pƙed rokem

    great video deserve more subs for sure

  • @jackparr4910
    @jackparr4910 Pƙed rokem

    Amazing video! Did you use the same learning rates for all the models?

    • @Green-Code
      @Green-Code  Pƙed rokem

      Thank you! Let me check :)

    • @Green-Code
      @Green-Code  Pƙed rokem +1

      Okay, just check. I though it I set all the learning rates to be equal, but turns out that no. For the first and last model, the learning rate was 0.1. And for the other models it was 0.05. Thank you for pointing that out :)

  • @Helmshot
    @Helmshot Pƙed rokem +1

    Now I know why my drawn numbers don't get recognized in games

  • @grzegorzjanik4013
    @grzegorzjanik4013 Pƙed rokem

    what tool did you use to visualize the convolutions?

  • @vutrunghungnguyen1967
    @vutrunghungnguyen1967 Pƙed rokem

    At the thumbnail, you should swipe the screen back and forth and you would probably see an illusion of that curve

  • @Noirie99
    @Noirie99 Pƙed rokem

    You clearly deserve more subscribers

  • @Egon3k
    @Egon3k Pƙed rokem

    Cool Video :) reminds me a little bit of Code Bullet

  • @sandundeemantha34
    @sandundeemantha34 Pƙed rokem

    I subscribed to you because you gave code

  • @aPikea
    @aPikea Pƙed rokem +1

    Your really fun to watch, I’m to dumb to understand anything ur saying but it was a fun watch regardless

  • @aaronrobertcattell8859
    @aaronrobertcattell8859 Pƙed rokem

    What is backpropagation learning algorithm?
    Backpropagation, or backward propagation of errors, is an algorithm that is designed to test for errors working back from output nodes to input nodes. It is an important mathematical tool for improving the accuracy of predictions in data mining and machine learning.

  • @puppergump4117
    @puppergump4117 Pƙed rokem +1

    Looks like you gained like 200 subs in 10 days. I guess you'll gain even more if you keep this up.

    • @Green-Code
      @Green-Code  Pƙed rokem

      I'll guess we'll see :) New video this Sunday!

  • @otter502
    @otter502 Pƙed rokem +1

    In the beginning you implied that the error was based on the distance between what it thought the number was vs what it actually was
    Wouldn't a better way to calculate the error to base it on shape?
    a 3 doesn't look like a 1 but the error (when based on values) is only 2

    • @Green-Code
      @Green-Code  Pƙed rokem

      Yeah, you're right it calculates the error based on the shape :)
      It was just an easy explain what I was doing

  • @farhanaf832
    @farhanaf832 Pƙed rokem

    Could you please make video about ML Alexnet how to code etc?
    Where did you learn it from?

    • @Green-Code
      @Green-Code  Pƙed rokem

      There's some great tutorials out there on Pytorch and Tensorflow that are completely free. Check Daniel Bourke out!

  • @Sedquis
    @Sedquis Pƙed rokem +13

    The fact that I studied AI at university and this video was more understandable than my professor is crazy

    • @crazgon7261
      @crazgon7261 Pƙed rokem

      Im in High School, and I have learnt more from my classmate than from my Physics teacher

  • @MasoodOfficial
    @MasoodOfficial Pƙed rokem

    Good work.

  • @josgielen8524
    @josgielen8524 Pƙed rokem

    I wrote my own neural net in C#. With 1 hidden layer of 255 nodes it got 97.6% accuracy. With 2 hidden layers of 255 nodes each it also dropped to 92%. No idea why.

    • @Green-Code
      @Green-Code  Pƙed rokem +1

      Wow, that's so interesting. Maybe it's overfitting?

  • @maleek2.07
    @maleek2.07 Pƙed rokem +1

    that was cool!

  • @aoch1461
    @aoch1461 Pƙed rokem +2

    Fantastic!!!!!!!

  • @mohammadmemarnejad8014
    @mohammadmemarnejad8014 Pƙed rokem

    In the second network I think the accuracy is low because the module is OVER FITTING
    I think if you decrease the number of nodes and find a normal threshold number the accuracy increases

    • @Green-Code
      @Green-Code  Pƙed rokem

      Fair enough! Thanks for the suggestion :)

  • @stysan
    @stysan Pƙed rokem

    this video idea is not original and i saw it before, but still amazing realization!

  • @michaelbayer5887
    @michaelbayer5887 Pƙed rokem +1

    ... 3 - 6 - 9 - Tesla Numbers its realy enough to KNOW.

  • @d2513850
    @d2513850 Pƙed rokem

    Like optical character recognition technology

  • @hugh_jasso
    @hugh_jasso Pƙed rokem

    Got lost in thought at "neuron." I don't have many of those left.

  • @Jordufi
    @Jordufi Pƙed rokem +1

    Model 2 doesn’t improve from model 1 because you are only using liner layers, try changing the activation function to relu

  • @koufdell
    @koufdell Pƙed rokem

    nice inspiration from ...... keep going

  • @darkchoco7407
    @darkchoco7407 Pƙed rokem +1

    Hello, why checking for accuracy and not f1-score? Thanks.

    • @Green-Code
      @Green-Code  Pƙed rokem

      I just thought it would be easier :)

  • @positivenozy6065
    @positivenozy6065 Pƙed rokem

    Hello! How did u study this AI subject? Is this what you are probably studying at university? I'm curious, want to study this topic, but need to know some sources to learn it. Could you help me?

    • @Green-Code
      @Green-Code  Pƙed rokem +1

      I just learn it on my own :) Check out www.youtube.com/@mrdbourke

    • @positivenozy6065
      @positivenozy6065 Pƙed rokem

      @@Green-Code thanks!

  • @mykytahordia
    @mykytahordia Pƙed rokem +2

    I guess you have made visualization of dummy model a little bit wrong. There is no single hidden neuron. It has just flattened layer of input and dense connection with output layer, no hidden. also single neuron doesn’t make sense and can not reach 90%+ 😅. But anyway good vid

    • @Green-Code
      @Green-Code  Pƙed rokem +1

      Yep 😅! You're absolutely right :)

  • @siddhantgupta1300
    @siddhantgupta1300 Pƙed rokem

    How or from where can i learn this

  • @HertzugLP
    @HertzugLP Pƙed rokem

    Getting Code Bullet vibes here

  • @j4sun
    @j4sun Pƙed rokem

    Thank you so much, now I will build something so smart that politicians can be replaced

  • @NotAFoe
    @NotAFoe Pƙed rokem +1

    Subbed

  • @ArcamNight
    @ArcamNight Pƙed rokem

    For AI is better to use TPU (TensorFlow Process Unit) if you use TensorFlow in your projects

    • @Green-Code
      @Green-Code  Pƙed rokem

      Didn't know that, thank you😊

    • @ArcamNight
      @ArcamNight Pƙed rokem

      @@Green-Code No problem mate 👍đŸ’Ș

  • @akhmalihsan5101
    @akhmalihsan5101 Pƙed rokem

    bro what's app did you use to calculate all that?

    • @Green-Code
      @Green-Code  Pƙed rokem

      PyTorch (to make the machine learning model) and Adobe After Effects+Premier (to make the video)

  • @TheLuizfrds
    @TheLuizfrds Pƙed rokem

    LOL, i did exactly the same thing when i was doing Computer Engineer!

  • @randomhuman69420
    @randomhuman69420 Pƙed rokem

    Before watching this I thought he was going to train the models with the numbers from a bunch of different fonts...

  • @Thegreatwizard122
    @Thegreatwizard122 Pƙed rokem

    like you're enthusiasm

  • @badalmukhiya149
    @badalmukhiya149 Pƙed rokem

    Bro can you make any app related trading graphs plsss

  • @markmanning2921
    @markmanning2921 Pƙed rokem

    ok, but what can neural networks be used for besides recognizing images?

    • @Green-Code
      @Green-Code  Pƙed rokem

      Watch the new video I'm going to post on Sunday and you'll see :)

  • @ShadowTB-ds4ks
    @ShadowTB-ds4ks Pƙed rokem

    How about the other metrics?

  • @Outfled
    @Outfled Pƙed rokem

    i actually gasped after watching the video and seeing youre only at 300 subs. great video nonetheless

  • @and_rotate69
    @and_rotate69 Pƙed rokem

    U have

  • @badalmukhiya149
    @badalmukhiya149 Pƙed rokem

    Bro can you make the app for trading graph

  • @marcopozzi522
    @marcopozzi522 Pƙed rokem

    I'm studying to become a software architect so I don't understand anything about AI. Which linguage are you using? Are your program being executed on che GPU?

    • @Green-Code
      @Green-Code  Pƙed rokem

      I'm using PyTorch (python) and yes my program is being executed on the GPU :)

  • @holz_name
    @holz_name Pƙed rokem

    That's the problem, you can't really analyze the created net and figure out why it recognized a very well drawn 9 as a 3. The problem is even more of a bigger deal, because even pixels that have nothing to do with the number can screw up the net. Like add one white pixel on the edge and watch your net failing. Called Pixel Attack.

  • @truestbluu
    @truestbluu Pƙed rokem +1

    Now we can tell Mason what the numbers mean.

  • @corbinnicholson945
    @corbinnicholson945 Pƙed rokem

    5:57 ok even I thought that was a 7

  • @quantumsoul3495
    @quantumsoul3495 Pƙed rokem

    Why don't they put the bar on the seven ? All the seven look like ones

  • @jasperwalls
    @jasperwalls Pƙed rokem

    where is the link for the AI at ?

  • @realdragon
    @realdragon Pƙed rokem

    Mission impossible: Teaching AI to read doctor's handwriting

  • @AnnasVirtual
    @AnnasVirtual Pƙed rokem

    now train a Vision Transformer

  • @alpw404
    @alpw404 Pƙed rokem

    nice channel, and good news for you: the youtube algorithm chose you

  • @tazanteflight8670
    @tazanteflight8670 Pƙed rokem +1

    You fail to mention that your dog is named "diabetes"..... :>