Text Classification with TensorFlow Keras ❌NLP Using Embedding and LSTM Recurrent Neural Networks

  Рет қаралды 22,387

DecisionForest

DecisionForest

Күн бұрын

Пікірлер: 43
@DecisionForest
@DecisionForest 4 жыл бұрын
Hi there! If you want to stay up to date with the latest machine learning and big data analysis tutorials please subscribe here: kzbin.info Also drop your ideas for future videos, let us know what topics you're interested in! 👇🏻
@cadenmilo8652
@cadenmilo8652 3 жыл бұрын
a trick : you can watch movies at Flixzone. Been using it for watching loads of movies recently.
@stetsondayton4491
@stetsondayton4491 3 жыл бұрын
@Caden Milo Yea, I've been watching on flixzone for since december myself :D
@maneeshgaurav1438
@maneeshgaurav1438 4 жыл бұрын
how to see classification label against every sentence, could you put more light
@maartjedejong7440
@maartjedejong7440 3 жыл бұрын
Hey! When doing the model.fit I get this error: UnimplementedError: Cast string to float is not supported [[node binary_crossentropy/Cast (defined at :1) ]] [Op:__inference_train_function_2861] Function call stack: train_function What am I doing wrong?
@aryamankukal1056
@aryamankukal1056 2 жыл бұрын
how would you implement this with one hot encoding instead of embedding layer?
@anasputhawala6390
@anasputhawala6390 2 жыл бұрын
Is your model not overfitting? 10:38 you can see that your validation loss is increasing whereas your train loss is decreasing? Isn't that a sign of over-fitting?
@breakfastwithdave8933
@breakfastwithdave8933 2 жыл бұрын
Exactly I noticed the same. Strange enough at that point the video was cut and final results not shown
@juancruzalric6605
@juancruzalric6605 3 жыл бұрын
You don't need to flatten the embedding layer? or the LSTM take care of that?
@ZD341
@ZD341 3 жыл бұрын
Your video was a lifesaver.
@vaizerdgrey
@vaizerdgrey 2 жыл бұрын
Can you please tell, how can we handle seed for Tokenizer? For example if we use the trained model for production then we will receive a completely new sentence and if we use Tokenizer to convert those words to sentence, then we will get completely new integer vector and the prediction might fail.
@delllaptop5971
@delllaptop5971 4 жыл бұрын
Hey could someone please answer why would you fit the tokenizer on only the training data and not on the test data? Wont there be some words in the test data that are not present in the training data? How does it affect accuracy?
@Rajivrocks-Ltd.
@Rajivrocks-Ltd. 4 жыл бұрын
You'll get overfitting that way i think, when you eventually deploy the model you will get words that aren't present in your model. At least this what I think. I am a novice at NLP so don't take my word for it.
@wwg681
@wwg681 3 жыл бұрын
does the length of the sentences affect the model in any way?
@NeotenicApe
@NeotenicApe 4 жыл бұрын
Hey, love your videos! Do you think you could run an example with the SNLI dataset? I have problems conceptualizing what the input should look like since there are two sentences being compared, yielding one out three possible outputs.
@DecisionForest
@DecisionForest 4 жыл бұрын
Thanks for the support mate! Don’t know the SNLI dataset.. pass me a link to see the features please
@ariouathanane
@ariouathanane 3 жыл бұрын
hello, How to do for multi class please?
@juanbomfim22
@juanbomfim22 4 жыл бұрын
Instead of being just 0 or 1, what I changes should I perform in order to be able to classificate (0, 1, 2, 3) for example?
@DecisionForest
@DecisionForest 4 жыл бұрын
Good question, for multiclass classification the most important aspect is the choice of the output layer, our Dense layer. Here we use "sigmoid" but for multiclass we would use "softmax".
@juanbomfim22
@juanbomfim22 4 жыл бұрын
@@DecisionForest Oh! Thanks for replying. I've just implemented my own example of classification following your tutorial. And now: I should only change sigmoid to softmax and what else? Dense layer to 4 (0,1,2,3) outputs? Just that?
@DecisionForest
@DecisionForest 4 жыл бұрын
@@juanbomfim22 Yes, the dense layer units set to the number of classes.
@juanbomfim22
@juanbomfim22 4 жыл бұрын
​@@DecisionForest Thank you so much!!! I'm starting in Machine Learning in Python and this tutorial is amazing. It was the only one that was helpful for me in what I wanted to do!! I did my multiclassification model and it's working :)
@DecisionForest
@DecisionForest 4 жыл бұрын
Glad to hear that! It’s an amazingly rewarding journey isn’t it? Keep up at it and always challenge yourself.
@lamikbj
@lamikbj 3 жыл бұрын
Hey thanks man,by the way, How to predict a sentence by the trained model .
@Angleishu26
@Angleishu26 3 жыл бұрын
In #create LSTM model -> model.add(LSTM(64, dropout=0.1)) Error :- cannot convert a symbolic Tensor (lstm_4/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a tensor to a numpy call, which is not supported. How to remove this error? Sir please solve it. 😥
@sailalmishra4860
@sailalmishra4860 Жыл бұрын
This is because u r not using compatible version of numpy thats compatible with the installed version of tensorflow. Try pip update both numpy and tensorflow. Should resolve this error
@marcuscheong7585
@marcuscheong7585 4 жыл бұрын
Hey, are you using a GPU? I'm trying to classify text using lstm on Kaggle and it is really slow even after using the Kaggle provided GPU accelerator
@DecisionForest
@DecisionForest 4 жыл бұрын
Nope, for these videos I run locally on my MBP i9, 32gb ram. Weird.. shouldn’t be slow as the dataset is not huge...
@brojbaelena1569
@brojbaelena1569 3 жыл бұрын
kaggle is quite slow.. try writing a project in google collab (dont forget to activate gpu)
@satadruhazra8607
@satadruhazra8607 4 жыл бұрын
I'm trying to build an intent classification model with tensorflow.. I'm facing some issues about validation accuracy and prediction accuracy.. I want some expert advice. can you provide your linkedin link or any contact info to help me out Please.
@DecisionForest
@DecisionForest 4 жыл бұрын
Can you detail the issue here? I might be able to help with some ideas.
@anastasiiag8518
@anastasiiag8518 4 жыл бұрын
Great explanaition! Thank you. Subscribed.
@DecisionForest
@DecisionForest 4 жыл бұрын
Thank you, really glad it was helpful!
@parasharupasana
@parasharupasana 4 жыл бұрын
Thanks!
@NKRKing
@NKRKing 4 жыл бұрын
Hi, thank you for this video i have question in terms of prediction. on what should i do the prediction? on test_padded ? like this predictions = model.predict(test_padded, steps=1, verbose=0) thanks
@NKRKing
@NKRKing 4 жыл бұрын
Further more, i visualize the data using confusion matrix and the half is true predicted and the half is false, Although i increase the number of epochs
@ola0x98
@ola0x98 3 жыл бұрын
@@NKRKing you have to fit the tokenizer on the test data.
@dmitrikochubei3569
@dmitrikochubei3569 4 жыл бұрын
Great stuff! also made your likes count 69 by adding another one.
@DecisionForest
@DecisionForest 4 жыл бұрын
Thank you Dmitri! Glad you found it useful.
@prasojojiwandono6189
@prasojojiwandono6189 4 жыл бұрын
thank you man :)
@DecisionForest
@DecisionForest 4 жыл бұрын
Thank you for the support. Glad it was helpful.
@juniormedjeufopa3780
@juniormedjeufopa3780 3 жыл бұрын
Thanks
8. Text Classification Using Convolutional Neural Networks
16:28
Weights & Biases
Рет қаралды 89 М.
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
Embedding Layer Keras | Embedding as a Layer | Word Embedding
15:18
Knowledge Center
Рет қаралды 7 М.
It's Over.. Becoming a Data Engineer is a Scam
8:55
DecisionForest
Рет қаралды 25 М.
244 - What are embedding layers in keras?
18:24
DigitalSreeni
Рет қаралды 22 М.
Word Embedding and Word2Vec, Clearly Explained!!!
16:12
StatQuest with Josh Starmer
Рет қаралды 356 М.
TensorFlow Tutorial 10 - Recurrent Neural Nets (RNN & LSTM & GRU)
10:30
143 - Multiclass classification using Keras
11:35
DigitalSreeni
Рет қаралды 36 М.
Simple Deep Neural Networks for Text Classification
14:47
Machine Learning TV
Рет қаралды 117 М.