Це відео не доступне.
Перепрошуємо.

Tensorflow Tutorial for Python in 10 Minutes

Поділитися
Вставка
  • Опубліковано 15 сер 2024
  • Want to build a deep learning model?
    Struggling to get your head around Tensorflow?
    Just want a clear walkthrough of which layer to use and why?
    I got you!
    Building neural networks with Tensorflow doesn’t need to be a nightmare. If you follow a couple of key steps you can be up and running and using Tensorflow to predict a whole bunch of stuff. In fact, you can learn how to do it with Python in just 10 minutes. By the end of this video you’ll have built your very own Tensorflow model to predict churn inside of a Jupyter Notebook.
    What you'll learn:
    1. Build a simple Tensorflow model to predict Churn
    2. Training the model and make predictions on test data with Pandas
    3. Save your model to disc and reload it to a Jupyter Notebook for reuse
    Chapters
    0:00 - Start
    0:18 - Introduction
    0:26 - What is Tensorflow
    1:03 - Start of Coding
    2:47 - Importing Tensorflow into a Notebook
    3:48 - Building a Deep Neural Network with Fully Connected Layers
    7:13 - Training/Fitting a Tensorflow Network
    8:24 - Making Predictions with Tensorflow
    9:15 - Calculating Accuracy from Tensorflow Predictions
    9:50 - Saving Tensorflow Models
    10:09 - Loading Tensorflow Models
    GET THE CODE!
    github.com/nic...
    Links Mentioned
    Tensorflow Documentation: www.tensorflow...
    Pandas Crash Course: • Pandas for Data Scienc...
    If you have any questions, please drop a comment below!
    Oh, and don't forget to connect with me!
    LinkedIn: / nicholasrenotte
    Facebook: / nickrenotte
    GitHub: github.com/nic...
    Happy coding!
    Nick
    P.s. Let me know how you go and drop a comment if you need a hand!

