No video

Machine Learning Tutorial Python - 8: Logistic Regression (Binary Classification)

  Рет қаралды 593,985

codebasics

codebasics

Күн бұрын

Пікірлер: 609
@codebasics
@codebasics 2 жыл бұрын
Check out our premium machine learning course with 2 Industry projects: codebasics.io/courses/machine-learning-for-data-science-beginners-to-advanced
@interesting_vdos
@interesting_vdos 2 жыл бұрын
I have never seen any other video explaining the concepts of machine learning so clearly. Keep up the great work..!!
@sidduhedaginal
@sidduhedaginal 4 жыл бұрын
Finally i got perfect trainer for ML, your skills are excellence sir, we are very proud of you sir.
@codebasics
@codebasics 4 жыл бұрын
Glad you liked it :)
@matinpathan5186
@matinpathan5186 3 жыл бұрын
Yes is good but if you like his tutorials then tell your friend to subscribe his channel and hit the like button... that we can do from our side
@pamp3657
@pamp3657 Жыл бұрын
One of the few videos that clearly shows the training data that the model is attempting to fit to. Thank you.
@codebasics
@codebasics 4 жыл бұрын
Step by step roadmap to learn data science in 6 months: kzfaq.info/get/bejne/fpqJltSGsb-VXYU.html How to learn coding for beginners | Learn coding for free: kzfaq.info/get/bejne/edakpc-qqZawemw.html 5 FREE data science projects for your resume with code: kzfaq.info/get/bejne/b5tnmbR00pvFdKM.html
@hanselsamuel
@hanselsamuel 3 жыл бұрын
I really appreciate your tutorial videos, thank you. But how to find the "bought_insurance" values ?
@codebasics
@codebasics 4 жыл бұрын
Solution link for the exercise: github.com/codebasics/py/blob/master/ML/7_logistic_reg/Exercise/7_logistic_regression_exercise.ipynb Step by step guide on how to learn data science for free: kzfaq.info/get/bejne/jNSPoNCA2rfPg3U.html Machine learning tutorials with exercises: kzfaq.info/get/bejne/ndOmqcSgx9OblYU.html
@ansh6848
@ansh6848 2 жыл бұрын
Best course you can get for learning ML is this only. Explanation is super awesome. Actually most of the books and courses shows you complex looking mathematical equations but this guy made all that easy for us.
@MoreBalaji
@MoreBalaji 2 жыл бұрын
Perfectly balanced video. It forces anyone to continue to watch other videos of this series. Very well explained in simple language. 👌
@businnovate
@businnovate Ай бұрын
Why didn't you plot the sigmoid curve but only showed the scatter plot?
@bhawin101283
@bhawin101283 6 жыл бұрын
Perfect explanation with proper examples. Great job.
@anand.prasad502
@anand.prasad502 4 жыл бұрын
medium.com/trainyourbrain/would-you-read-this-article-or-not-b757d0e26cf8
@Sarah-st7jp
@Sarah-st7jp 3 жыл бұрын
Sir, I know so surely that I can bank on your data science and python videos when I need to gain an in-depth understanding. Your content gives me the hope and clarity that I needed. God bless you and your undying passion to make such useful content for us. Thank you so much for all your hard-work sir!!! :)
@riyamitra8901
@riyamitra8901 2 жыл бұрын
For the first time after so many courses, videos, whitepapers, github, kaggle, exercises, wiki pages I am genuinely enjoying Machine Learning and I am doing all the coding and exercises by myself obviously after learning and understanding it all. Thanks a lot!!!
@codebasics
@codebasics 2 жыл бұрын
Glad you like them Riya and I wish you all the best! I have many playlists and recently left my job to focus on online teaching. My goal is to produce even a better quality tutorials then this.
@riyamitra8901
@riyamitra8901 2 жыл бұрын
@@codebasics I am trying to follow all of your videos to improve in my career. I am trying to get a job with a clear concept.
@riyamitra8901
@riyamitra8901 2 жыл бұрын
@@codebasics One question here. Why we did not remove one of the dummy variable after dropping salary column in Logistic regression like we did for Linear?
@09_samarpanbasu7
@09_samarpanbasu7 Жыл бұрын
@@riyamitra8901 I think ...as logistic regression can handle multicollinearity between the dummy variables so it's not necessary to drop the last col.
@PollyMwangi-cp3jn
@PollyMwangi-cp3jn 5 ай бұрын
Actually, I fine tuned my model and was able to achieve an accuracy of 1.0. Thankyou so much sir. This might just be the best channel I have seen.🥳
@kibs_neville
@kibs_neville 5 ай бұрын
Hi, I have some slight problem. How can I plot the prediction curve after training my model? Would be glad if you reply. Thanks
@anishagarwal71
@anishagarwal71 2 ай бұрын
Could you pls tell me what exactly did you do to fine tune it?
@user-ee6nk8sc3t
@user-ee6nk8sc3t 2 ай бұрын
You make people feel so welcomed to data field with your teaching skills. You are always the best.
@zerostudy7508
@zerostudy7508 5 жыл бұрын
i'm Not afraid to learn things with complicated term anymore! this teacher is the best at explanation.
@zerostudy7508
@zerostudy7508 5 жыл бұрын
@@codebasics You are good at it. I thank you.
@sunnyveerpratapsingh1102
@sunnyveerpratapsingh1102 4 жыл бұрын
bro you are best .. tried to swirl thru other online videos and then I end up watching your videos and I understand better .
@codebasics
@codebasics 4 жыл бұрын
Sunnny Singh, I am happy this was helpful to you
@rutvikkumbhar6736
@rutvikkumbhar6736 Жыл бұрын
Any update you can give how's your data science journey is going as I am aspiring to be a data scientist..
@flyingsalmon
@flyingsalmon 2 жыл бұрын
I love your tutorials. They're perfectly paced, with right amount of context and explanation, great examples, and patient but efficient delivery. I hope you continue to produce more. Subscribed here and also Liked all of the videos I've found so far from you. Best.
@codebasics
@codebasics 2 жыл бұрын
👍🤗
@manusingh9007
@manusingh9007 4 жыл бұрын
On first attempt, i considered 'left' as dependent variable and everything else including salary and department as independent variable, got 77% score of accuracy. Thanks for the wonderful video.
@codebasics
@codebasics 4 жыл бұрын
Great job manu. its a good score. Video description has a solution link, you can verify your code with mine.
@piyushjha8888
@piyushjha8888 4 жыл бұрын
78 percent accuracy. I do all your exercises but in this I learned a lot. Thank you sir for such a great series @codebasics
@kalaipradeep2753
@kalaipradeep2753 11 ай бұрын
Hi bro....
@kalaipradeep2753
@kalaipradeep2753 11 ай бұрын
Now I learn machine learning.... Now What are you doing. I mean study or work
@piyushjha8888
@piyushjha8888 11 ай бұрын
I work in a bank as a software engineer. This channel is a gem as this explains the ML concept in laymen terms. I was able to give most of the answers related to ML because of codebasics and deep learning Andrew Ng course
@shreyasb.s3819
@shreyasb.s3819 Жыл бұрын
I never seen anyone explaining simple as like this. Others making complicated like maths intuition. Thanks code basics
@shivangitomar5557
@shivangitomar5557 4 жыл бұрын
You are the best teacher! I love the exercises at the end of each topic, which strengthens our understanding of what we learnt!!! Thank you so much! :)
@codebasics
@codebasics 4 жыл бұрын
I am glad it was helpful. :)
@nguyentuanhung3858
@nguyentuanhung3858 8 ай бұрын
Started learning machine learning on your youtube. Absolute Masterclass , you are my real teacher sir!!!
@adityabikramarandhara9477
@adityabikramarandhara9477 2 жыл бұрын
Thanks a lot for the lucid explanation. In the exercise, I got an accuracy of 77.2% in my model prediction.
@kalaipradeep2753
@kalaipradeep2753 11 ай бұрын
Hi bro... Now I learn machine learning... What are you doing.... I mean study or work
@SandeepYadav-pm8yc
@SandeepYadav-pm8yc 4 жыл бұрын
Finally got the Python version of Andrew Ag's machine learning course. With a better explanation. thanks.
@codebasics
@codebasics 4 жыл бұрын
😊👍
@nilupulperera
@nilupulperera 4 жыл бұрын
Dear Sir What a beautiful datasheet you have provided for practice with this video. Spent more than two days to play with it. Playing with the datasheet opened another dimension of the learning curve. Thank you very much for providing relevant exercises like this as a challenge!
@codebasics
@codebasics 4 жыл бұрын
Happy that this is helping you Nilupul.
@pratikghute2343
@pratikghute2343 Жыл бұрын
I have no other words to say, the comments done by others have already conveyed my message to you!, Lots of love and thank you !
@michaelpeel3716
@michaelpeel3716 2 жыл бұрын
Many thanks this is the first explanation that provides context and examples making its so simple to understand.
@codebasics
@codebasics 2 жыл бұрын
Glad you liked it Michael
@engihabit
@engihabit 2 жыл бұрын
@@codebasics 15:35 I can’t execute it?? model.predict(57) and any number like 25, 60 got the following ValueError: Expected 2D array, got 1D array instead: array=[57].
@mario1ua
@mario1ua 10 ай бұрын
Great explanation, I've understood everything, thanks!
@codebasics
@codebasics 9 ай бұрын
Glad you found it helpful!
@khalidhasan1793
@khalidhasan1793 Жыл бұрын
I paused the video and commented, it's an excellent series that begins with ML.
@GeorgeTrialonis
@GeorgeTrialonis 4 жыл бұрын
Thank you very much for the videos on ML, AI, Python, etc. They help me learn a lot. Your explanations are clear and well understood. Thanks.
@codebasics
@codebasics 4 жыл бұрын
George I am glad 😊
@abhishekdobliyal7178
@abhishekdobliyal7178 4 жыл бұрын
Thank You Sir, I have learned a lot from your vids :). I was really perplexed by Logistic Regression and I am glad KZfaq recommended this to me :)
@zestful14
@zestful14 4 жыл бұрын
This video is fantastic. I'm teaching myself machine learning and this was one of the most helpful resources I've found online. Excited to watch/work-through the rest of the videos! Thank you so much
@anand.prasad502
@anand.prasad502 4 жыл бұрын
medium.com/trainyourbrain/would-you-read-this-article-or-not-b757d0e26cf8
@siddhantkaushik4606
@siddhantkaushik4606 3 жыл бұрын
amazing. astounding. bewildering. breathtaking. extraordinary. impressive. marvelous. miraculous. even all these adjectives are less to tell the quality of the video. Thanks a million.
@codebasics
@codebasics 3 жыл бұрын
ha ha .. nice. you made my day with this shower of praise Siddhant. Thank you for your kind words :)
@guneyfatma
@guneyfatma 10 ай бұрын
Thnaks a lot for theese amazing contents. I have just discovered your videos!
@icyjump1684
@icyjump1684 6 ай бұрын
I only could get 77 with logisitic, but then i used lazypredict to find a higher accuracy and then used desicion tree classifier to get a 98, ty!
@leooel4650
@leooel4650 5 жыл бұрын
Awesome as always, thanks for everything! i got a 77% model accuracy based on the satisfaction_level
@jsbean8415
@jsbean8415 4 жыл бұрын
How did you get the prediction model accuracy by depedent variable? And 77% meaning is the probability that they will leave the company?
@nxbil2397
@nxbil2397 4 жыл бұрын
@@jsbean8415 model.score()
@jsbean8415
@jsbean8415 4 жыл бұрын
@@nxbil2397 that will show you the overal accuracy of your model. My question is , how you will get the probablity % that the employee will leave given the dependent variables? Like the one you have mentioned "satisfaction level".
@tariqahassan5692
@tariqahassan5692 3 ай бұрын
it is one of the fantastic videos about Logistic Regression .. Many thanks
@mponcardas94
@mponcardas94 5 жыл бұрын
I love your series of videos as you are concerned with the student's learning! Thanks!
@mehmetkaya4330
@mehmetkaya4330 5 жыл бұрын
Thank you again! Great explanation! Always great tutorials!
@mageshs5726
@mageshs5726 4 жыл бұрын
I got 78.833 accuracy value. In this exercise i had known lot of things thank you bro.
@pranavnigam11
@pranavnigam11 4 жыл бұрын
I also got around ~78.5% using the average monthly hours and satisfaction level. Did you use the same features??
@codebasics
@codebasics 3 жыл бұрын
That’s the way to go Magesh, good job working on that exercise
@user-jh4wo6ok4s
@user-jh4wo6ok4s 2 ай бұрын
Thank you so much, sir. I've got the score in the exercise 0.797. 🙂
@pranav9339
@pranav9339 Жыл бұрын
If you could build a machine learning model for HR department, then you can remove HR department 😂😂
@noorameera26
@noorameera26 3 жыл бұрын
This video is really really good. Love the way you teach, your pacing and all the things you mentioned are really useful. Thank u and may god bless u!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@asamadawais
@asamadawais 2 жыл бұрын
Dhavel you are excellent in explaining difficult concepts in very simple language!
@codebasics
@codebasics 2 жыл бұрын
I am happy this was helpful to you.
@shuaibalghazali3405
@shuaibalghazali3405 9 ай бұрын
Thanks a lot for this i was able to implement logistic regression after so many tutorials
@fahadreda3060
@fahadreda3060 6 жыл бұрын
Another Great Tutorial, Thank you sir, Waiting for the next tutorial, keep up the good work
@mapa5000
@mapa5000 Жыл бұрын
Thank you very much ! Your videos are always my best choice to learn ML
@Sparshchokra
@Sparshchokra 5 жыл бұрын
Hi, i found your course is truly enhancing the path towards Machine Learning concepts, kindly continue this and sir achieve a complete set of this machine learning course including all the kick start algorithms. Thanks Sparsh
@codebasics
@codebasics 5 жыл бұрын
Thanks for appreciation Sparsh. I am continuing the series, it is just that due to my schedule I am not finding lot of time to work on it but I will try my best to speed up new tutorial additions.
@suleimanachimugu9048
@suleimanachimugu9048 2 жыл бұрын
0.84 accuracy score and 0.83 mean cross validation score. Thanks, Your tutorials have been helpful.
@antimuggle_ridhi2565
@antimuggle_ridhi2565 10 ай бұрын
how?
@VyNguyen-xy3il
@VyNguyen-xy3il Жыл бұрын
Sir, I extremely appreciate your videos and efforts in teaching these things. Very helpful and great explanation!!
@sundayagu2078
@sundayagu2078 3 жыл бұрын
God bless you and may He provide angles to solve all your problems. Thank you
@0xN1nja
@0xN1nja 2 жыл бұрын
one of the best explanation I've ever seen
@jugabrat6797
@jugabrat6797 10 ай бұрын
Your way of teaching is very good. Thanks for the video ❤❤❤
@imaansarwar2314
@imaansarwar2314 2 жыл бұрын
thank you so much ! you have helped alot in learning the algorithms. Saved time with such a quick and easy way of explaining as I didn't have time for my fyp compleion and these videos are saving my time to get an idea of all algorihtms
@codinghighlightswithsadra7343
@codinghighlightswithsadra7343 Жыл бұрын
Thanks a bunch, Subscribed here and also Liked all of the videos I've found so far from you. Best.
@saranyachimirala8351
@saranyachimirala8351 3 жыл бұрын
This video had good information, it was really helpful. I am still a learner, new to this field. I understand how to write and basics of confusion matrix using binary classification. But some terminologies are confusing. Can you please explain what exactly are base rate, test incidence, conditional incidence, classification incidence? That would be appreciated.
@flavio4923
@flavio4923 2 жыл бұрын
I'm reading books to try to understand some of this, and I'm impressed at the ease of the examples and explanations in your video. O_O gotta watch more
@DimanjanDahal
@DimanjanDahal 2 жыл бұрын
same here
@abdulmuzakir
@abdulmuzakir 4 жыл бұрын
Thanks, sir .. your explanation is really clear and so easy to understand 👍🏼
@reemnasser9105
@reemnasser9105 2 жыл бұрын
Mathematics make sense with you now. Finally, I can understand many concepts that I failed to understand them in university. I would just like to point out that many duplicates exist in this data. I would also like to ask why didn't we apply Label encoding for this model?
@namitakala393
@namitakala393 Ай бұрын
thankyou for making videos, your content is great
@ravisrivastava2909
@ravisrivastava2909 4 жыл бұрын
Hello Sir! Great work by you. there is a problem in your code may be due to version of python .... If we use X_train, X_test, y_train, y_test = train_test_split(df[['age']],df[['bought_insurance']],train_size=0.9) then only we get score of 1 otherwise with your code it is 0.66.
@Myanmartaeyang
@Myanmartaeyang 4 жыл бұрын
OMG. I was trying to run the code and did not know why mine was 66%. Thank you for this !!!
@prakritreeeeeee
@prakritreeeeeee 2 жыл бұрын
Thank you so much for the graphical explanation...the concepts are crystal clear in my mind now.
@shreyaasthana7313
@shreyaasthana7313 11 ай бұрын
Sir I tried this method, it is very easy to understand and use.. thank you sir
@MultiSpiros123
@MultiSpiros123 5 жыл бұрын
Thanks one of the best tutorials !
@codebasics
@codebasics 5 жыл бұрын
Glad you liked it
3 жыл бұрын
Perfect explanation!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@PlayingCode
@PlayingCode 2 жыл бұрын
Hey plz tell me what to do when I have multiple Columns like age ,weight , bmi that i need to consider for prediction
@pagnonig
@pagnonig 4 жыл бұрын
Your videos are awesome. I'm learning so much!
@danielnderitu5886
@danielnderitu5886 2 жыл бұрын
I like your tutorials very much, the explanation therein is superb and makes one understand even very hard to grasp concepts.
@SohelRana-eq4ib
@SohelRana-eq4ib 2 жыл бұрын
You are the best teacher
@Nazeerul_Hazard
@Nazeerul_Hazard 3 жыл бұрын
Thanks for a clear explanation. When I wanted to learn Logistics regression I checked a couple of youtube sessions and didn't get the concept well. But When I saw your session I quickly clicked with the confidence that the learning from your channel will be solid as usual. And it was!!! The way you explain together with the visuals are the key to a good understanding
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@khalidfahim100
@khalidfahim100 7 ай бұрын
I was doing the exercise and noticed something in the solution you provided. I think you need to drop one of the salary columns to avoid dummy variable trap. This was not done in the solution python notebook provided. Btw, excellent tutorial!!!
@guneyfatma
@guneyfatma 10 ай бұрын
Why do we write x and y arguments in split method? Is it because of syntax?
@Christian-mn8dh
@Christian-mn8dh 5 жыл бұрын
just subscribed, your very good at explaining. thank you!
@codebasics
@codebasics 5 жыл бұрын
I am glad you liked it Pablo
@Hari983
@Hari983 2 жыл бұрын
Very well done and explained even for beginners - thank you so much!
@ridael-mehdawe4681
@ridael-mehdawe4681 4 жыл бұрын
among several videos, this one is the best. appreciated
@codebasics
@codebasics 4 жыл бұрын
Rida, I am glad 😊
@chrismagee5845
@chrismagee5845 Жыл бұрын
Exactly what I was looking for, Thank You!
@bestineouya5716
@bestineouya5716 4 жыл бұрын
Actually you are the best explainer
@vinitasharma5025
@vinitasharma5025 2 жыл бұрын
very useful video.... you explain everything in a very simple manner. Thank you
@codebasics
@codebasics 2 жыл бұрын
Glad it was helpful!
@pallabsaha4098
@pallabsaha4098 6 жыл бұрын
thank you sir for your video.
@pablu_7
@pablu_7 4 жыл бұрын
Reasons behind the employee retentions are: 1.Satisfaction Level 2.Average Monthly Hours 3.Promotion Last 5 Years
@nxbil2397
@nxbil2397 4 жыл бұрын
Noted that
@MrPrudhvisai
@MrPrudhvisai 4 жыл бұрын
why not work accident?
@arshdeepsingh8289
@arshdeepsingh8289 3 жыл бұрын
@@MrPrudhvisai work accident should be there
@boughrood
@boughrood Жыл бұрын
Very interesting and useful - well presented too
@flyingsalmon
@flyingsalmon 2 жыл бұрын
I have an interesting problem for you that I think you'll really enjoy sharing in a video. We would like to know your approach to solving the following problem: We have a soccer (euro football) game where there are penalty picks. We have data on who's the shooter/kicker and who's the goalie, and how many historically have been saved or not saved by the goalie as follows: (Assume the Shooter and Goalie letters are names of players and Saved is 0 (goal not saved, saved) Shooter Goalie Saved A Z 1 B Z 0 A Z 0 B Y 0 A Y 1 .... and so on for various rows Challenge: What we want to know is if shooter B is facing goalie Z, will the goal be saved or not? We want to leverage machine language (not just probability calculation, which can be done manually based on data). How should we solve this? Many thanks in advance! If you make a video on such, I'll even donate :) Promise!
@laxpanwar11
@laxpanwar11 2 ай бұрын
Thanks. It is really informative.
@devanshgoel9070
@devanshgoel9070 2 жыл бұрын
Thank you sir for this amazing explanation of Logistic Regression.
@codebasics
@codebasics 2 жыл бұрын
Glad you liked it
@krishkonnect814
@krishkonnect814 4 жыл бұрын
Thankyou very much for all help and support. Can you please make a video on mathematical explanation of sigmoid and logit function also ?
@Alex7nt
@Alex7nt 9 ай бұрын
Very well explained, thanks!
@codebasics
@codebasics 9 ай бұрын
Glad you enjoyed it.
@flavioquaresmaa
@flavioquaresmaa 4 жыл бұрын
Good job. Thanks for teach me. In Portuguese, this content is not yet widely explored. 👍
@codebasics
@codebasics 4 жыл бұрын
hey Flavio. I am glad you liked it :)
@micro_Dots
@micro_Dots 2 жыл бұрын
clearly understandable explanation. Thank you so much.
@anuk9846
@anuk9846 3 жыл бұрын
thank u for the video as i m a teacher it helped me a lot
@codebasics
@codebasics 3 жыл бұрын
👍🙏🙏
@balasubramanian5232
@balasubramanian5232 4 жыл бұрын
Sir Kindly confirm whether you already have a video for how to do Exploratory data analysis and feature selection. Thank you.
@ayushpant6190
@ayushpant6190 3 жыл бұрын
I have a question, how is the slope value updated for logistic regression when finding the best fit plane or line to seperate the 2 classes? At first I thought gradient descent but that doesn't work because it is used to find the global minima
@ojassaxena2891
@ojassaxena2891 2 жыл бұрын
Maaeri aapahi hans di Maaeri aapahi rondi Maaeri yaad yaad wo aaeri
@phaniauce
@phaniauce 4 жыл бұрын
Awesome explanation. I like this practical math and algorithmic explanation.
@MohamedAshraf-zs6nv
@MohamedAshraf-zs6nv 4 жыл бұрын
at 14:00 , why you used model.score(x_test, y_test), as you have to replace x_test with the prediction from the model to be like this: prediction = model.predict(x_test) model.score(prediction, y_test) then you can compare the prediction with the real value and so you can get the actual score
@codebasics
@codebasics 4 жыл бұрын
Score function will internally calculate y predicted from x test. After that it will compare y predicted with y test.
@lightonkalumba
@lightonkalumba Жыл бұрын
lol i just love the part on the exercise when he sayed you are a data scientist.
@mojojojo1854
@mojojojo1854 6 жыл бұрын
sir please start Deep learning tutorials :)
@codebasics
@codebasics 4 жыл бұрын
I am going to start that in next few days. Stay tuned :)
@svenko333
@svenko333 3 жыл бұрын
@@codebasics You are a life saver! Just keep up a great content and if I ever see you, I need to buy you a drink or something for all of this, thank you a lot
@DataThinkers
@DataThinkers 6 жыл бұрын
Nice Sir, try to create SVM or PCA next with some mathematical explanation. thank you
@bandhammanikanta1664
@bandhammanikanta1664 4 жыл бұрын
Perfect explanation on logistic regression. Loved it. Thanks a lot.
@anand.prasad502
@anand.prasad502 4 жыл бұрын
medium.com/trainyourbrain/would-you-read-this-article-or-not-b757d0e26cf8
@paramjeetgill1558
@paramjeetgill1558 5 жыл бұрын
Very nice and you present easiest way to understand. Thank you
@aashishshrestha8180
@aashishshrestha8180 3 жыл бұрын
Very Clear Explanation
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@aditinagar6688
@aditinagar6688 4 жыл бұрын
Sir, why didn't you drop one of the salary column after categorizing it using dummy variable in the solution ?
@aravind_k28
@aravind_k28 4 жыл бұрын
Yes, why didn't you drop one column after one-hot encoding? If you didn't drop it, then you will encounter a dummy variable trap, isn't it?
@Fengin221
@Fengin221 4 жыл бұрын
Yea, same question. I think we should drop one of the low,med,high salary columns
@vishaldas6346
@vishaldas6346 4 жыл бұрын
@@Fengin221 Why to make data complex, there are only 2 columns in the dataset. And there aren't any Nan values.
@Fengin221
@Fengin221 4 жыл бұрын
@@vishaldas6346 we should drop a column to avoid multicoliniarity. e.g the Low and med cols can predict what is on high column.
@karanrana5814
@karanrana5814 3 жыл бұрын
It is actually not necessary it is intelligent enough to not to fall into the dummy variable trap.
Machine Learning Tutorial Python - 9  Decision Tree
14:46
codebasics
Рет қаралды 517 М.
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 6 МЛН
Hands-On Machine Learning: Logistic Regression with Python and Scikit-Learn
16:46
Ryan & Matt Data Science
Рет қаралды 4,9 М.
Logistic Regression [Simply explained]
14:22
DATAtab
Рет қаралды 174 М.
Logistic Regression - THE MATH YOU SHOULD KNOW!
9:14
CodeEmporium
Рет қаралды 148 М.
Stanford's FREE data science book and course are the best yet
4:52
Python Programmer
Рет қаралды 692 М.
Machine Learning Tutorial Python - 10  Support Vector Machine (SVM)
23:22
Logistic Regression Project: Cancer Prediction with Python
44:21
Alejandro AO - Software & Ai
Рет қаралды 7 М.