very useful video.....easy to understand......but when i tried the same code getting below error in the line print(df.iloc[:,0].apply(text_cleaning)) AttributeError: 'set' object has no attribute 'words' please help me out
@CodeWithAarohi3 жыл бұрын
Send me your jupyter notebook on my mail id so that i can check it
@JhonPereda2 жыл бұрын
1 year late but running through this now and encountered the same error. The reason this is happening is that when Aarohi was showing us how stopwords work, we wrote the following: from nltk.corpus import stopwords stopwords = set(stopwords.words("english")) print(stopwords) This re-assigns the stopwords library to our set. That breaks the code further down. Rename the assignment here, like stopwords1, and it will work further down when you use stopwords. That lets the runtime know it's the library, not the variable you reassigned. LIke so: from nltk.corpus import stopwords stopwords1 = set(stopwords.words("english")) print(stopwords1)
@Hellow_._ Жыл бұрын
The explanation was Awesome just make one correction @10.20 you said that label encoding means converting text data into numerical. basically it's word embedding. label encoding means converting categorical data to numeric.
@CodeWithAarohi Жыл бұрын
Thank you!
@adityachopra87153 жыл бұрын
You did not say anything about Bag of Words model.
@CodeWithAarohi3 жыл бұрын
You can check this video for bag of words kzbin.info/www/bejne/qnPSoJideLmBjq8
@rajasafi85802 жыл бұрын
Thanks for the clear explanation mam, but mam from where we get dataset of this model you used in this video
Good day ma I am having a problem implementing this line of code in my program "print(df['review'].apply(text_cleaning))". It keeps giving me an error
@CodeWithAarohi3 жыл бұрын
send me your code and sample of your dataset. I will check
@isholataofeek23803 жыл бұрын
@@CodeWithAarohi Done ma
@himanshumangoli67082 жыл бұрын
how to use the attribute feature_log_prob_ in MNB. please reply
@victoriousfamily398 Жыл бұрын
Pls is there a github link for this video If so...
@CodeWithAarohi Жыл бұрын
github.com/AarohiSingla/Multinomial-Naive-Bayes
@anuragsaste88182 жыл бұрын
What if we don't have category column in our table, and just have the contiments?? how will we implement such model?
@rahmaaja6600 Жыл бұрын
Great, thanka a lot ma'am 🤗🤗 can i ask to you, what if i want to show xtest result after tf-idf ma'am? I have tried only with the xtest code but the results are not as desired
@ebadrahman1832 Жыл бұрын
can I get this dataset from anywhere?
@CodeWithAarohi Жыл бұрын
github.com/AarohiSingla/Multinomial-Naive-Bayes
@AmitKailashchandraGupta10 ай бұрын
Hi Mam, You have explained very well, I have one doubt, How can we save the model and fine-tune it for new input text and category label. Waiting for your reply
@CodeWithAarohi10 ай бұрын
import joblib # Save the model to a file joblib.dump(model, 'multinomial_nb_model.joblib') # Load the saved model loaded_model = joblib.load('multinomial_nb_model.joblib') # Fine-tune the model with new data loaded_model.fit(X_new, y_new) #If you want to save the model after fine-tuning, follow the saving steps again. joblib.dump(loaded_model, 'updated_multinomial_nb_model.joblib')
@AmitKailashchandraGupta10 ай бұрын
@@CodeWithAarohi Can we fine tune existing model and save the changes in the same model (not creating a new updated_multinomial_nb_model.joblib). How can we do it?
@divakarlokhande40202 жыл бұрын
mam can u plz share that csv file?
@CodeWithAarohi2 жыл бұрын
github.com/AarohiSingla/Multinomial-Naive-Bayes
@nesel38203 жыл бұрын
Ma'am I'hv been following this video through out my minor project of 7th sem. Now I am stuck at the last phase.. I'hv trained the model and save it using pickle . And while loading it in other python file and use for prediction . It shows "Raise value: Dimension mismatch error" . Kindly help.
@CodeWithAarohi3 жыл бұрын
Dimension mismatch here because the training data vocabulary size is different from vocabulary size of test data
@abhishekchandrashukla38142 жыл бұрын
Hey Aarohi, can you provide me with the link for the sample dataset you are using?
Hello i want to build a recommender system which recommends things by keyword matching.What i want to do is take user details in my app and then data is used as collection of keywords .Then i want to recommend similar things(in my case jobs) on the basis of keywords.All the recommender systems on youtube have projects in which they choose the items from dataset itself.Please help me out Thanks
@bhavkeeratsingh49863 жыл бұрын
Similar to a search engine
@CodeWithAarohi3 жыл бұрын
Are you looking something like this : kzbin.info/www/bejne/nYbTgYuCq5Vjoq8
@rajhassani52963 жыл бұрын
Keep on Uploading ML projects mam. Your. Your accent shows that you have a great potential in this field.
@CodeWithAarohi3 жыл бұрын
Thank you, I will
@piercelenihan44283 жыл бұрын
Hi I’m having trouble with one part of the coding could you help me.
@CodeWithAarohi3 жыл бұрын
Sure
@piercelenihan44283 жыл бұрын
Code With Aarohi I’ve sent you an email with the part of the code that I’m struggling with
@zebayounas76203 жыл бұрын
I want dataset for multinomial classifier from where i download data set??
@CodeWithAarohi3 жыл бұрын
you can get that data from github.com/AarohiSingla/Multinomial-Naive-Bayes
@zebayounas76203 жыл бұрын
Could not found datasets on this link plz guide me how can i get ?
@yangsong32013 жыл бұрын
Nice video! Just wondering why the shape of title_tfidf is (77,257), in the video it just seems like a shape with far more than 77 instances (because there are multiple words in each setence) and only 2 features --- the (*,*) and a decimal number.
@CodeWithAarohi3 жыл бұрын
77 rows and 257 columns (257 different vocabulary in each row). 257 columns because we have perform word tokenizing . And each word stored in a separate column
@thesummertalesd88164 жыл бұрын
This was very simple explanation. Very easy to understand. one doubt: how to proceed to predict the class of new title?
@CodeWithAarohi4 жыл бұрын
sahana prasad thanks ... answer to your doubt is github.com/AarohiSingla/Multinomial-Naive-Bayes/blob/master/news_classifier_unseen_input.ipynb
@thesummertalesd88164 жыл бұрын
@@CodeWithAarohi Thanks so much. how can i obtain confidence for each match here?
@janicejose58093 жыл бұрын
Thank you so much exactly what i was searching for .
@CodeWithAarohi3 жыл бұрын
Glad I could help!
@nikhilrepale95503 жыл бұрын
Very helpful video Mam 👍
@CodeWithAarohi3 жыл бұрын
Thankyou
@richaaggarwal074 жыл бұрын
Thanks a lot for such a helpful video ..
@CodeWithAarohi4 жыл бұрын
Richa Aggarwal welcome
@joelmascarenhas87384 жыл бұрын
Ma'am can i perform text classification for unlabeled data
@CodeWithAarohi4 жыл бұрын
JOEL MASCARENHAS hi, no for multinational naive bayes you need labeled data
@liberationexpressionsbyfre42412 жыл бұрын
This is generally an supervised learning classification technique (meaning that labels are required and good quality data and labels recommend [even with small samples])
@devanshmesson27773 жыл бұрын
Hey, Your explanation is just awesome. You made these horrifying terminologies so easy! Thank you so much!!!
@CodeWithAarohi3 жыл бұрын
Glad my video helped you.
@mohanr80093 жыл бұрын
Very helpful ... Thanks for the clear explanation ❤️
@CodeWithAarohi3 жыл бұрын
welcome
@yogeshpawar81883 жыл бұрын
very good explained .
@CodeWithAarohi3 жыл бұрын
Thankyou
@amritasengupta42604 жыл бұрын
Thanks a lot! You explained it very nicely!
@CodeWithAarohi4 жыл бұрын
Glad it helped you
@kelixoderamirez4 жыл бұрын
permission to learn
@CodeWithAarohi4 жыл бұрын
Kurnia Adi C hi, I didn’t understand what are you trying to say.
@samruddhipatil62124 жыл бұрын
searching for this everywhere. THANK YOU
@CodeWithAarohi4 жыл бұрын
Welcome
@nomanafzal15014 жыл бұрын
Ma'am, can You please attach source code so we can easily understand it. Thank you
This was so helpful! Can I know how to plug in new unseen data as csv and get the results also in a csv format?
@CodeWithAarohi4 жыл бұрын
Vela please check this : github.com/AarohiSingla/Multinomial-Naive-Bayes/blob/master/news_classifier_unseen_input.ipynb
@mohinakharbanda53984 жыл бұрын
Hello ma'am! Thanks for such a simple explanation of the design. I have a few doubts.. looking forward to your reply on these 1. in which step the training data and testing data are segregated. How can we edit its percentage? 2. How to use this trained model on the unlabelled data? Let me know if any further clarification is required in questions. Thank you for the video.
@CodeWithAarohi4 жыл бұрын
Hi Mohina, Glad you like the video. And all your queries are addressed on this link. Check this github link: Code and sataset is attached. github.com/AarohiSingla/Multinomial-Naive-Bayes/blob/master/news_classifier_unseen_input.ipynb
@mohinakharbanda53984 жыл бұрын
@@CodeWithAarohi Got it. Thanks for the quick response.
@CodeWithAarohi4 жыл бұрын
@@mohinakharbanda5398 welcome
@new_contents_all_day4 жыл бұрын
Thank you ...
@CodeWithAarohi4 жыл бұрын
Welcome
@CodeWithAarohi4 жыл бұрын
Yes you can use multinational naive bayes for more than 2 class classification
@bablookumar21644 жыл бұрын
Thanks Mam for explaining in such a easier way.. it's really help for me and I also implemented the same to identify the error in our project. Currently it's identifying its a valid error message or not....but mam I have a below concern..please explain to me. 1- how to prepare CSV file (data dictionary file ) dynamically for error handler 2- suppose currently if any new error is comming it's giving the prediction as T or F after the successful algorithm execution but I want the accuracy for this particular error message as well so that I can display in UI it's 50% or 60% match....like as per your comment..i wanted the accuracy of unseen data..whtever you mentioned on the another comments..please help on this....Once again thanks for this video
@CodeWithAarohi4 жыл бұрын
Hi Babloo, Glad you like the video. And as per your query, you can check the accuracy on unseen data. Please refer this code: github.com/AarohiSingla/Multinomial-Naive-Bayes/blob/master/news_classifier_unseen_input.ipynb
@CodeWithAarohi4 жыл бұрын
And do let me know if you have any other queries
@bablookumar21644 жыл бұрын
@@CodeWithAarohi Thanks mam for quick reply.. x=["Nifty IT index down nearly 3% on Infosys weak guidance"] r = predict_news(x) print (r) Entertainment I want the accuracy in terms of percentage or 0.75 something format for the above unseen data..I can understand that it's giving me the result that this unseen data lies on which category based on algo prediction..but I want percentage that how much percentage it's match that's why it's lies on category section
@CodeWithAarohi4 жыл бұрын
BABLOO KUMAR will send you that code in some time( today)
@bablookumar21644 жыл бұрын
@@CodeWithAarohi Thanks but I want the below type output for the unseen data which is lying on entertainment categories section Printing accuracy of the our model accuracy_score(result,y_test) Out[75]: 0.9411764705882353
@sandeshbapu15674 жыл бұрын
Thanks a lot, nobody has explained MNB() like this.