Python TensorFlow for Machine Learning - Neural Network Text Classification Tutorial

Sdílet
Vložit
  • čas přidán 19. 06. 2024
  • This course will give you an introduction to machine learning concepts and neural network implementation using Python and TensorFlow. Kylie Ying explains basic concepts, such as classification, regression, training/validation/test datasets, loss functions, neural networks, and model training. She then demonstrates how to implement a feedforward neural network to predict whether someone has diabetes, as well as two different neural net architectures to classify wine reviews.
    ✏️ Course created by Kylie Ying.
    🎥 CZcams: / ycubed
    🐦 Twitter: / kylieyying
    📷 Instagram: / kylieyying
    This course was made possible by a grant from Google's TensorFlow team.
    ⭐️ Resources ⭐️
    💻 Datasets: drive.google.com/drive/folder...
    💻 Feedforward NN colab notebook: colab.research.google.com/dri...
    💻 Wine review colab notebook: colab.research.google.com/dri...
    ⭐️ Course Contents ⭐️
    ⌨️ (0:00:00) Introduction
    ⌨️ (0:00:34) Colab intro (importing wine dataset)
    ⌨️ (0:07:48) What is machine learning?
    ⌨️ (0:14:00) Features (inputs)
    ⌨️ (0:20:22) Outputs (predictions)
    ⌨️ (0:25:05) Anatomy of a dataset
    ⌨️ (0:30:22) Assessing performance
    ⌨️ (0:35:01) Neural nets
    ⌨️ (0:48:50) Tensorflow
    ⌨️ (0:50:45) Colab (feedforward network using diabetes dataset)
    ⌨️ (1:21:15) Recurrent neural networks
    ⌨️ (1:26:20) Colab (text classification networks using wine dataset)
    --
    🎉 Thanks to our Champion and Sponsor supporters:
    👾 Raymond Odero
    👾 Agustín Kussrow
    👾 aldo ferretti
    👾 Otis Morgan
    👾 DeezMaster
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: freecodecamp.org/news

