Deep Learning with Python, TensorFlow, and Keras tutorial

Sdílet
Vložit
  • čas přidán 10. 08. 2018
  • An updated deep learning introduction using Python, TensorFlow, and Keras.
    Text-tutorial and notes: pythonprogramming.net/introdu...
    TensorFlow Docs: www.tensorflow.org/api_docs/p...
    Keras Docs: keras.io/layers/about-keras-l...
    Discord: / discord

Komentáře • 1,4K

  • @MrDots99
    @MrDots99 Před 4 lety +948

    "ok first we need to install tensorflow "
    5 hours later i returned to the video haha

    • @yelmak
      @yelmak Před 4 lety +105

      wait, it only took you 5 hours to get tensorflow installed?

    • @samforsberg5698
      @samforsberg5698 Před 4 lety +19

      how did u install it

    • @yelmak
      @yelmak Před 4 lety +45

      @@samforsberg5698 gave up with pip and installed it with anaconda

    • @benjaminfindon5028
      @benjaminfindon5028 Před 4 lety +27

      @@yelmak only 5? bruh that shit took me 24. And I ended up using the same solution i had at the start, with out realizing that was the installation "facepalm"

    • @FreakyStyleytobby
      @FreakyStyleytobby Před 4 lety +15

      What kind of problems did you guys have? For me it was quicker, i had the wrong python interpreter (32 instead of 64)

  • @omkarjagtap2351
    @omkarjagtap2351 Před 5 lety +165

    Installs keras, predicts mnist data, feels like GOD

  • @wolverine87833
    @wolverine87833 Před 3 lety +53

    This guy is really authentic and legit. Doesn't beat around the bush, no cringy intro music, just straight to the point. Best Intro of Deep Learning I have watched so far!

  • @sentdex
    @sentdex  Před 5 lety +817

    After re-watching, I notice I never explained "epoch." Epoch is just a "full pass" through your entire training dataset. So if you just train on 1 epoch, then the neural network saw each unique sample once. 3 epochs means it passed over your data set 3 times.

    • @timothyyee1966
      @timothyyee1966 Před 5 lety +40

      Epoch is just a fancy way to say iteration. Generally speaking, iteration/epoch is used in optimization where weights are updated after each time step. Usually best to learn gradient decent prior to deep learning.

    • @windmill1965
      @windmill1965 Před 5 lety +5

      At 4:44 you would want to write " > 3".

    • @AladdinPersson
      @AladdinPersson Před 5 lety +33

      I like you Sentdex, but there was more than just the word epoch that you didn't explain. For example, what is x_test, y_test and why do we have something different in x_train and y_train? What does flatten mean? What is an optimizer, what does it do? To me there are also several other things left unexplained and sort of swept under the rug.
      I believe you have the best of intentions and you do help a lot of people in becoming better programmers in several different ways. I just think that you have two options by making these kinds of videos, and the first is that you go through things so that people not just vaguely understand things but actually master them and really understand them.
      The second option I believe is that you say that I'm going to assume you know the basics of neural networks: and if you don't, go check Andrew Ng out and then come back to my videos.

    • @shubhamkadam7956
      @shubhamkadam7956 Před 5 lety

      I want all the videoes how can I get all of these videos

    • @aloufin
      @aloufin Před 5 lety

      I hope in a near future tutorial you add in tensorboard howto, specifically showing images with a slider!

  • @behshadmohebali6234
    @behshadmohebali6234 Před 4 lety +26

    This is exactly what I needed as the first clip on TensorFlow and deep learning. Consider this comment as a warm "thank you" and a remote (but firm) hand shake!

  • @anishkelkar6434
    @anishkelkar6434 Před 5 lety +7

    This tutorial gave a hands on approach to machine learning unlike most of the other tutorials. Thank you very much.

  • @prateeknayak5699
    @prateeknayak5699 Před 5 lety +15

    Just a brilliant beginning. Finally the CZcams notification led to something amazing

  • @abdulqayyumahmadzai8275

    I have been following your videos from almost 18 months and its been amazing your tutorials have helped me alot. Thank you for these tutorials.

  • @cyrusparvereshi6454
    @cyrusparvereshi6454 Před 5 lety +19

    Hey Harrison, I just wanted to thank you for making these amazing tutorials! I finished your beginner tutorial, and while it went pretty deep into some things, I have a great toolkit that I can use to explore web development, data analysis, and cyber security! I love programming and your videos are some of the most helpful resources that I have been privileged to discover. I promise I will take this knowledge and apply it to something that will change the world! :D

  • @juhotuho10
    @juhotuho10 Před 5 lety +3

    now this is the reason i subbed, have been learning python for the last month and can't wait to get deeper into deep learning

  • @JustCallMeRob
    @JustCallMeRob Před 5 lety +1

    I am so happy you are doing an update on this topic right after i finished your main machine learning playlist. Your videos have been very helpful, thank you so much for your work !

  • @MrCreeper20k
    @MrCreeper20k Před 5 lety +2

    Thank you so much for this, I have started learning and done the “hello worlds” of keras and am really trying to get to some advanced stuff and hopefully eventually reinforcement learning

  • @souravgames
    @souravgames Před 5 lety +3

    thank you for revisiting the basics . i just hope its a long comprehensive series

  • @abhijeetsharma5533
    @abhijeetsharma5533 Před 4 lety +29

    In later versions of tensorflow, you need to specify input shape of flatten layer if you are reusing the saved model.
    model.add(tf.keras.layers.Flatten(input_shape=(28, 28)))
    instead of
    model.add(tf.keras.layers.Flatten())

  • @abdulwahab182
    @abdulwahab182 Před rokem

    I have listened the entire lecture while driving
    The way coding part was done by reading it loud while typing was superb !
    I had the whole picture even without looking at the screen.
    Bundle of thanks

  • @Shaurya_Pant
    @Shaurya_Pant Před 5 lety +1

    This video is awesome! period. I've literally seen so many seminars and videos on CZcams... This is the first one that gave me all the comprehensive details, along while making the entire program... on the side ... Thanks.
    It really helped.

  • @AnnnEXE
    @AnnnEXE Před 2 lety +47

    I learned more from this video than I did in an entire deep learning course I took last academic quarter. Huge thanks, my dude :^) this is going to help a ton for my thesis work!

    • @gil-evens
      @gil-evens Před rokem

      What are you majoring in?

    • @AnnnEXE
      @AnnnEXE Před rokem +1

      @@gil-evens Computer engineering!

    • @gil-evens
      @gil-evens Před rokem

      @@AnnnEXE nice, what's your thesis about?

    • @AnnnEXE
      @AnnnEXE Před rokem +2

      @@gil-evens quantum error correction! It was really really fun :)

  • @ethanraymosqueda3780
    @ethanraymosqueda3780 Před 5 lety +5

    Thank you sooooo much Sentdex. I'm doing my thesis and I needed to learn how tensorflow works. Awesome tutorials here

    • @sentdex
      @sentdex  Před 5 lety

      Awesome, best wishes to you on your thesis!

  • @christopherhall1216
    @christopherhall1216 Před rokem

    Nice vid. So many videos ramble on side thoughts and spend 20 minutes explaining their hypothetical use case. This dives directly into it. Thank you!!!!

  • @vaibhavpoliwal2820
    @vaibhavpoliwal2820 Před 3 lety

    I am totally beginner to deep learning, and really this is best explanation for making your first neural network model with TensorFlow, thank you very much for your great explanation.

  • @rishisharma5249
    @rishisharma5249 Před 5 lety +8

    I had searched so much for this type of video!!!
    Ufffffff!, Finally got it thanks you very much for this and eagerly waiting for next videos too 😊

  • @petr.g
    @petr.g Před 5 lety +401

    I have one question. Why is his profile picture more pixelated every time?

    • @sentdex
      @sentdex  Před 5 lety +332

      I'm pretty confident you're the first person on youtube to mention it. I've been slowly changing it :D

    • @petr.g
      @petr.g Před 5 lety +32

      i thought it is becouse of my slow internet :D, nice vid really appreciate you doin' those tutorials. And i really like your cups.

    • @petr.g
      @petr.g Před 5 lety +38

      I just thaught it is funny little easter egg...

    • @petr.g
      @petr.g Před 5 lety +2

      Good for you ;)

    • @herbz1037
      @herbz1037 Před 5 lety

      yes.

  • @taijosephinedanielle2962

    The fact that he Explained reasons behind every step is the most pleasing. Now I have a good understand of how Neural Network works. Thanks a lot sir.
    I subscribed to your channel already
    Keep the good job sir

  • @intersstella
    @intersstella Před 4 lety

    Thanks for this video! It has stood the test of time, and was a great intro even two years after its first upload.

  • @labreynth
    @labreynth Před rokem +24

    Why do I have to keep coming on youtube to simply learn something (for free) that I came to university for?

    • @Jitesh-ek5xf
      @Jitesh-ek5xf Před 16 dny +2

      Degree

    • @labreynth
      @labreynth Před 16 dny

      @@Jitesh-ek5xf Hardly worth anything these days

    • @Jitesh-ek5xf
      @Jitesh-ek5xf Před 15 dny

      @@labreynth hmmm I guess so

    • @sharonv3597
      @sharonv3597 Před 13 dny

      Maybe because they don't explain it well or elaborate more on it? Since that's the case for me, they only teach us the math but not the actual code

  • @timothyyee1966
    @timothyyee1966 Před 5 lety +2

    This was excellent. I’m a novice in ml and this is easy to follow and understand. Please do more. I’ve gotten lost in other people’s tutorials and videos that I just lose motivation and interest because they don’t simplify concepts like you do. Keep it up! Also appreciate the use of iPython nb.

    • @sentdex
      @sentdex  Před 5 lety +1

      I will do my best to keep going in this style!

  • @sayonbhattacharya6092
    @sayonbhattacharya6092 Před 5 lety

    Took a day to do this, but I thoroughly loved it. Thanks to his simple and interesting explanation.

  • @jamesward7554
    @jamesward7554 Před 5 lety +1

    This is absolutely amazing. Please continue this! Absolutely love your work

  • @Rushirajloke
    @Rushirajloke Před 5 lety +29

    Finally what I have been waiting for..

  • @JamalAbo
    @JamalAbo Před 5 lety +351

    17:50 Actually,
    predictions = new_model.predict([x_test])
    broke the program,
    then I changed it to
    predictions = new_model.predict(x_test)
    And it worked Fine :)

  • @Suigeneris44
    @Suigeneris44 Před 4 lety

    Lovely lovely explaination! Lovely! What I have realized is: if you want to perfect python coding or any coding...you have got to practice!Practice!Practice!

  • @guitarmaniac091
    @guitarmaniac091 Před 5 lety

    Man, I could kiss you. I've spent the better part of a week trying to find an up to date tutorial on keras where the person actually types the code out and explains what it does as he does, and this is exactly what I've been looking for. Very helpful!!

  • @johannesschmid9239
    @johannesschmid9239 Před 5 lety +5

    GREAT JOB! You explained it very well, thanks a lot. Thats exactly what I searched for! However, I think for beginners you should also mention the parameter y and that it is the label of the respective x.

  • @bricktheworld7240
    @bricktheworld7240 Před 5 lety +4

    Thank god, I was following the old tutorials and these are so much easier.

    • @sentdex
      @sentdex  Před 5 lety +1

      Glad to hear these are easier to follow!

  • @tm1813
    @tm1813 Před 5 lety +1

    hi Sentdex, I think I remember that I ever downloaded your Tensorflow videos, maybe in a year. However, I cannot find it now. To tell the truth, I did not understand enough for those old videos. However, these series for Keras are far more understandable. I really appreciate your contribution!

  • @piyushvermaiitkgp
    @piyushvermaiitkgp Před rokem

    Thank you so much! Came here after going through all the theory/maths behind the NN, and strongly needed python syntax to execute it.

  • @roar779
    @roar779 Před 5 lety +309

    11:17 *casually drinks from a shark!*

    • @liam1558
      @liam1558 Před 4 lety +1

      @@alamimouad mack the knife? :)

  • @ivangouvea4195
    @ivangouvea4195 Před 5 lety +5

    Incredible tutorial, I am familiar with TF and Keras and this is super well explained. Covered everything a learner should know.
    Something cool for next one is AutoML or Autokeras

  • @sabrinalzahrani9710
    @sabrinalzahrani9710 Před 5 lety +1

    You made it very simple for me, I was pretty lost before this video! Thank you man

  • @3nrasandun
    @3nrasandun Před 4 lety +1

    Thanks bro.... This is the best ‘getting in to Tensorflow’ video I found

  • @user-ur9fs8cx4f
    @user-ur9fs8cx4f Před 5 lety +3

    Thank you for the wonderful work!

  • @PandoraMakesGames
    @PandoraMakesGames Před 5 lety +8

    Another great tutorial! Inspires me to make my own AI videos.

  • @loicdumortier4634
    @loicdumortier4634 Před 5 lety +1

    I used to be jealous on your programming skills. Now I am jealous on your programming skills and shark cup :) Great video!

  • @argrig
    @argrig Před 5 lety

    Great video! The impression I get is once you know the network architecture and hyperparameters, it all comes down to knowing the syntax and the relevant libraries. But it's hard! SO hard, especially for a non-CS people.

  • @Stinosko
    @Stinosko Před 5 lety +4

    I have a question and didn't really remember if you covered it, why do you use Jupyter to code in for this tutorial? Or did you explained in another video/written tutorial?

  • @manishdhal1351
    @manishdhal1351 Před 5 lety +5

    Amazing ... waited a long time for this !!

    • @sentdex
      @sentdex  Před 5 lety +3

      No more waiting for you!

  • @rezaniazi4352
    @rezaniazi4352 Před 5 lety

    Good timing ;)
    I just see your old videos months before but it was pain in the a** for me to learn and in mean time figuring out how to use the codes in newer version of the program
    Thanks a lot man !
    Now I subscribe ☺️

  • @chongchonghe3748
    @chongchonghe3748 Před 4 lety

    Best TensorFlow hand-on introduction on CZcams. (This is actually the first video of this kind I watched, but I don't think I need to watch another one.) BTW, watching this after watching 3Blue1Brown's series video on Deep Learning is a joy.

  • @w1malik
    @w1malik Před 5 lety +4

    How can I decide to pass 128 units like you did in adding 128. You said this is number of neurons. How can I decide the number of neurons according to the data I have.

  • @shyampadia
    @shyampadia Před 5 lety +11

    Could you also talk a little about static vs dynamic graphs in tensorflow and pytorch in one of the future videos. It would be a huge help

    • @sentdex
      @sentdex  Před 5 lety +1

      Thanks for the suggestion. I'll see about working that in somehow.

  • @bee00778
    @bee00778 Před 2 lety

    One of the best videos ever I watched for a begineer.

  • @maclee2036
    @maclee2036 Před 4 lety

    simply love your channel. you have explained this far better than my professor.

  • @Salman-xz4km
    @Salman-xz4km Před 5 lety +15

    Please little Pytorch tutorials also .... cause its Lit and easy to follow and more pythonic

  • @anjithnair3082
    @anjithnair3082 Před 5 lety +8

    Please make a playlist for deep learning. From basics to advanced stuff. It will be super helpful.

  • @darkhorse5848
    @darkhorse5848 Před 2 měsíci

    hands down the best channel to learn deep learning from

  • @ashiralam1115
    @ashiralam1115 Před 5 lety +2

    Eagerly waiting for the followup. This was very helpful

  • @MrFuxya
    @MrFuxya Před 5 lety +4

    Yesssssss, I want moreee!!!

  • @SethuIyer95
    @SethuIyer95 Před 5 lety +3

    Yoooooooo this is amazing

  • @JasonWhittle1
    @JasonWhittle1 Před 5 lety

    So glad you're updating this. Especially with a higher level package.

  • @reyndbada8689
    @reyndbada8689 Před 3 lety

    Thanks sentdex, good start at least for me as a beginner. Only problem encountered was changing:
    predictions = new_model.predict([x_test]) to predictions = new_model.predict(x_test)
    as pointed out by Jamal Abo comment. Other then that it went smoothly.
    BTW, as a reference for anyone, i'm using Windows 10 with Anaconda Python 3.7 64-Bit installed and TensorFlow and was able to complete tutorial to the end .

  • @gregfield4457
    @gregfield4457 Před 4 lety +6

    I came across an issue when trying to print val_loss, val_acc it was complaining about the shape being 10000 and needed to be 60000 seems to work by normalising using x_train, x_test = x_train / 255.0, x_test / 255.0

    • @kIocuchl2
      @kIocuchl2 Před 4 lety

      Yeah, I had the same problem.
      You have to comment:
      #x_train = tf.keras.utils.normalize(x_train, axis=1)
      #x_test = tf.keras.utils.normalize(x_train, axis=1)
      and write
      x_train, x_test = x_train / 255.0, x_test / 255.0
      instead.
      Thanks man!

    • @issamjadar5415
      @issamjadar5415 Před 3 lety

      @@kIocuchl2
      x_train = tf.keras.utils.normalize(x_train, axis=1)
      x_test = tf.keras.utils.normalize(x_test, axis=1)

  • @loisewanjiru9600
    @loisewanjiru9600 Před 4 lety +6

    hey, i need help . am experiencing this error when i try to train(fit) the model.
    ValueError: Data cardinality is ambiguous:
    x sizes: 60000
    y sizes: 10000
    Please provide data which shares the same first dimension.

    • @nickgerwe5302
      @nickgerwe5302 Před 3 lety +4

      I had this same issue, but then noticed a copy and paste error when normalizing data. Make sure your x_test is normalized using x_test rather than x_train. When I updated my code to as show below, it worked
      #normalize data
      x_train = tf.keras.utils.normalize(x_train,axis=1)
      x_test = tf.keras.utils.normalize(x_test,axis=1)

    • @prudhvikumar6293
      @prudhvikumar6293 Před 3 lety

      @@nickgerwe5302 ValueError: Shapes (32, 1) and (32, 10) are incompatible did you come across this error by any chance?

  • @homiehari
    @homiehari Před 8 měsíci

    wow this was one of the first tutorials I ever used to build a neural network. crazy discovering this page again from your QLora video.

  • @TZPlayer
    @TZPlayer Před 5 lety

    Thank You!!!!! I've been wanting one of these for ages now!

  • @WorldBluegrassDay
    @WorldBluegrassDay Před 5 lety +58

    Anyone experiencing this error: "ValueError: You are trying to load a weight file containing 3 layers into a model with 0 layers. ". Change this line:
    model.add(tf.keras.layers.Flatten())
    to:
    model.add(tf.keras.layers.Flatten(input_shape=(28, 28)))
    Should resolve the problem.

  • @masbro1901
    @masbro1901 Před 4 lety +3

    8:07 NameError: name 'x_train' is not defined , what happen ? where's that image 7 i can get

  • @user-fy5go3rh8p
    @user-fy5go3rh8p Před 4 lety

    I cannot thank you enough for your work! Great job, very helpful.

  • @wizzard5574
    @wizzard5574 Před 4 lety

    Woooooow, you can save the model in a variable? Jeez, I was always waiting for the model to learn ~5 minutes. You saved so much time of my life, tnx.

  • @FarGamingOfficial
    @FarGamingOfficial Před 5 lety +9

    *I gotta get that shark mug*

  • @bricktheworld7240
    @bricktheworld7240 Před 5 lety +13

    Do you think you could do a tutorial on reinforcement learning?

    • @sentdex
      @sentdex  Před 5 lety +12

      I would like to include that in this series for sure.

    • @KartikayBagla
      @KartikayBagla Před 5 lety

      sentdex please do it, I've kinda been stuck at making cartpole work properly.

    • @MegaTRIANGULUM
      @MegaTRIANGULUM Před 5 lety

      sentdex yeah! Deep Q would be great

    • @houdamouttalib4729
      @houdamouttalib4729 Před 5 lety

      cool

  • @leahg_
    @leahg_ Před rokem

    Best tutorial I've seen yet, not once did I stop and think "what is he talking about?" lol, thank you!!

  • @Pirateboi-vt5rp
    @Pirateboi-vt5rp Před 2 měsíci

    This is perfect. I started watching a tensor guide but its pretty out of date now that keras has been incorporated

  • @vashistnarayansingh5995
    @vashistnarayansingh5995 Před 5 lety +7

    I am getting error on executing the mode.save() line it is showing not implementation error I am using Google colaboratory to train the model

    • @TimvonHahn
      @TimvonHahn Před 5 lety

      It seems to be a bug... I'm had the same problem. See the github bug report here: github.com/tensorflow/tensorflow/issues/22837 I down-graded to TF 1.10 and it solved the problem.

    • @Crabbpower
      @Crabbpower Před 5 lety +9

      If you want to use the latest version you need to give the Flatten layer class the input variable input_shape like this: ` model.add(tf.keras.layers.Flatten(input_shape=(28, 28)))`

    • @recepuludag6655
      @recepuludag6655 Před 5 lety

      @@Crabbpower thanks a lot man, i was getting crazy
      does it matter if the parameter of input shape is more or less than the original pixel size. i think it matters do you know any way to overcome this

    • @Reventonn134
      @Reventonn134 Před 5 lety

      @@Crabbpower love ya man, saved me the hassle

    • @Sam-jg5zv
      @Sam-jg5zv Před 5 lety

      Try import keras as keras instead of import tensorflow as tf.
      then, change all the code tf.keras to just keras.

  • @theerawatramchuen9886
    @theerawatramchuen9886 Před 5 lety +3

    I hv got an error " ValueError: The first layer in a Sequential model must get an `input_shape` argument. " on Jupyter notebook.
    My tensor flow is 1.5.0 Version GPU.
    Kindly advise solution.

    • @andrescuenca1122
      @andrescuenca1122 Před 5 lety

      getting this same error, did you figure this out?

    • @MichaelGauciMT
      @MichaelGauciMT Před 5 lety +4

      Include an input_shape argument like this:
      model.add(tf.keras.layers.Flatten(input_shape=(28, 28)))

    • @coryrandolph8501
      @coryrandolph8501 Před 5 lety +1

      model.add(tf.keras.layers.Flatten(input_shape=x_train.shape[1:]))

  • @ghfghf7
    @ghfghf7 Před 4 lety

    after the battle of making the layers myself with your guide in the first tutorial set the ease of using keras is just unfair lol
    thanks for another great tutorial

  • @mohamedali8428
    @mohamedali8428 Před 5 lety

    Well done, thank you!
    Finally what I have been waiting for..

  • @Julian-ny5tt
    @Julian-ny5tt Před 5 lety +26

    I thought I am watching Edward Snowden teaching me how to code lmao.

  • @X_platform
    @X_platform Před 5 lety +4

    Yes! Tensorboard please!

  • @zozozozo4503
    @zozozozo4503 Před 4 lety +2

    يسعد ربك من سورية عم بتابعك You are a good man I follow you from Syria

  • @tejaslotankar5430
    @tejaslotankar5430 Před 5 lety

    Really Have been waiting for this from long time!!!!
    Thanks a lot!!

  • @anandchavali6299
    @anandchavali6299 Před 5 lety +32

    You should make separate playlist/series for basic and advanced so we noobs can level in a more linear fashion. not a total beginner to advanced but like a more explaining on a whiteboard how things work series

    • @sentdex
      @sentdex  Před 5 lety +2

      Compared to this video, you want more basic, more advanced, or similar?

    • @anandchavali6299
      @anandchavali6299 Před 5 lety +2

      sentdex similar or advanced, I think we all love you because your videos are so deep and connecting they make difficult difficul'nt

    • @fxelix9951
      @fxelix9951 Před 5 lety +2

      sentdex I really enjoy your videos, but since I haven't worked with tensorflow or similar this video threw many new functions and commands at me :D Could you maybe write some comments next to what you've done? It makes things easier to follow during and later on :) Additionally, any good updated resource to Keras/tensorflow you can recommend?

    • @Dockmark5
      @Dockmark5 Před 5 lety +10

      sentdex I vote for more basic : )

    • @RedShipsofSpainAgain
      @RedShipsofSpainAgain Před 5 lety

      more advanced please

  • @eazye7059
    @eazye7059 Před 4 lety +3

    i have this error in Jupyter notebook after installing and importing Tensorflow
    The kernel appears to have died. It will restart automatically.

    • @AbhishekMishraiitkgp
      @AbhishekMishraiitkgp Před 3 lety

      I had the same problem. Try conda install nomkl . Install nomkl package in the same environment you are running your jupter notebook in.

  • @jorgesilva932
    @jorgesilva932 Před 5 lety +1

    This video is awesome, really waiting for the next one on the topic.

  • @SHAP179
    @SHAP179 Před 5 lety

    That`s what we`ve been waiting for! Keep up the good work!

  • @Killercs14
    @Killercs14 Před 5 lety +231

    Honestly, where do you learn all these stuff at such pace?
    You dont even have a cs major background. Not sure if this is impressive or a sign of my own unproductivity :(
    Regardless, I appreciate your existence

  • @lhorbrum1818
    @lhorbrum1818 Před 5 lety +76

    Getting the error: "I'm too stupid and this seems way beyond my level of understanding".

    • @mapri50
      @mapri50 Před 4 lety +11

      Thats no wonder with your profile picture

    • @jensenraylight8011
      @jensenraylight8011 Před 3 lety +4

      *suddenly the model works:* maybe I'm a genius after all

    • @feraudyh
      @feraudyh Před 3 lety +1

      I think this is not the right place to enter the subject, he already assumes a lot. This is a place to consolidate your knowledge by implementing a demo. Sorry I can't give you a pointer to an introductory reference, but there are dozens of those.

    • @cryptogh2797
      @cryptogh2797 Před 3 lety +2

      Don't worry... Use Google colab.... You don't need to install tensorflow just import it

    • @enderkulucka
      @enderkulucka Před 3 lety

      I use kaggle. you don't need to install tensorflow.

  • @aswathgi6468
    @aswathgi6468 Před 5 lety +1

    Awesome❤️🔥! I was waiting for this tutorial ❤️❤️

  • @muhammadomeraffan475
    @muhammadomeraffan475 Před 5 lety

    Man! You are a Python demi-god! Really want to thank you for all the tutorials... Keep rockin 🤘

  • @ifeanyindukwe3086
    @ifeanyindukwe3086 Před 5 lety +4

    Hey, I seem to get this error
    ValueError: You are trying to load a weight file containing 3 layers into a model with 0 layers.
    whenever I run the line of code below:
    new_model = tf.keras.models.load_model('epic_num_reader.model')
    Any hint of how to resolve this??

    • @ZahidulHossain
      @ZahidulHossain Před 5 lety +1

      Same here. Keras has an issue opened on github
      github.com/keras-team/keras/issues/9822

    • @alokrajgupta9452
      @alokrajgupta9452 Před 5 lety +2

      You might use this for tf version 1.9.0
      model.add(tf.keras.layers.Flatten(input_shape=x_train.shape[1:]))

    • @kinlam6304
      @kinlam6304 Před 5 lety

      change the first line in the model to this : model.add(tf.keras.layers.Flatten(input_shape=x_train[0].shape))

    • @vaibhavsingh1049
      @vaibhavsingh1049 Před 5 lety

      Check this stackoverflow.com/questions/52664110/attributeerror-sequential-object-has-no-attribute-output-names/53980337#53980337
      As per the changing to "keras" from "tensorflow.keras", just remove the "tensorflow."part and rest is the same

  • @thedosiusdreamtwister1546
    @thedosiusdreamtwister1546 Před 5 lety +11

    AI: "When you smile, you go from a 6 to an 8!"
    Me: "You were trained on the mnist data set, weren't you?"
    (True story)

  • @comandernehal8567
    @comandernehal8567 Před 4 lety +1

    I just finished all 43 tutorials of your "Machine Learning with Python" series, when it came to Tensorflow, I thought need to watch another tensorflow2 series just to continue that series tutorials. But luckily you saved the day. I really love your tutorials, learning from the scatch. Love you man, have a blast.......😍😍😍

    • @shauryavardhan7225
      @shauryavardhan7225 Před 4 lety

      Hey Man , do we need to watch the old tensorflow series , or should this be enough ?
      just asking coz the older series had 30 videos and this one has 11..
      any significant thing I will be missing out on if I skip the older series?

    • @comandernehal8567
      @comandernehal8567 Před 4 lety

      @@shauryavardhan7225
      The previous tutorials series has musch deeper explanation of how tensorflow works & can be implemented in Machine learning, its very easier to understand for a true beginner
      but tensorflow 2.0 is musch easier to implement, so why learn 1.0, right!
      so currently i am learning only the basics syntex of 2.0 from other youtube tutorilals, then i will move back to the previous "Machine Learning" to implement tensorflow.
      Honestly i watched only 5 of this series & it feels kindda hard to catch up , means not so details here.
      But you can give this series a try & see how it works for you.

  • @altenwerthriqalexbal7577
    @altenwerthriqalexbal7577 Před 4 lety +2

    Getting the error: "I'm too stupid and this seems way beyond my level of understanding".
    Amazing ... waited a long time for this !!

    • @anirbanghosh6328
      @anirbanghosh6328 Před 4 lety

      hey bro im getting ERROR:root:Internal Python error in the inspect module.
      Below is the traceback from this internal error.

  • @quanghuy8794
    @quanghuy8794 Před 5 lety +14

    IDLE: mr.Harrison i don't feel so good..

  • @sachinswamy5264
    @sachinswamy5264 Před 4 lety +3

    predications = new_model.predict([x_test])
    ERROR: list index out of range

    • @bharatsreyus8748
      @bharatsreyus8748 Před 4 lety

      yeah same here... anyone of help pls???????

    • @bharatsreyus8748
      @bharatsreyus8748 Před 4 lety

      model.add(tf.keras.layers.Flatten(input_shape=(28, 28))) #this solves the problem mate! : )

  • @sameris6581
    @sameris6581 Před 2 lety

    Huh, that worked surprisingly well for me. Thanks for this!

  • @simonmuoki5151
    @simonmuoki5151 Před rokem

    This has helped me understand how deep learning using neural networks works. How to use tensorflow, keras & python libraries on jupyter.

  • @twiddle7125
    @twiddle7125 Před 2 lety +6

    I know this is an old video and I know you're using the convention of X being input and Y being output, but I think it is important to really explain that since for this particular example your data is a plot of x and y points in a 28x28 grid. I was slightly confused for a while until I printed the y values to see that they were the outputs and not the y-coordinate data.

  • @DaStuntChannel
    @DaStuntChannel Před 5 lety +3

    How can you have 60000 samples as input and 10000 as target? I get
    "ValueError: Input arrays should have the same number of samples as target arrays. Found 60000 input samples and 10000 target samples."

    • @tingupingu3394
      @tingupingu3394 Před 5 lety

      You found out how to get past the error?

    • @DaStuntChannel
      @DaStuntChannel Před 5 lety

      ​@@tingupingu3394 This code is very old, I recommend you to go somewhere else, don't remember the specific fix

    • @GeeVaaz
      @GeeVaaz Před 5 lety +1

      @@tingupingu3394 from another comment here:
      NonyaSerdo
      3 meses atrás
      I had the same problem. I accidentally forgot to change "x_train" to "x_test" in the second normalize statement. Correcting that gave me the expected results.

    • @RagnarLothbrok1337
      @RagnarLothbrok1337 Před 4 lety +1

      @@GeeVaaz Thank you. I wonder how this ever worked for him in the video.

  • @newcooldiscoveries5711

    Great Job Sendex. Hope you make many more in this series

  • @ChernobylPizza
    @ChernobylPizza Před 5 lety

    I searched many videos to make my very first neural net. Out of all the videos I found, this one was the simplest. I had to change a few things to make it fit my data, but that is to be expected.