КОМЕНТАРІ • 238

  • @ShivanS
    @ShivanS 3 роки тому +163

    These videos are so good. A whole end-to-end project in 10 minutes. And a bit of humour and art tossed in there.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +6

      Thanks so much @Shivan! Glad you enjoyed it!

    • @shallusharma4687
      @shallusharma4687 2 роки тому

      #TensorFlow-- python Library #Explanation with Example
      ua-cam.com/video/ojevo88RVaE/v-deo.html

    • @Duhgy
      @Duhgy 2 роки тому +2

      Yeah but you aren’t taught anything, you cant learn ml in 10 mins I’m sorry

    • @priyam66
      @priyam66 Рік тому +1

      @@Duhgy that is just to refresh some basics pertaining to Tensorflow. learning ML requires a hell lot of other steps from EDA to Feature Engineering to Feature Selection to HypterParameter Tuning.

    • @josephmyalla3611
      @josephmyalla3611 Рік тому

      ​@@NicholasRenotte ❤

  • @apollog6793
    @apollog6793 2 роки тому +100

    I like how he is doing 10min tutorial but still included a humor intro

  • @campbellmcternan3902
    @campbellmcternan3902 4 місяці тому +6

    I normally never comment on tutorial videos but this was very excellently done! This was exceedingly concise and clear

  • @kyleDoesCoding
    @kyleDoesCoding 10 місяців тому +6

    This is the most amazing tutorial I have ever watched. I'm not ashamed to say I sometimes require extra explaining but this guy is just spot on with his explanations.

  • @rowlandgoddy-worlu3382
    @rowlandgoddy-worlu3382 2 роки тому +16

    One thing I like about his videos is how basic he breaks down complex concepts for easy comprehension!
    Having knowledge is one thing but passing that knowledge on is another. Nicholas is doing great at giving that knowledge!

  • @nonoobott8602
    @nonoobott8602 2 роки тому +13

    Absolutely brilliant. End-to-end in just 10 minutes. Very explicit. Thanks for sharing

  • @knitronics
    @knitronics Рік тому +19

    This tutorial is an absolute life-saver. Well done!

  • @nickcampbell9228
    @nickcampbell9228 2 роки тому +2

    Didn't need to watch those 2 hours video. With your video, I was able to understand the base and the rest is just research and finding codes I need. This helped so much. Thank you! You are the best!

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому +1

      YESSS! Once you get the structuring it's all just a matter of building different architectures where needed!

  • @adrianp9283
    @adrianp9283 Рік тому +13

    Hey guys if your trying out this video in 2023 July like me you need this line changed for it to run X = pd.get_dummies(df.drop(['Churn', 'Customer ID'], axis=1), dtype=float)
    the dtype=float is the most important was trying to figure why it wouldn't train all morning and just cracked it.

    • @dmotson
      @dmotson Рік тому

      very helpful thanks!

    • @shaman3198
      @shaman3198 11 місяців тому

      Thank you so much !!

  • @tiaantoinette8047
    @tiaantoinette8047 3 роки тому +6

    Went along with you and got .8 on the last epoch, but had .78 on the accuracy score. Loved this tutorial; it was so well explained. Thanks!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Awesome stuff @Tia, awesome work!

    • @mariuszzacharuk6167
      @mariuszzacharuk6167 2 роки тому +1

      I've to say - great stuff, but you must be carefull with input dataset.
      Because of some missing values in "Total Charges", it's treated as an object instead of series of numbers.
      This leads to situation, when we feed layer with dimention over 6500 (which is close to cardinaltiy of training set - and this should be huge red flag - at least for example Random Forest prediction models are very bad in this circumstances).
      After cleaning input dataset, we end up with dimention = 45, which is reasonable in this case.

    • @shallusharma4687
      @shallusharma4687 2 роки тому

      #TensorFlow-- python Library #Explanation with Example
      ua-cam.com/video/ojevo88RVaE/v-deo.html

  • @SaptadeepDutta_Ex-Xerox
    @SaptadeepDutta_Ex-Xerox 2 роки тому +2

    Thanks for reaching the heart of the matter (4:07) so quickly and then explaining these '4 lines' so well.

  • @KevinSmith-qt4hz
    @KevinSmith-qt4hz 2 роки тому +4

    Although this isn't an actual tutorial, it is cool to see you build a model so quickly!

  • @winstonyeung1461
    @winstonyeung1461 2 роки тому +4

    Sir, as of all your other tutorials, it is so self-explanatory and clearly defined. Thank you so much.

    • @shallusharma4687
      @shallusharma4687 2 роки тому

      #TensorFlow-- python Library #Explanation with Example
      ua-cam.com/video/ojevo88RVaE/v-deo.html

  • @FaroukYahaya-xi4ri
    @FaroukYahaya-xi4ri 3 місяці тому

    epitome of greatness. Fashion Model looking guy having the best ML/AI lessons on youtube! xD

  • @IamRileyofficial
    @IamRileyofficial 8 місяців тому +1

    Excellent video, this was short, very clear, and easy follow. Great job, and thank you for this!

  • @Billy-te3mz
    @Billy-te3mz 3 роки тому +1

    Top video, mate. Usually any Aussie who pronounces data as “day-ta” instead of the objectively superior “dah-ta” won’t win my respect. I’m willing to look past this for you xx

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +2

      Cheers @Billy, I'll drop a "dah-ta" for you in one of the future videos 🤣my US colleagues have given up on trying to convert me!

  • @enewhuis
    @enewhuis Рік тому

    This is a perfect introduction to sharing with people on any team that works with someone working with ML. :D

  • @ZiRo175
    @ZiRo175 2 роки тому +3

    hey mate just watched your video and thought it was super useful to my learning. You explain everything very well (look good doing so) and left out the unimportant details. Thank you for this content!

  • @michaelareay1037
    @michaelareay1037 Рік тому +3

    Excellent presentation. Straight to the point, easy to follow and well explained.

  •  2 роки тому +2

    I am about to choose a major at university as a high school student! you would be the one who has been inspiring me to learn AI! what an amazing channel bro!

  • @maryrooster8737
    @maryrooster8737 Рік тому

    Thank you! Up until now I've only done old skool supervised learning. With your tutorial I'm ready to enter the big leagues!!

  • @spiritfly8210
    @spiritfly8210 3 роки тому +3

    Thankyou so much Nicholas, this is what I was looking for, whole story in 10 minutes, Tq so much,brilliant effort.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      It's a bit of a crash course but it goes through the basics right?! 😃

  • @goboy6882
    @goboy6882 2 роки тому +1

    Short and sweet! I'll add it to my memory palace. Thanks again.

  • @akshitdayal2689
    @akshitdayal2689 3 роки тому +4

    A much needed video! Thank you for the great work!!

  • @paulbergstedt1892
    @paulbergstedt1892 7 місяців тому +2

    When i tried to run through this exercise i ran into an issue:
    model.fit(X_train, y_train, epochs=200, batch_size=32)
    gives errorValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type int).
    So to get around this - I converted X and y train to float32
    X_train = X_train.astype('float32')
    y_train = y_train.astype('float32')
    Later i ran into a similar issue with:
    y_hat = model.predict(X_test)
    y_hat = [0 if val < 0.5 else 1 for val in y_hat]
    So again - converted X_test = X_test.astype('float32')
    Everything seemed to complete as expected with 0.79 accuracy score.
    Thoughts?

  • @acb_gamez
    @acb_gamez 2 роки тому +7

    This was awesome man thanks. I got a good understanding of the flow of tensor flow and also the things I need to learn to become proficient. I def need to understand more about the different network types/shapes and their use cases, as well as the activation algorithms. Also is nice to know that I don't need to dive too deep into learning about the backpropagation and calculus because TF takes care of all of that!

  • @LongNguyen-ef5qd
    @LongNguyen-ef5qd 2 роки тому +2

    I totally love your dedication on each videos bro !! Thanks for your hard work and keep it going !!!

    • @shallusharma4687
      @shallusharma4687 2 роки тому

      #TensorFlow-- python Library #Explanation with Example
      ua-cam.com/video/ojevo88RVaE/v-deo.html

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому

      Thanks a mil for checking it out @Nguyen Long!!

  • @user-rj8mk6fz1u
    @user-rj8mk6fz1u Рік тому +1

    Can you please cover fall detection ?
    I've been looking for tutorials on it for 6 hours on internet and i couldn't find a helpful resource..
    you explain and makes things everything so easy to understand and no one does it like you !!

  • @scarleyxo
    @scarleyxo 3 роки тому +2

    Thanks for sharing this! Can’t wait to watch some more of your content.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Thanks so much @Scarlett, plenty more to come!

  • @cchingwe
    @cchingwe Місяць тому

    I have been "tensored"! Hopefully this is the beginning of my AI career! Thank you

  • @YTantirungrotechai
    @YTantirungrotechai 2 роки тому +2

    This is really useful. Give me a much clearer idea on how it works.

  • @raphroum6486
    @raphroum6486 Рік тому +1

    Understood one word out of 5, but this will for sure make me wants to work with it.

  • @riomorder
    @riomorder 6 місяців тому

    Exactly what I am looking for. Something straight forward

  • @notarealhandle123
    @notarealhandle123 3 роки тому +5

    Add to it 1 month to start understanding what it is that you are doing and how to improve your models.

  • @protovici1476
    @protovici1476 3 роки тому +4

    I remember my grad days for data science and this would still scare me for a test like that lol. Great video!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Hahahah, ikr, man I've been working with TimeDistributed layers right now and it's giving me the same nightmares!

    • @terristhompson9860
      @terristhompson9860 2 роки тому

      How long and time consuming was grad school for data science? Could it be done with a full time data science job?

    • @protovici1476
      @protovici1476 2 роки тому +1

      @@terristhompson9860 2.5 years and fairly time consuming given the various complex topics it covered (the college is nationally recognized). You'll need a heavy background in stats/computer sciences to obtain a data science job (a real one not just by name working in just excel or the like). One just can't go straight into becoming a lawyer without education just like data science.

    • @terristhompson9860
      @terristhompson9860 2 роки тому

      @@protovici1476I’ll let you know if that last part is true or not after my interview next week.

  • @vikasyaduvanshi2222
    @vikasyaduvanshi2222 3 роки тому +2

    Thanx for sharing your knowledge with us bro. U explain so easily and effectively

  • @anshXR
    @anshXR 2 роки тому +5

    Watch it in 2x to learn Tensorflow in 5 minutes

  • @lunam7249
    @lunam7249 Рік тому +19

    you didnt explain what "churn" means😓😓😓

    • @amleth_prince_of_denmark
      @amleth_prince_of_denmark 8 місяців тому +10

      Customer churn is the percentage of customers who stopped purchasing your business's products or services during a certain period of time. Your customer churn rate indicates how many of your existing customers are not likely to make another purchase from your business.

    • @apricotcomputers3943
      @apricotcomputers3943 3 місяці тому +2

      He's still learning 😅

    • @lunam7249
      @lunam7249 3 місяці тому +1

      @@amleth_prince_of_denmark thx!!

  • @fastgeorge3104
    @fastgeorge3104 10 місяців тому

    Perfect introduction, thanks a lot! Got me over that first big hurdle

  • @sachinsanand2484
    @sachinsanand2484 2 роки тому

    You are the best, Nicholas. Just Brilliant!!

  • @brianvanvlymenpaws
    @brianvanvlymenpaws Рік тому

    Finally I understood thank you for explicit expansion of those attributes.

  • @mamadouaw3129
    @mamadouaw3129 9 місяців тому

    This one video made me subscrib immediately to your channel and like all videos of you ! so perfect and time saving

  • @hggaming911
    @hggaming911 Рік тому +2

    This video is awesome, I have two questions because I'm new in Tensorflow,
    1- Do we need to encode numeric data in the data sheet before we start building the model?, because I didn't see that in the video.
    2- How we can map the prediction results 0, 1 to Yes, No as per the data sheet?

  • @sumers9396
    @sumers9396 8 місяців тому

    your videos are really helping man! appreciate it!

  • @jinanlife
    @jinanlife 3 роки тому +2

    OK. you have the biggest eyes on the planet. YOU WIN!

  • @petersimon985
    @petersimon985 3 місяці тому

    so brilliantly!!!
    Very unselfish 🙏💐

  • @aidaisayas3033
    @aidaisayas3033 5 місяців тому

    very helpful. made this seem "easy", which it def is not. Thanks!

  • @fukatinsaan522
    @fukatinsaan522 3 роки тому +1

    Okay! This was much needed. Thenks!

  • @husammasalkhi7817
    @husammasalkhi7817 Рік тому

    Dude, very nice compact video, thanks for making it!

  • @anirbanchakraborty69
    @anirbanchakraborty69 3 роки тому +1

    So perfectly explained. Thank you

  • @yosaikan
    @yosaikan 3 роки тому +2

    EXCELLENT tutorial.
    Thank you..

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Awesome stuff @Mohamed, glad you enjoyed it!

  • @edwardseverinsen5598
    @edwardseverinsen5598 Рік тому

    0:23 _NICHOLAS RENOTTE - WORRIED ABOUT THE TIME LIMIT_ *Talking fast* LOL, that made me laugh really hard. I also enjoyed the video.

  • @ProfQED
    @ProfQED 13 днів тому

    great! thanks dear Nicholas

  • @hosseinsafari7514
    @hosseinsafari7514 Місяць тому

    Thank you for the awesome video.

  • @paulburnett1963
    @paulburnett1963 2 роки тому +1

    great job and nice and concise work..

  • @carlostasaycosilva7739
    @carlostasaycosilva7739 3 роки тому +1

    amazing video easy to understand

  • @coolstudios8273
    @coolstudios8273 10 місяців тому

    Lately I've been developing a large Tensorflow model, and I'm getting out of memory errors, from what I've learned it seems the best solution to this road block is gradient checkpointing, however there is little to no resources online about it. Could you make a video covering gradient checkpointing?

  • @joshlsullivan
    @joshlsullivan 9 місяців тому

    Great video, Nicholas.

  • @mariamissa2458
    @mariamissa2458 2 роки тому +1

    wow great and fast ! thank you!

  • @sonnybigler8726
    @sonnybigler8726 Рік тому

    This was very helpful. Thank you very much.

  • @domillima
    @domillima Місяць тому

    How did you decide number of neurons to include in your sense layers? Do these relate to the number of feature columns in your data set at all? Or just a random/empiric choice?

  • @mytechnotalent
    @mytechnotalent 3 роки тому +4

    This is brilliant! Well done Nicholas so helpful!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Thanks so much @Kevin! If you're interested, maybe check out Object Detection with Tensorflow next! ua-cam.com/video/yqkISICHH-U/v-deo.html

  • @vikaspal3384
    @vikaspal3384 2 роки тому

    To the mark. Keep going!

  • @davidcordova1773
    @davidcordova1773 2 роки тому

    awesome and simple explanation

  • @hikmetemre6837
    @hikmetemre6837 Рік тому

    Cheers mate u are doing brilliant things!

  • @pahadianalyst
    @pahadianalyst 5 місяців тому

    This was awesome

  • @shounsalaji8171
    @shounsalaji8171 Рік тому

    absolutly subscribed

  • @IronSmasher-ie5ei
    @IronSmasher-ie5ei Місяць тому +1

    I would like to resolve an error I came across when implementing the code:
    Code to train the model for a certain amount of epochs:
    model.fit(X_train, y_train, epochs=10, batch_size=32)
    Error:
    Failed to convert a NumPy array to a Tensor (Unsupported object type int).

  • @TigerFitoff
    @TigerFitoff 4 місяці тому

    good video. just wish you would've done the MNIST dataset

  • @jiyanshsonofdr.rajesh8516
    @jiyanshsonofdr.rajesh8516 Рік тому +1

    Great work...

  • @gustavojuantorena
    @gustavojuantorena 3 роки тому +1

    Another great video 👏

  • @blogblocks8370
    @blogblocks8370 2 роки тому +2

    What is Customer Churn?

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому

      Heya, it's to do with predicting customers that are likely to leave your business (e.g. go to another company or stop using your service altogether)!

  • @emiliocuberos
    @emiliocuberos Рік тому

    Great video, veeery instructive and useful. ¡Gracias!

  • @pranaliudhan5932
    @pranaliudhan5932 Рік тому

    Yeh,It's Really helpful ,Thank you for the video

  • @poe12
    @poe12 Рік тому

    Subbed! The video is so good!

  • @astronaut205
    @astronaut205 3 роки тому +1

    Great video..
    Only thing that troubled me was the data selection using pandas but I will find out

  • @Andy-rq6rq
    @Andy-rq6rq 3 роки тому +3

    😂loved the intro

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      🤣 not gonna lie, that was me when I first started learning it!

  • @hunsnowboarder02
    @hunsnowboarder02 3 роки тому +2

    I love your videos! I have a small problem with this one though. This is rather keras and not tensorflow. With plain tensorflow you need lots more coding (which of course comes with greater flexibility)

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +4

      Heya, ultimately using Keras with a Tensorflow backend. You still have a lot of flexibility running using the Sequential API, I'd agree though, there is a lot more flexibility using direct tensorflow layers. In my opionion however unless you're creating complex models or performing research it seems like overkill for most use cases.

  • @AIWizHash
    @AIWizHash Рік тому +2

    Really great Churn Model explained in TensorFlow but,
    why use pd.get_dummies() for the data preprocessing?

    • @jwilliams8210
      @jwilliams8210 11 місяців тому +1

      I had trouble understanding that as well, although in fairness to Nicholas, I think his real purpose was to show the process of TF neural network synthesis, as opposed to a real use case of one shot encoding of the columns. I dropped Monthly and Total Charges (and tenure as well) as I did not see any benefit of adding so many columns. Perhaps that was a vestige of an earlier video? Still pretty damn good for 10 minutes...

    • @AIWizHash
      @AIWizHash 11 місяців тому +1

      I could implement a churn model in rt thanks to Nicholas

  • @brianthomas9148
    @brianthomas9148 2 роки тому +1

    Beautiful!!!!

  • @randomcomputer7248
    @randomcomputer7248 4 місяці тому

    What is the output of this ? Having a number like 0.8 is of no use when I want to see how many have churned. You could just have put a filter on the Excel sheet on the Churn column !

  • @ec92009y
    @ec92009y 2 роки тому

    I had a little trouble getting the CSV file in place. It would have been great to point to the file upload capability in Colab. Other then that, awesome! THX.

  • @blackamericanlesbianprofes4357

    Thank you for sharing. Your video has helped me learn a little more about TensorFlow with Python. 13may23

  • @Felicia-126
    @Felicia-126 Рік тому

    Great video!

  • @bunnybag5197
    @bunnybag5197 Рік тому

    Good video mate.

  • @cmb42
    @cmb42 6 місяців тому

    Very helpful

  • @striderQED
    @striderQED 9 місяців тому

    Nice, thanks.

  • @livingmybestlife8410
    @livingmybestlife8410 10 місяців тому

    Love This!

  • @midnightrun5
    @midnightrun5 2 роки тому

    you are a rockstar.

  • @apositron84
    @apositron84 Рік тому

    Fantastic, after watching this video, making a couple of notes, I'm off to apply for an AI job at NASA.

  • @21EC
    @21EC 5 місяців тому

    Does it enable to train any kind of task required to achieve? can it learn from it for example how to do videos correctly? (Im a complete total noob in AI so I have no idea)

  • @heyricksander
    @heyricksander 7 місяців тому

    Please help. I ran the tutorial in google colab, got the model out to drive, then back into the colab notebook.
    I dont understand what i am supposed to do with the model once it's ready.
    This tutorial doesnt like, open it up and look at what it learned.
    Can someone please offer guidance?

  • @jochemstoel
    @jochemstoel Місяць тому

    What is this second Dense layer for? You skip over it only saying it's a secondary layer. Why does it have a different number of units?

  • @reihanehmirjalili7467
    @reihanehmirjalili7467 2 роки тому +1

    Thanks for this video Mick. I just think it would be better and more understandable for beginners if you go more into details and explain them more

  • @harishiva_rg
    @harishiva_rg 7 місяців тому

    Why 32 and 64 units in the dense layers? How to know the no. of neurons to have in my NN layers?

  • @inquisitivelearner8649
    @inquisitivelearner8649 11 місяців тому

    You are amazing!

    • @inquisitivelearner8649
      @inquisitivelearner8649 11 місяців тому

      Compile - When computer turns code into machine language (the language understood by the computer)

  • @user-qj2zj3gu1f
    @user-qj2zj3gu1f 9 місяців тому

    How to fix AttributeError: module 'numpy' has no attribute 'object' while importing tensorflow?

  • @negalema9780
    @negalema9780 Рік тому

    these videos is very good how can i develop data set for deep learning model

  • @longhotsummergames
    @longhotsummergames 11 місяців тому

    I don't understand these 2 lines from section 0 Import data:
    ➡ X = pd.get_dummies (df.drop(['Churn', 'Customer ID'], axis=1))
    ➡ X_train, X_test, y_train, y_test = train_test_split (X, y, test_size=.2)
    What's the difference between X_train and X_test?

  • @ici6308
    @ici6308 Рік тому

    Fantastic !!