Komentáře • 217

  • @KylieYYing
    @KylieYYing Před 2 lety +434

    Thanks for watching everyone! I hope you enjoy learning from the examples in this course :)

    • @mfaiz6
      @mfaiz6 Před 2 lety +1

      What are the prerequisite for this video?

    • @varadashtekar8150
      @varadashtekar8150 Před 2 lety

      Excellent session! Thank you for covering every topic and showing practical implementation of LSTM.

    • @mehdismaeili3743
      @mehdismaeili3743 Před 2 lety

      Hi, I am very excited for this video, you are a very good teacher.

    • @adamrhea2339
      @adamrhea2339 Před 2 lety

      @@mfaiz6 My personal opinion but I would say you should have some level of knowledge of working with python. Be somewhat comfortable looping and iterating through data structures like dictionaries, lists, arrays, etc. and writing functions for basic tasks and printing/writing to console. You should also know and have basic usability of numpy arrays and pandas dataframes. From here, you can learn specific things you need by searching something you don't know via google or DDG as you need!

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

      Damn, you're so cool.

  • @mohitgangrade351
    @mohitgangrade351 Před 2 lety +45

    This is exactly what I was searching yesterday! You're amazing! Thanks for this tutorial. :)

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

    That was so well-explained and practical! Looking forward to more of these on other types of machine learning models! Thank you!

  • @francis.joseph
    @francis.joseph Před 2 lety +9

    great content.
    explained in layman terms without wasting time 👌🏻

  • @jyotichetry08
    @jyotichetry08 Před 2 lety +1

    you way of explaining is so good this was the first video i watched on Neural networks and iam already in love with it.

  • @mercykiria5880
    @mercykiria5880 Před 2 lety +2

    finally!! i have finally understood everything after a month of struggling to do so. thank you sooo much

  • @prajwaldeepkhokhar7416
    @prajwaldeepkhokhar7416 Před rokem +14

    20 minutes in and am all in. I teach students ML and Data Science, and i keep studying the same myself. The young lady in the video covered all the necessary basics, and did it so well i might end up suggesting the same video to my students on multiple occasions. And yeah, at the end of this video, i am going to her channel and subscribing. Keep up the good work

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

    Really great video, great explanation of concepts in very easy/ layman terms. Well done!

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

    Thanks so much Kylie, good coding tutorial and excellent, sharp run through ML theory!
    Thanks again.

  • @ashuu9257
    @ashuu9257 Před rokem +4

    a reinforcement learning course please,please , please , really need it & you're so amazing at simplfying things and making them understand

  • @michelletan4249
    @michelletan4249 Před rokem +3

    You are so awesome! this is I am searching for! it is really help a lot! Thank you all you hard work and precious time!

  • @suomynona7261
    @suomynona7261 Před 2 lety +1

    Thank you for making this! Please make it a series if you can

  • @abtiwary
    @abtiwary Před rokem

    Thank you so much for your brilliant tutorials and courses Kylie (please do more!!!)! Could you please recommend some books on the mathematics of machine learning (and books that you found useful when you dived into the subject).

  • @RolandGrafe
    @RolandGrafe Před rokem +5

    I find your tutorial very interesting, very clear, and very convincing. My question: Also, is there a tutorial that shows the practical application of the model you created? - I would like to learn more about how this model can be practically used for evaluating and analysing new data.

  • @cvicracer
    @cvicracer Před 2 lety

    Your analogy’s are awesome very easy to understand thanks

  • @semahirachid8465
    @semahirachid8465 Před 2 lety

    Sharing your knowledge it is invaluable. Thank you 1000 times

  • @techsystems6917
    @techsystems6917 Před 2 lety

    A great one, I love your mode of teaching, simple

  • @Mong-Yun_Chen_54088
    @Mong-Yun_Chen_54088 Před 2 lety

    It's new for me that COLAB things.
    With it, I don't need deal with Python environment questions any more!!
    Amazing good tool

  • @xunililak1674
    @xunililak1674 Před 2 lety

    Nice video, you really sparked interest in ML and are looking foward to future content! Keep it going!

  • @gottfriedwilhelmvonleibniz9033

    Thank you once again Kylie!

  • @stories_VX
    @stories_VX Před 2 lety +45

    ⭐ Course Contents ⭐
    ⌨ (0:00:00) Introduction
    ⌨ (0:00:34) Colab intro (importing wine dataset)
    ⌨ (0:07:48) What is machine learning?
    ⌨ (0:14:00) Features (inputs)
    ⌨ (0:20:22) Outputs (predictions)
    ⌨ (0:25:05) Anatomy of a dataset
    ⌨ (0:30:22) Assessing performance
    ⌨ (0:35:01) Neural nets
    ⌨ (0:48:50) Tensorflow
    ⌨ (0:50:45) Colab (feedforward network using diabetes dataset)
    ⌨ (1:21:15) Recurrent neural networks
    ⌨ (1:26:20) Colab (text classification networks using wine dataset

    • @stories_VX
      @stories_VX Před 2 lety +2

      Course created by Kylie Ying

  • @lucasymc
    @lucasymc Před rokem

    Thanks a lot for this awesome video. It helped me a lot in my college project

  • @commonsense1019
    @commonsense1019 Před 2 lety

    you teach really well i am impressed seriously i mean it

  • @User_unknown1838
    @User_unknown1838 Před 2 lety +1

    @21:04 when kylie was explaining multiclass and binary classification with the example of hotdog, I first remembered Jian yang's app from Silicon Valley. I really liked that you put in a small clip of it.

  • @stevemulcahy5014
    @stevemulcahy5014 Před 11 měsíci

    This was a great video. My only questions from it would be:
    1) How would you set these projects up outside of colab?
    2) How do we utilize the model?

  • @rbrowne4255
    @rbrowne4255 Před 2 lety

    Thank you for the excellent overview!!!!

  • @duke_adi
    @duke_adi Před 9 měsíci

    Thanks Kylie for explaining very clearly the concepts in different neural network architectures, the code part was also very interesting since I got to know for the first time about imbalanced learn library and about Dropout layer for dealing with overfitting! Besides, I guess we ran the model.evaluate before training the model to show the base case of randomly choosing between two labels yields accuracy of 0.5 (probability of random selection between two classes)?

  • @walkingwithme7714
    @walkingwithme7714 Před 2 lety +1

    Thanks Kylie!!! Awesome content.

  • @abuttibalabbasi5365
    @abuttibalabbasi5365 Před 2 lety

    Great, amazing and charming work, thank you.

  • @Mutual_Information
    @Mutual_Information Před 2 lety +2

    Tutorials that go from start to finish from data to model *and* explain the surrounding concepts and theory.. those are good.
    Maybe I should start including code too.. 🤔

  • @rainpoon3834
    @rainpoon3834 Před rokem

    very clearly explained
    great job

  • @mumtahinaparvin7668
    @mumtahinaparvin7668 Před 2 lety

    You are great sister. You have helped me a lot with this tutorial. 😍

  • @rafacoluccijf
    @rafacoluccijf Před 2 lety +1

    The Silical Valley insertion was really cool.

  • @aaomms7986
    @aaomms7986 Před rokem

    Thank you so much this viedio really make me understand ML easier than ever I learn about this topic

  • @cihanyilmaz4474
    @cihanyilmaz4474 Před 5 měsíci

    I never worked on machine learning, but I can easily follow and understand what is going on. Thanks for the crystal clear and great explanation. @KylieYYing.

  • @laisnehme6857
    @laisnehme6857 Před měsícem

    Thank you so much Kylie!

  • @user-me9fp9hk1b
    @user-me9fp9hk1b Před rokem

    Great lesson, love to see more of your

  • @justinbyun5943
    @justinbyun5943 Před 2 lety

    Thanx @Kylie for such wonderful tut's - how original and through, I really learned A LOT!
    Anyway I have a quick question, after completing evaluation with test cases - is it possible (like other ML projects) passing real life data and get the answer?
    Like, we build model with 'description' and 'variety' and per given 'description' can we predict possible 'variety'?

  • @y9tw0t
    @y9tw0t Před 2 lety +15

    [04:39] Just to be clear, `NaN` is not a "none-type value" indicating that "no value [was] recorded [there]" -that'd be `undefined`. It stands for "not a number" and is the result returned from trying to do an operation that can only be done on an Int/Float (or something that will be coerced into an Int/Float) on a value that isn't an Int/Float; e.g., `4 * "dog"` in JS will return `NaN`. It means you tried to do something with a number that's irrational to do with an number. Another JS example: zero divided by zero.

  • @mehdismaeili3743
    @mehdismaeili3743 Před 2 lety

    Hi, I am very excited for your new amazing video, thanks , you are a very good teacher.

  • @user-jj2qe1xw4r
    @user-jj2qe1xw4r Před rokem

    This is interesting to watch. Thank you!

  • @daychow4659
    @daychow4659 Před 2 lety

    you are awesome ! Very very clear explanation

  • @sharecodecamp
    @sharecodecamp Před rokem

    it's learningggggg !!!! TENSORFLOW! 🔥🔥💕💕

  • @arklife467
    @arklife467 Před 9 měsíci

    Thank you very much for your tutorial!

  • @KevinHuGplus
    @KevinHuGplus Před 2 lety

    Really awesome work!

  • @MrTien-yq6cj
    @MrTien-yq6cj Před 2 lety

    i love these video, keep making it.

  • @helenhelen6862
    @helenhelen6862 Před rokem

    You are amazing! Thank you very much.

  • @Rayskydude
    @Rayskydude Před rokem

    I enjoyed your tutorial Keep it UP Girl, Your ROCK 💪

  • @jamirajamira7303
    @jamirajamira7303 Před 2 lety

    I saw the thumbnail that was Kylie, so I gave it a Like already.

  • @silentgamer2393
    @silentgamer2393 Před 2 lety +1

    Code squad. Love it. 😊

  • @daisymanmohansingh1402

    Guys this is pure diamond 💎💎💎

  • @tansimbee11
    @tansimbee11 Před 5 měsíci

    Well explained. Thanks

  • @dr.gaminijayathissa6759
    @dr.gaminijayathissa6759 Před 7 měsíci

    Superb teaching!!!

  • @user-ge5kw1cl3k
    @user-ge5kw1cl3k Před 5 měsíci

    not hot dog :D, this part is still round in my mind, and the funny part for helping me to grasp what is binary classification is

  • @heruardiyanto7479
    @heruardiyanto7479 Před rokem

    hope to see this next course about machine learning using python and tensorflow. and i want to ask, what the implemention in daily life about this course, thank you

  • @olaoye9397
    @olaoye9397 Před 11 měsíci

    Very informative thank you

  • @defaultname19315
    @defaultname19315 Před 6 měsíci

    You are a great teacher

  • @kerron_
    @kerron_ Před 2 lety

    this is really good video. watching

  • @StasPakhomov-wj1nn
    @StasPakhomov-wj1nn Před rokem

    Great course!

  • @__________________________6910

    OMG Kylie is here wow new machine learning course 😍

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

    Excellent tutorial, There are two questions. 1. Can I use open-source large language models in your text classification code for analyzing a wine review dataset?. 2. If yes plz suggest me where and how i can change.

  • @iglter5877
    @iglter5877 Před rokem

    Just grateful thak you.

  • @abubakargame19
    @abubakargame19 Před rokem

    very good video, start practice wthi this watched till 13:00

  • @moonlightfilms5279
    @moonlightfilms5279 Před 2 lety

    Oh man, was fasting today and the example at around 20:00 with the hot dog, pizza, and ice cream had me dying😅

  • @shoruparsenal
    @shoruparsenal Před 8 měsíci +2

    Some conceptual errors present in the tutorial. Scaling the data before splitting means the train dataset is informed about data from the test set which it is not supposed to know. Random oversampling prior to the split might also overestimate the performance of the model on the test dataset because of data duplication/leakage. In general, it's best to keep the test data separate before augmenting the training data.

  • @Darthneo1976
    @Darthneo1976 Před rokem

    Great video!!

  • @ISHWARAISSMS
    @ISHWARAISSMS Před 2 lety

    Great tutorial

  • @GoredGored
    @GoredGored Před 6 měsíci

    Thank you for a well crafted tutorial. My question is on what you did with the imbalanced dataset? Creating an artificial or synthetic data and use that as a basis for the ML model seems to be questionable to say the least. It feels like we are introducing a lie into the model for the sake of an artificial equal outcome and use that for prediction. I would be grateful if you can elaborate on that, or anybody else for that matter.

  • @mrrishiraj88
    @mrrishiraj88 Před 2 lety

    Thanks a million

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Před 2 lety

    awesome!

  • @vivekradhakrishna
    @vivekradhakrishna Před 2 lety +2

    Love that intro 😂 😂

  • @hsengster
    @hsengster Před rokem

    is the wine review also a feed forward neural net? cause it seemed like in the video you were alluding to it being a RNN?

  • @harshalbhangale9605
    @harshalbhangale9605 Před 2 lety

    Thanks kylie

  • @kaafoezoker1605
    @kaafoezoker1605 Před 2 lety

    Informative tutorial.

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

    I want to be as smart as "Kylie Ying" when I grow up. LMAO! 🤣🤣🤣

  • @MrBlack-cv8qn
    @MrBlack-cv8qn Před 2 lety

    This tutorial can be called "Neural networks crash course with practice problem". Thank you!

  • @user-my2zq6td8z
    @user-my2zq6td8z Před 7 měsíci

    Love it

  • @TheAZSK
    @TheAZSK Před 10 měsíci

    Sorry if this sounds rude but what was the wine one for? Is it showing the accuracy of the reviews whether its high or low rated?

  • @natgazer
    @natgazer Před rokem

    Thank you

  • @EVL624
    @EVL624 Před rokem

    1:36:40 Is it wise to set trainable=True in the embedding layer imported from the hub? Isn't the whole point that it is pre-trained?

  • @rubioIT
    @rubioIT Před rokem

    Sorry I have a really dumb question: how did you share the colab notebook so that it's editable but modifications can't be saved?

  • @varavinth5196
    @varavinth5196 Před 2 lety

    Thanks for sharing, could you make tensorflow2 object detection retraining with existing classes(labels) and adding new class tutorial

  • @itada-kys4936
    @itada-kys4936 Před 2 lety +1

    Amazing thanks :) glad to see a girl on your channel doing a tutorial for NLP !
    Nice tutorial btw

  • @satypk8664
    @satypk8664 Před 6 měsíci

    at 1:12:25 , feature scaling should be done after splitting into training & testing data in order to avoid information leakge

  • @JUIYKI
    @JUIYKI Před 2 lety

    I think you could have used an « else » here :) 0:05
    Great video !

  • @zhuolintsai9030
    @zhuolintsai9030 Před 2 lety +1

    We need Javascript TF tutorial as well. Thank you.

  • @j220493
    @j220493 Před rokem +4

    Hi, great tutorial but i think you have a mistake: you are leaking information from train to test. Both scaling and resampling must be done to the train and then to the test separately, not to the whole dataset 🙃

  • @abhinavbatta6162
    @abhinavbatta6162 Před 2 lety +1

    hey, @Kylie Ying in the diabetes model, you are having the number of neurons in first layer as 16, will it be a better option if it is 8 i.e length of feature vector. thanks.

    • @striderQED
      @striderQED Před 6 měsíci

      Thank you. and Thank you.

    • @striderQED
      @striderQED Před 6 měsíci

      I was expecting something like : tf.keras.layers.Input(shape=(8,))

  • @daisymanmohansingh1402

    Can we have custom plugin development in java using Eclipse tutorial from scratch .
    Thanks in advance .
    Great work thanks its so simplified.just WOW.

  • @OggieSutrisna
    @OggieSutrisna Před 2 lety +1

    YEEAHHH KYLIE YING LADS AND GENTS!!

  • @saty
    @saty Před rokem

    Thanks

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

    thx 4 vid !~

  • @ruizu5636
    @ruizu5636 Před rokem +1

    if you have an error with the inputs shape when you evaluate the data just do this instead of what she did:
    hub_layer = hub.KerasLayer(embedding, input_shape=[], dtype=tf.string, trainable=True)

  • @viveksachan11
    @viveksachan11 Před 2 lety

    CZcams wants me see this video z seen in my feed like ,10 times already

  • @shaikmudassir528
    @shaikmudassir528 Před rokem

    can i do ai ml model to train sensitive data does tensor-flow stores our data..?

  • @eddie_writes96
    @eddie_writes96 Před 3 měsíci

    The hotdog / not hotdog had me dying😅

  • @robertoprestigiacomo253
    @robertoprestigiacomo253 Před rokem +1

    1st example: When I tried this the first time I got almost the same accuracy, but when I restarted the kernel of the notebook and run everything again I got an initial accuracy of 65% instead of 35% and that accuracy varies b etween 60 and 70% in the next steps and finally drops to about 60% when evaluated on the test data (on multiple runs the best it got was 66% but the average is much lower)...
    Is the notebook saving the model and updating on re-run causing overfitting or is it normal?

    • @mattaolive
      @mattaolive Před rokem +1

      I believe the code randomly creates your training, validation, and test sets so the percentages of accuracy will be different between models (when you restart the notebook) because the data points used for the different sets will be different.

  • @okbabenattia3612
    @okbabenattia3612 Před 2 lety +1

    Thank you so much for this amazing content, can you make another to Federated learning

  • @YoussifMahmoud
    @YoussifMahmoud Před 6 měsíci

    can i use text classification to classify my users inputs and map this user inputs to nearly 10,000 products to automate the pricing of users entries instantly without needing a sales team ?

  • @a2thegenius343
    @a2thegenius343 Před 2 lety +1

    3rd comment
    Thx sir for educating us 😊