After watching most of your videos, I only can say that you're a great teacher, a good guide for the people who are struggling to understand concepts of Data science. Keeping sharing and blessing us.
@bkrai6 жыл бұрын
Thanks for your comments!
@cleberiack5840 Жыл бұрын
Hello My name is Cleber and I'm from Brazil. Thank you very much for this excellent lesson (step by step). I couldn't find any video that explained me in detail, including making the prediction showing the probability. Stay in Peace.
@bkrai Жыл бұрын
Thanks for comments!
@myjnat5 жыл бұрын
Your Naive Bayes video is soooo much better than what I receive during my graduate lectures.
@bkrai5 жыл бұрын
Thanks for your feedback and comments!
@ramyakrishnan22133 жыл бұрын
Your videos couldn't be better & simpler! You help us alleviate from the fear of data science & machine learning! Thanks a ton sir! And bless us!!!
@bkrai3 жыл бұрын
Glad to hear that!
@fazlanfaiz83952 жыл бұрын
hi do you have the data file
@sudiptomitra3 жыл бұрын
The demonstration & explanation of the viz. part is highly appreciable.
@bkrai3 жыл бұрын
Thanks for comments!
@OwolabiEbenezerselectedsongs6 жыл бұрын
I have this to say. You are such a great teacher. Very apt and intuitive video. I must confess your videos are one of the best.
@bkrai6 жыл бұрын
Thanks for your comments!
@seshasaiguna99376 жыл бұрын
Your videos are the best! Thank you for your efforts and passion for educating your fellow beings!
@bkrai6 жыл бұрын
Thanks for your comments!
@percival23334 жыл бұрын
Thank you so much, Dr Rai. For your clear and detailed explanation, that is really helpful!
@bkrai4 жыл бұрын
You're most welcome!
@theknowledgekart4 жыл бұрын
I don't know who the hell unlike ur videos.... ur videos are always awesome
@bkrai4 жыл бұрын
Thanks for your comments!
@flamboyantperson59367 жыл бұрын
Thank you Thank you Thank you so much Sir. I really don't have enough words to thank you. You have made this video because I had requested you. Why I didn't ever met a Professor like you who is extremely helping humble and kind towards their students. With due respect I'm thanking you for making this video.
@anananan36353 жыл бұрын
روووووعة يسلمو .... Thaaaaanx alot
@bkrai3 жыл бұрын
You are welcome!
@OnePanAdventures5 жыл бұрын
I'm enjoying your video every'time!!!
@bkrai5 жыл бұрын
Thanks for comments!
@Rushizz5 жыл бұрын
Thanks alot Most helpful for naive bayes Learned alot
@bkrai5 жыл бұрын
Thanks for comments!
@manzurekhoda70134 жыл бұрын
Thank you very much for your helpful and insightful videos
@bkrai4 жыл бұрын
You are very welcome!
@praveenparmar77286 жыл бұрын
I have no words Really its amazing sir
@bkrai6 жыл бұрын
Thanks for comments!
@tiewjunkang1383 жыл бұрын
you save my life bro
@bkrai3 жыл бұрын
Thanks for comments!
@aulaalbalad40726 жыл бұрын
It helped me a lot. Thank you. Very powerful explanation.
@bkrai6 жыл бұрын
Thanks for your comments!
@aulaalbalad40726 жыл бұрын
@@bkrai Absolutely. We are trying to analyze your video now.
@bkrai6 жыл бұрын
Thanks!
@kedwards1274 жыл бұрын
Thank you for making this video it is extremely helpful!!
@bkrai4 жыл бұрын
You're so welcome!
@theknowledgekart4 жыл бұрын
you have been an inspiration for me to get into R world.. pls, let me know how to start to R with the basics to make a career in it. Hoping for ur positive reply.
@bkrai4 жыл бұрын
You can start with following playlist: kzbin.info/aero/PL34t5iLfZddtII4ssT8FSUFP27fPYDEhY In addition, it will help to review statistical concepts: kzbin.info/aero/PL34t5iLfZdduw0BfhRbNXxi_Y3BGk2MoB
@theknowledgekart4 жыл бұрын
@@bkrai Thanku so much sir
@bkrai4 жыл бұрын
Welcome!
@yakirpimentel41535 жыл бұрын
Liked and subscribed because my guy, Bharatendra, is the truth! Thank you!
@bkrai5 жыл бұрын
Thanks for comments!
@MsShanmathi6 жыл бұрын
Thanks for the video.. Very useful
@bkrai6 жыл бұрын
Thanks for comments!
@richardmerckling5924 жыл бұрын
This was great, thank you.
@bkrai4 жыл бұрын
You're very welcome!
@mahshidfakharzadeh29434 жыл бұрын
Thank you so much, I really need that
@bkrai4 жыл бұрын
Thanks for comments!
@mathisinger56547 жыл бұрын
Thank u sir useful video
@divyadeivendran22194 жыл бұрын
Tq for this video it was good and easily understandable than others... Naive bayes classification method is applicable for fraud detection in creditcard transaction dataset because it contains 30 k rows of data with 30+ columns sir. Please reply me sir i have this confusion from long time...
@bkrai4 жыл бұрын
Yes, it should work fine.
@divyadeivendran22194 жыл бұрын
@@bkrai Tq sir
@hassanhassan-wm5rl6 жыл бұрын
I like it , thank you for sharing ….. enjoy your life
@bkrai6 жыл бұрын
Thanks for comments!
@ShubhamKumar-xy6kj4 жыл бұрын
Sir,is there any general comment regarding,which is better classifier Naive bayes or logistic regression?
@bkrai4 жыл бұрын
It depends on the data. It is better to try both and choose the one that gives higher accuracy.
@gayathri.nagarajan4 жыл бұрын
Sir, at 13:20, you are using the model and training data set to predict.when we have used the train data to model the data set, what is the reason to do prediction using the same train data on the model ?
@bkrai4 жыл бұрын
We do it for both train and test data to make sure the results are consistent. If train data results in accuracy of 90% but the test data has only 20%, then we will know that we are doing over fitting.
@harunbakirci17814 жыл бұрын
hello sir thank you for all i have a question why did not use boruta package for signification feature
@bkrai4 жыл бұрын
To avoid any confusion, this video just focuses in naive Bayes.
@harunbakirci17814 жыл бұрын
@@bkrai 👍👍👍👍 so do we have to
@bkrai4 жыл бұрын
No harm in trying. If it helps to improve accuracy, then should use. If accuracy dosen't improve, then can be ignored.
@harunbakirci17814 жыл бұрын
@@bkrai thank you my teacher you are the best
@bkrai4 жыл бұрын
You are very welcome!
@vrg00752 жыл бұрын
Sir, I would like to know whether we can consider the Submission Status as Dependent attribute for this above method. Whereas the attribute contains "Available profile", "Level 1", "Level 2", "Placed". Hiring process by the Recruitment team. Need to find which team is hiring best profile and classifying them into group as "Tier 1", ""Tier 2" and "Tier 3". Plz, suggest your opinion on this...
@faceprofesor3 жыл бұрын
This is awesome. More samples would also improve the model performance wouldn't it? Could you please make a video on sentiment analysis?
@bkrai3 жыл бұрын
You are right! Also here is the sentiment analysis video: kzbin.info/www/bejne/paXSiZiMhc2HbbM
@pemmasaniyashwanth28153 жыл бұрын
@@bkrai hello after compiler libraries it's telling there is no such packages . Please help me I am new to R
@bkrai3 жыл бұрын
Make sure you also run library line after installing packages.
@pemmasaniyashwanth28153 жыл бұрын
@@bkrai can I know how to install those packages
@chriss77716 жыл бұрын
I like your vidss. Thank you.
@bkrai6 жыл бұрын
Thanks for comments!
@kartheekprasanna27555 жыл бұрын
That's perfect example. It made really easy to understand! Could you please help us sharing python code for the same example.. Thanks in advance :)
@bkrai5 жыл бұрын
I don't have python code now, but will explore during summer.
@kartheekprasanna27555 жыл бұрын
@@bkrai Thank you so much! That will be really helpful if you can share as soon as you can.. :)
@anshagarwal70204 жыл бұрын
It was very helpful..sir,I have a question can we do clustering using naive Bayes..If yes, then how can we do it??
@bkrai4 жыл бұрын
For clustering I would suggest these 6 videos: kzbin.info/aero/PL34t5iLfZddvMPAl1TzHJ_GjQcD3s6w_Z
@karantherobo4 жыл бұрын
In the box plot line (the whole pipelining) , I am getting an error stating ( Could not find function "+
@bkrai4 жыл бұрын
You mentioned Could not find function "+
@michealajinaja71426 жыл бұрын
Great work and detailed tutorial. It worked perfectly on different data i used. Please sir how to one predict a single data after using the model. The model was been trained and working well. How can we predict a single data into the model and see the outputs. I would love to have your email sir.
@tingblubblub61065 жыл бұрын
Thanks for the video- just started learning with R so this is definitely useful for me! Qns: how did u train the data? Was it just by keying in those codes before u applies Naive bayes?
@bkrai5 жыл бұрын
In line 32 when we develop a model, it is done after training.
@hafsaimtiass5474 жыл бұрын
Ive tried different data set but on the plot (Model) im getting an error of " Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' is a list, but does not have components 'x' and 'y' " what should i do?
@bkrai4 жыл бұрын
Try to convert them to a data frame, because it says 'x' is a list.
@touradrien2530 Жыл бұрын
Hi when i used your model to plot the density plot my graph was completely different , any solution please
@anuragsharma74133 жыл бұрын
sir, I have a question. How can we improve our accuracy, if we come to know our model is bad ? #Thank_You_For_Your_Lecture.
@bkrai3 жыл бұрын
Usually we try more than one model and select one that provides better accuracy.
@tay90014 жыл бұрын
Hello sir, question about this model. if you perform the naive_bayes function to predict a column and do not use all independent variable columns in the test data should you also exclude these columns when performing the prediction?
@bkrai4 жыл бұрын
Use only those variables while developing the model that are also part of test data.
@justiceasare2326 жыл бұрын
Many thanks sir for this video. A few quick questions though. #In the case where there exists a high correlation between independent variables (ie multicollinearity), how do I treat it to make it suitable for the application of Naive Bayes in the sense of classification ? #What characteristics must one look up for in a data to know the suitability of applying Naive Bayes ? # May you please explain what this code means "data %>% ......" in plotting the box and density charts ? Thanks once again for this video.
@bkrai6 жыл бұрын
PCA can help with multicollinearity or you can go with ridge, lasso or elastic net regression. When developing classification model, generally you should try different methods and see which one works best with the data you have. Each data has it's own specific characteristics and it is not possible to know beforehand which method will perform better. For %>% explanation, see this link: kzbin.info/www/bejne/pJqlZnRupsZrbqs
@justiceasare2326 жыл бұрын
Many thanks DR RAI
@juandavidlozadacalderon13566 жыл бұрын
thanks!!! friend.
@bkrai6 жыл бұрын
thanks for comments!
@evansumido61912 жыл бұрын
hello sir. with the code that you use to partition the data, how does it partition? is it by random?
@bkrai2 жыл бұрын
Yes it's random.
@evansumido61912 жыл бұрын
@@bkrai Thank you.
@bkrai2 жыл бұрын
You are welcome!
@katecaro6779 Жыл бұрын
GOOD DAY, SIR! i would like to ask how to train and test the data after sentiment analysis
@AllenKei6 жыл бұрын
Thank you so much for the videos! I always follow your videos and learn something new. I have a quick question about the math. You use P(A) amd P(B) for demonstration, can you also write down the math for all 4 variables? Bayesian rule for P(A), P(B), P(C), P(D) in one or multiple formula? Thank you so much. Allen
@jalluravikiran41466 жыл бұрын
thank you.. sir, can we use naive bayes classification for sentimental youtube comments... if possible can you please upload a video on that..
@imamhamdan79653 жыл бұрын
Thank you so much for the videos! Dr. Rai, I tried this at different dataset. But I have a problem result on modelling. there is "# ... and 8 more tables". How can I show full of result?
@bkrai3 жыл бұрын
Let me know code that you are referring to.
@theknowledgekart4 жыл бұрын
sir, Do u have made any video on EFA, CFA and SEM for research purpose. If yes pls let me know. Thanks in advance.
@bkrai4 жыл бұрын
Not at this time, but I've added them to my list.
@chamilarupasinghe91866 жыл бұрын
You have a wonderful talent to teach. You are one of the best that I have seen. When I execute the program I get the following error in the predict, “> p p head(cbind(p, train)) Error in cbind(p, train) : object 'p' not found” Can you provide a solution?
@chamilarupasinghe91866 жыл бұрын
Can you kindly send me the source code to crupasinghe.elite@gmail.com to troubleshoot my problem? Best, Chamila
@hridayborah97505 жыл бұрын
great ! i just subscribed boss
@bkrai5 жыл бұрын
Thanks!
@victorhenostroza18715 жыл бұрын
great !!!
@bkrai5 жыл бұрын
Thanks!
@mohammadmunazzirhosany28543 жыл бұрын
which version of R studio you r using ?
@wallinsonoliveira15015 жыл бұрын
Dr., one more question. I wish that in the classification on the test basis, I could set the threshold percentage to perform the classification. Example: There is a 70% chance of being in class 1 and 30% in class 2. I would like it to be classified as class 2 odds greater than 10%. How to set this threshold for classification. Is it in the predict function? Thanks!
@bkrai5 жыл бұрын
You can try this link: kzbin.info/www/bejne/r6GyYneGerCMfNE
@mathematickhmer22653 жыл бұрын
Teacher, I tried to type follow you but still error. Why? 😢 can you tell me how to install package.
@bkrai3 жыл бұрын
to install psych package, you can run install.packages('psych') You can follow similar process for other packages. After installing a package, you should run library line.
@thejuhulikal62904 жыл бұрын
hello sir, the video is very useful, thank you so much, can I know the version of R software we use to download bcoz presently I have version4.0 and in that pairs.panel package is not available so kindly inform me about the version of R software that has to be downloaded
@bkrai4 жыл бұрын
I just downloaded 4.0 and then installed 'psych' again. Initially pairs.panels didn't run as you mentioned. However, after I ran library(psych) and retyped pairs.panels command, it worked fine.
@thejuhulikal62904 жыл бұрын
@@bkrai yes sir ..I too tried thank u so much sir
@thejuhulikal62904 жыл бұрын
sir i have some doubts regarding applying this model to my data set, can I get your email id for suggestions
@bkrai4 жыл бұрын
Thanks for the update!
@netmarketer775 жыл бұрын
Hi, Can we apply Naive Bayes on a data that has a class imbalance ? This data has a class imbalance . And this is not solved
@bkrai5 жыл бұрын
Yes, it is better to address class imbalance first.
@thejuhulikal62904 жыл бұрын
Hello sir, hope you are doing good! i am writing you because I came across a paper named Yagyanath Rimal ,with your naive bayes analysis as same as in this video. The journal name is INTERNATIONAL JOURNAL ON ORANGE TECHNOLOGIES (IJOT) with paper title Naïve Bayes Machine Learning Classification with R Programming: A case study of binary data sets, please go through if they have used your analysis with their name
@bkrai4 жыл бұрын
Thanks, I'll look into it!
@kalyanasundaramsp82676 жыл бұрын
thanks sir, query= cross-validation why we need to check between admit and rank, you talked about frequency and i didn't understand ?please clarify..
@bkrai6 жыл бұрын
They are factor variables. We should not have combinations of the two where frequency is zero. If it is zero or too small, we can probably combine rank-3 and rank-4 into one.
@kalyanasundaramsp82676 жыл бұрын
sir, firs hats-off to you for the swift response and now i understand the concept
@juansb15096 жыл бұрын
Thank you very much. I believe there is an error at 6'43''. A and B are not independent. What is independent is the features B1, B2, ...Bn.
@soujanyasouj66364 жыл бұрын
sir i m getting error in installing packages of naviebayes and psych
@bkrai4 жыл бұрын
Check spelling of the package.
@tohabin50647 жыл бұрын
Thank u
@thejuhulikal62904 жыл бұрын
Sir, Please make a video on Laplace smoothing in R software
@bkrai4 жыл бұрын
Thanks, I've added it to my list.
@conniesilva59433 жыл бұрын
where can we get the dataset?
@bkrai3 жыл бұрын
There is a link in the description below this video.
@DanTaninecz5 жыл бұрын
Why did you convert from integer to factor?
@bkrai5 жыл бұрын
Rank and admit are factor variables, so they need to be converted to factor.
@DanTaninecz5 жыл бұрын
@@bkrai rank would seem to be categorical, and admit binary/dummy. I guess I'm missing something about how R defines factor variables. Does it just include these types of variables? Thanks!
@bkrai5 жыл бұрын
When a variable such as admit has values like 0 and 1, it thinks it is a integer variable. Similarly rank has values such as 1, 2, 3, and 4. This is also treated as integer by default. In such situations we need to make changes where necessary.
@juliocesaralvarez95804 жыл бұрын
how to make the naives bayes model when the target is quantitative?
@bkrai4 жыл бұрын
It is mainly used as a classifier with qualitative target. For quantitative target, try this: kzbin.info/www/bejne/lWTbfoaYfsmYaKs
@mataolundibi2 жыл бұрын
When I do classification, furing the test with a test sample everything suddenly becomes "FALSE" anyone have any idea?
@mayanktripathi13105 жыл бұрын
Sir, I am getting an error , "variable lengths differ" can you please assist!!
@bkrai5 жыл бұрын
In case it is due to missing values, then you can use thins link: kzbin.info/www/bejne/d5-an4OCf5WZqck
@wallinsonoliveira15015 жыл бұрын
How to take a specific test? Example: I want to know the probability of gre = 545, gpa 3.50 and rank = 3.
@bkrai5 жыл бұрын
On way is to use these lines: z
@tkrvlogs-z5s7 жыл бұрын
I want to predict KIDNEY disease using naive bayes classifier in Rstudio.So I want to know will your R script works for it or not? If not what should I do?
@bkrai7 жыл бұрын
It depends on the data and type of variables you are using. Generally you should not try just one method, but several and then see which one does best.
@sonujack16 жыл бұрын
Sir, what am I doing wrong here? model= naive_bayes(admit~., data= train) p= predict(model, train, type = 'prob') Error in which((sapply(newdata[ind_factor], nlevels) != sapply(tables[ind_factor], : (list) object cannot be coerced to type 'integer'
@vinuvarsidh8805 жыл бұрын
i get the same error dude.. can someone help us rectify the error!!
@thejuhulikal62904 жыл бұрын
Helo Sir, Can I kindly know the version of R software used in this vedio.
@bkrai4 жыл бұрын
This video was done around Feb 2018. So whatever version was available at that time.
@chriss77716 жыл бұрын
Do you do any private tutoring?
@bkrai6 жыл бұрын
If you have any query regarding any video here, you can always post it and I'll try my best to provide feedback.
@vishnumk90127 жыл бұрын
Sir can we use naive bayes classification for sentiment analysis of tweets, could you please do a video based on that??
@bkrai7 жыл бұрын
Thanks for the suggestion, I've added this to my list.
@shrutichauhan90196 жыл бұрын
hie sir!!! i ran this model and in the console it is not showing all the tables instead it says 2 more tables.How to view those tables as well???
@bkrai6 жыл бұрын
You can maximize the console screen to see everything.
@bkrai6 жыл бұрын
At what time point in the video are you referring to?
@allenjamesvinoy5 жыл бұрын
Amazing explanation. I still have one doubt. Shouldn't we pass test data as the required data in predict function?
@bkrai5 жыл бұрын
That's what is done in line 52.
@balajiks67167 жыл бұрын
Sir can you explain how to create a multiple output neural network in r using neuralnet package?
@bkrai7 жыл бұрын
You can use following link for multiple outputs. This is much faster. kzbin.info/www/bejne/npWbYnh-ZsxkmKc
@ariagnesilveiratriana38062 жыл бұрын
Hola ,podría compartir la data?
@bkrai2 жыл бұрын
See link in description area.
@hridayborah97505 жыл бұрын
where can i get the binary.csv file to practice ,let me know
@bkrai5 жыл бұрын
See the link in the description area below this video.
@Dr.munna893 жыл бұрын
sir can you please explain the cross tabulation between admit and rank. what we want to observe cross tabulation?
@bkrai3 жыл бұрын
Number in each cell should be 5 or more.
@pothulasaiprasadreddy39615 жыл бұрын
sir i will provide dengue disease data set u predict the accuracy by naive bayes algorithm please
@bkrai4 жыл бұрын
I saw this today. You can send data at seemabharat@gmail.com
@Vedantavani3100BCE6 жыл бұрын
Thanks in advance sir Could you please clear my query that in P1 & P2 I am getting same length of arguments. I have given test data to predict P2 but still getting same output as P1 & their by getting error at tab2 as " all arguments must have the same length ". Please rectify Thanks again.
@dhavalpatel18435 жыл бұрын
You should always pass the model as the first argument in predict function. The second parameter should be a data frame of predictor variables only. You can specify type=”prob” as an extra argument to get probabilities of every factor of y. Either type=”class” directly gives you the class of predicted values. By default type argument is set up differently for every R version.
@brunomaccosta6 жыл бұрын
you should inform that those libraries had a lot of dependencies.
@janiceleong735 жыл бұрын
Hi Sir, this video is a great! But I can't seem to be able to plot(model), the histogram doesn't seem to show up
@bkrai5 жыл бұрын
make sure there is enough space for a plot to show up in the 4th window.
@jashjasani50454 жыл бұрын
Error in data[partition_data == 1, ] : object of type 'closure' is not subsettable getting this error here is the link to the code: - github.com/JordanTheDodger/NaiveBayes-in-R-Test- I looked on StackOverflow, it said I am trying to use some inbuilt function. Thanks in Advance. Looking forward to your reply
@bkrai4 жыл бұрын
Link to the code doesn't work!
@mathisinger56547 жыл бұрын
And then I want dataset for any one Tamil channel like star Vijay, suntv ,zee Tamil this is my humble request sir
@bkrai7 жыл бұрын
Unfortunately I do not have data about Tamil channels.
@mathisinger56547 жыл бұрын
Bharatendra Rai k sir any sports channel
@rawanalsubhi73165 жыл бұрын
How can I install nativebayes library.
@aswaniap82935 жыл бұрын
First you want to enter the code given below: install.packages("naivebayes") library(naivebayes)