Python TensorFlow for Machine Learning - Neural Network Text Classification Tutorial

  Рет қаралды 314,907

freeCodeCamp.org

freeCodeCamp.org

Күн бұрын

Пікірлер: 239
@KylieYYing
@KylieYYing 2 жыл бұрын
Thanks for watching everyone! I hope you enjoy learning from the examples in this course :)
@mfaiz6
@mfaiz6 2 жыл бұрын
What are the prerequisite for this video?
@varadashtekar8150
@varadashtekar8150 2 жыл бұрын
Excellent session! Thank you for covering every topic and showing practical implementation of LSTM.
@mehdismaeili3743
@mehdismaeili3743 2 жыл бұрын
Hi, I am very excited for this video, you are a very good teacher.
@adamrhea2339
@adamrhea2339 2 жыл бұрын
@@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!
@reze_dev
@reze_dev 2 жыл бұрын
Damn, you're so cool.
@stories_VX
@stories_VX 2 жыл бұрын
⭐ 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 2 жыл бұрын
Course created by Kylie Ying
@abhinandannuli7574
@abhinandannuli7574 4 ай бұрын
the way she explained backprop is so mind blowing! loved it
@mohitgangrade351
@mohitgangrade351 2 жыл бұрын
This is exactly what I was searching yesterday! You're amazing! Thanks for this tutorial. :)
@snuffbox2006
@snuffbox2006 4 ай бұрын
This is a really nice intro course, very well designed. Kylie is so smart, speaks so clearly, explains clearly and plainly, and even a really good typist. I look forward to more tutorials from Kylie.
@prajwaldeepkhokhar7416
@prajwaldeepkhokhar7416 Жыл бұрын
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
@mercy_kiria
@mercy_kiria 2 жыл бұрын
finally!! i have finally understood everything after a month of struggling to do so. thank you sooo much
@Thomas_jeba
@Thomas_jeba 3 ай бұрын
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)
@francis.joseph
@francis.joseph 2 жыл бұрын
great content. explained in layman terms without wasting time 👌🏻
@businessTech127
@businessTech127 2 жыл бұрын
you way of explaining is so good this was the first video i watched on Neural networks and iam already in love with it.
@Luisa_Ribeiro
@Luisa_Ribeiro 2 жыл бұрын
That was so well-explained and practical! Looking forward to more of these on other types of machine learning models! Thank you!
@ashuu9257
@ashuu9257 Жыл бұрын
a reinforcement learning course please,please , please , really need it & you're so amazing at simplfying things and making them understand
@vinniepathe1443
@vinniepathe1443 5 ай бұрын
It is really good. I am halfway through and it keeps you engaged and learning at the same time. Great job Kylie.
@michelletan4249
@michelletan4249 2 жыл бұрын
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!
@y9tw0t
@y9tw0t 2 жыл бұрын
[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.
@User_unknown1838
@User_unknown1838 2 жыл бұрын
@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.
@ИванБорзых-е9п
@ИванБорзых-е9п 2 жыл бұрын
Haha classic!!
@yizzi25
@yizzi25 2 жыл бұрын
Really great video, great explanation of concepts in very easy/ layman terms. Well done!
@rafacoluccijf
@rafacoluccijf 2 жыл бұрын
The Silical Valley insertion was really cool.
@RolandGrafe
@RolandGrafe Жыл бұрын
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.
@Mutual_Information
@Mutual_Information 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.. 🤔
@Arcane_Dragon878
@Arcane_Dragon878 4 ай бұрын
Solution to the hub layers probleb: model = tf.keras.Sequential([ tf.keras.layers.Lambda(lambda x: hubs_layer(x)), tf.keras.layers.Dense(16, activation='relu'), tf.keras.layers.Dense(16, activation='relu'), tf.keras.layers.Dense(1, activation='sigmoid') ]) In a nutshell HUB is recognized as a keras layer so you have t turn it into one
@codewithemmaprime
@codewithemmaprime 25 күн бұрын
this is great
@Arcane_Dragon878
@Arcane_Dragon878 25 күн бұрын
@@codewithemmaprime thanks bro
@faridrosyidi7467
@faridrosyidi7467 13 күн бұрын
thanks bro, it helps me (I just waste my 1 hour LoL)
@foremarke
@foremarke 2 жыл бұрын
Thanks so much Kylie, good coding tutorial and excellent, sharp run through ML theory! Thanks again.
@jamirajamira7303
@jamirajamira7303 2 жыл бұрын
I saw the thumbnail that was Kylie, so I gave it a Like already.
@stevemulcahy5014
@stevemulcahy5014 Жыл бұрын
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?
@xunililak1674
@xunililak1674 2 жыл бұрын
Nice video, you really sparked interest in ML and are looking foward to future content! Keep it going!
@gottfriedwilhelmvonleibniz9033
@gottfriedwilhelmvonleibniz9033 2 жыл бұрын
Thank you once again Kylie!
@sharecodecamp
@sharecodecamp 2 жыл бұрын
it's learningggggg !!!! TENSORFLOW! 🔥🔥💕💕
@jackolson7071
@jackolson7071 8 ай бұрын
@1:34:08 I get this error: Failed to convert a NumPy array to a Tensor (Unsupported object type float). Can't convert strings to floats, and I am using Excel file instead of csv file. I did try to convert my Excel file to csv but that didn't work. Not sure why your NumPy array gets coverted to Tensor and mine doesn't
@silentgamer2393
@silentgamer2393 2 жыл бұрын
Code squad. Love it. 😊
@walkingwithme7714
@walkingwithme7714 2 жыл бұрын
Thanks Kylie!!! Awesome content.
@mumtahinaparvin7668
@mumtahinaparvin7668 2 жыл бұрын
You are great sister. You have helped me a lot with this tutorial. 😍
@Rayskydude
@Rayskydude Жыл бұрын
I enjoyed your tutorial Keep it UP Girl, Your ROCK 💪
@Mong-Yun_Chen_54088
@Mong-Yun_Chen_54088 2 жыл бұрын
It's new for me that COLAB things. With it, I don't need deal with Python environment questions any more!! Amazing good tool
@aaomms7986
@aaomms7986 Жыл бұрын
Thank you so much this viedio really make me understand ML easier than ever I learn about this topic
@cihanyilmaz4474
@cihanyilmaz4474 Жыл бұрын
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.
@ArdhiSasongko-h7p
@ArdhiSasongko-h7p Жыл бұрын
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
@commonsense1019
@commonsense1019 2 жыл бұрын
you teach really well i am impressed seriously i mean it
@lucasymc
@lucasymc Жыл бұрын
Thanks a lot for this awesome video. It helped me a lot in my college project
@techsystems6917
@techsystems6917 2 жыл бұрын
A great one, I love your mode of teaching, simple
@ИванНестеренко-ы5д
@ИванНестеренко-ы5д 2 жыл бұрын
This is interesting to watch. Thank you!
@wishIKnewHowToLove
@wishIKnewHowToLove Жыл бұрын
57:11 how did you do double mouse???????
@suomynona7261
@suomynona7261 2 жыл бұрын
Thank you for making this! Please make it a series if you can
@abubakargame19
@abubakargame19 2 жыл бұрын
very good video, start practice wthi this watched till 13:00
@moonlightfilms5279
@moonlightfilms5279 2 жыл бұрын
Oh man, was fasting today and the example at around 20:00 with the hot dog, pizza, and ice cream had me dying😅
@moonlightfilms5279
@moonlightfilms5279 2 жыл бұрын
Was saved by the Silicon Valley clip😂
@dr.gaminijayathissa6759
@dr.gaminijayathissa6759 Жыл бұрын
Superb teaching!!!
@daisymanmohansingh1402
@daisymanmohansingh1402 2 жыл бұрын
Guys this is pure diamond 💎💎💎
@cvicracer
@cvicracer 2 жыл бұрын
Your analogy’s are awesome very easy to understand thanks
@abuttibalabbasi5365
@abuttibalabbasi5365 2 жыл бұрын
Great, amazing and charming work, thank you.
@__________________________6910
@__________________________6910 2 жыл бұрын
OMG Kylie is here wow new machine learning course 😍
@JaHaHa7205
@JaHaHa7205 3 ай бұрын
Will check later. Looks great
@defaultname19315
@defaultname19315 Жыл бұрын
You are a great teacher
@abtiwary
@abtiwary Жыл бұрын
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).
@MrTien-yq6cj
@MrTien-yq6cj 2 жыл бұрын
i love these video, keep making it.
@semahirachid8465
@semahirachid8465 2 жыл бұрын
Sharing your knowledge it is invaluable. Thank you 1000 times
@马正-w5s
@马正-w5s 2 жыл бұрын
Great lesson, love to see more of your
@laisnehme6857
@laisnehme6857 8 ай бұрын
Thank you so much Kylie!
@EVL624
@EVL624 2 жыл бұрын
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?
@duke_adi
@duke_adi Жыл бұрын
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)?
@mehdismaeili3743
@mehdismaeili3743 2 жыл бұрын
Hi, I am very excited for your new amazing video, thanks , you are a very good teacher.
@rbrowne4255
@rbrowne4255 2 жыл бұрын
Thank you for the excellent overview!!!!
@MAKARANDMALI
@MAKARANDMALI 9 ай бұрын
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.
@KevinHuGplus
@KevinHuGplus 2 жыл бұрын
Really awesome work!
@satypk8664
@satypk8664 Жыл бұрын
at 1:12:25 , feature scaling should be done after splitting into training & testing data in order to avoid information leakge
@daychow4659
@daychow4659 2 жыл бұрын
you are awesome ! Very very clear explanation
@vivekradhakrishna
@vivekradhakrishna 2 жыл бұрын
Love that intro 😂 😂
@rainpoon3834
@rainpoon3834 2 жыл бұрын
very clearly explained great job
@shoruparsenal
@shoruparsenal Жыл бұрын
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.
@arklife467
@arklife467 Жыл бұрын
Thank you very much for your tutorial!
@superfreiheit1
@superfreiheit1 6 ай бұрын
I like the last tutorial. I got Accuracy : 85 % with logistic regression so I wonder whetever model selection is more important then just using neurals
@StasPakhomov-wj1nn
@StasPakhomov-wj1nn 2 жыл бұрын
Great course!
@IshaqIbrahim3
@IshaqIbrahim3 2 жыл бұрын
I want to be as smart as "Kylie Ying" when I grow up. LMAO! 🤣🤣🤣
@BeauCarnes
@BeauCarnes 2 жыл бұрын
Same. :)
@KumR
@KumR 5 ай бұрын
Hi Kylie.... Big fan of your work... Quick Question. In your nn model, why did u not add any input numbers or nodes ?
@ganjeblerencehanma6577
@ganjeblerencehanma6577 3 ай бұрын
thanks for the tutorial 👏👏
@itada-kys4936
@itada-kys4936 2 жыл бұрын
Amazing thanks :) glad to see a girl on your channel doing a tutorial for NLP ! Nice tutorial btw
@helenhelen6862
@helenhelen6862 Жыл бұрын
You are amazing! Thank you very much.
@GoredGored
@GoredGored Жыл бұрын
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.
@tansimbee11
@tansimbee11 Жыл бұрын
Well explained. Thanks
@kvelez
@kvelez 6 ай бұрын
Great course.
@Darthneo1976
@Darthneo1976 2 жыл бұрын
Great video!!
@walkerjian
@walkerjian 2 жыл бұрын
trying to replicate this in a Jupyter notebook launched from a local install of anaconda. It barfs at the import tensorflow_hub as hub step. Googling seems to indicate there is some sort of trojan in effect with version hell installing tensorflow_hub in anaconda. Do you have any thoughts on this? I think it important to be able to replicate work such as this away from the ip harvesting cloud farms...
@walkerjian
@walkerjian 2 жыл бұрын
fixed it with a python 3.7 environment in anaconda, sigh
@dioutoroo
@dioutoroo 8 ай бұрын
Does anyone follow along and encounter error while creating the model? It says, "Only instances of 'keras.Layer' can be added to Sequential model... Thank you
@andrewho471
@andrewho471 5 ай бұрын
Yes same error message and I just trying to follow and run the codes this week. Is it due to latest version of Keras ? What's the solution ? Any updates from Kylie ? Thanks.
@abhinavbatta6162
@abhinavbatta6162 2 жыл бұрын
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 Жыл бұрын
Thank you. and Thank you.
@striderQED
@striderQED Жыл бұрын
I was expecting something like : tf.keras.layers.Input(shape=(8,))
@heruardiyanto7479
@heruardiyanto7479 2 жыл бұрын
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
@kaafoezoker1605
@kaafoezoker1605 2 жыл бұрын
Informative tutorial.
@kaafoezoker1605
@kaafoezoker1605 2 жыл бұрын
I am good the tutorial was straight forward.
@YoussifMahmoud
@YoussifMahmoud Жыл бұрын
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 ?
@MrBlack-cv8qn
@MrBlack-cv8qn 2 жыл бұрын
This tutorial can be called "Neural networks crash course with practice problem". Thank you!
@ISHWARAISSMS
@ISHWARAISSMS 2 жыл бұрын
Great tutorial
@j220493
@j220493 2 жыл бұрын
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 🙃
@robertoprestigiacomo253
@robertoprestigiacomo253 2 жыл бұрын
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 2 жыл бұрын
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.
@olaoye9397
@olaoye9397 Жыл бұрын
Very informative thank you
@TheAZSK
@TheAZSK Жыл бұрын
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?
@feeeeet
@feeeeet 2 жыл бұрын
I think you could have used an « else » here :) 0:05 Great video !
@hsengster
@hsengster 2 жыл бұрын
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?
@OggieSutrisna
@OggieSutrisna 2 жыл бұрын
YEEAHHH KYLIE YING LADS AND GENTS!!
@rubioIT
@rubioIT 2 жыл бұрын
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?
@kerron_
@kerron_ 2 жыл бұрын
this is really good video. watching
@TheAniGuyz
@TheAniGuyz 2 жыл бұрын
Broo I can't cantrol game I have give function too and onkeypress also but when I try to move it not move in your 3 games u posted it two years ago
@AdityaKumar-ij5ok
@AdityaKumar-ij5ok 2 жыл бұрын
cant get the CSV file to upload in the website, help
@ruizu5636
@ruizu5636 2 жыл бұрын
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)
@shaikmudassir528
@shaikmudassir528 2 жыл бұрын
can i do ai ml model to train sensitive data does tensor-flow stores our data..?
Machine Learning for Everybody - Full Course
3:53:53
freeCodeCamp.org
Рет қаралды 8 МЛН
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,4 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
But what is a neural network? | Deep learning chapter 1
18:40
3Blue1Brown
Рет қаралды 18 МЛН
How I Would Learn Python FAST (if I could start over)
12:19
All Machine Learning algorithms explained in 17 min
16:30
Infinite Codes
Рет қаралды 532 М.
The Secret to 90%+ Accuracy in Text Classification
10:34
Pritish Mishra
Рет қаралды 53 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 358 М.
Tips for C Programming
34:41
Nic Barker
Рет қаралды 44 М.
Deepseek R1 - The Era of Reasoning models
16:12
AI Jason
Рет қаралды 11 М.
How Deep Neural Networks Work - Full Course for Beginners
3:50:57
freeCodeCamp.org
Рет қаралды 4,6 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН