Selecting the best model in scikit-learn using cross-validation

  Рет қаралды 212,134

Data School

Data School

Күн бұрын

In this video, we'll learn about K-fold cross-validation and how it can be used for selecting optimal tuning parameters, choosing between models, and selecting features. We'll compare cross-validation with the train/test split procedure, and we'll also discuss some variations of cross-validation that can result in more accurate estimates of model performance.
Download the notebook: github.com/justmarkham/scikit...
Documentation on cross-validation: scikit-learn.org/stable/module...
Documentation on model evaluation: scikit-learn.org/stable/module...
GitHub issue on negative mean squared error: github.com/scikit-learn/sciki...
An Introduction to Statistical Learning: www-bcf.usc.edu/~gareth/ISL/
K-fold and leave-one-out cross-validation: • Video
Cross-validation the right and wrong ways: • Video
Accurately Measuring Model Prediction Error: scott.fortmann-roe.com/docs/Me...
An Introduction to Feature Selection: machinelearningmastery.com/an-...
Harvard CS109: github.com/cs109/content/blob...
Cross-validation pitfalls: www.jcheminf.com/content/pdf/1...
WANT TO GET BETTER AT MACHINE LEARNING? HERE ARE YOUR NEXT STEPS:
1) WATCH my scikit-learn video series:
• Machine learning in Py...
2) SUBSCRIBE for more videos:
kzbin.info?su...
3) JOIN "Data School Insiders" to access bonus content:
/ dataschool
4) ENROLL in my Machine Learning course:
www.dataschool.io/learn/
5) LET'S CONNECT!
- Newsletter: www.dataschool.io/subscribe/
- Twitter: / justmarkham
- Facebook: / datascienceschool
- LinkedIn: / justmarkham

Пікірлер: 598
@dataschool
@dataschool 3 жыл бұрын
Having problems with the code? I just finished updating the notebooks to use *scikit-learn 0.23* and *Python 3.9* 🎉! You can download the updated notebooks here: github.com/justmarkham/scikit-learn-videos
@giovannibruner8455
@giovannibruner8455 7 жыл бұрын
This videos are so well done, so clear and easy to follow that it makes appear ML a trick for kids. Congratulations, great teaching.
@dataschool
@dataschool 7 жыл бұрын
Thanks for your kind words!
@deneb6139
@deneb6139 7 жыл бұрын
can't agree more! best video resource on cross validation on the internet.
@thevivekmathema
@thevivekmathema 6 жыл бұрын
i almost gave up python,untill i met your channel. you are my savior
@dataschool
@dataschool 6 жыл бұрын
Wow, thank you! Good luck with your Python education! :)
@ngochua6679
@ngochua6679 3 жыл бұрын
Kevin, I appreciate the slow but thorough walk through, you and StatQuests are awesome people. Thank you.
@dataschool
@dataschool 3 жыл бұрын
Thank you so much!
@apachaves
@apachaves 7 жыл бұрын
Amazing video! Very instructive. And the presenter has a very clear voice and pace.
@dataschool
@dataschool 7 жыл бұрын
Thank you so much! I'm glad you liked it!
@datascienceds7965
@datascienceds7965 5 жыл бұрын
Whenever I needed a references, I always end up with your videos after a long search. That prove you are THE best teacher.
@dataschool
@dataschool 5 жыл бұрын
What a nice thing to say! Thank you! :)
@atwinemugume
@atwinemugume 5 жыл бұрын
I love the simplicity in the videos. Thank you. I have learned some things that were confusing before. Especially cross validation
@dataschool
@dataschool 5 жыл бұрын
Awesome! That's great to hear.
@BrothersFreedive
@BrothersFreedive 9 жыл бұрын
Excellent series! This is the first time I've studied machine learning. You are doing an outstanding job of transforming it from a science fiction term into a tangible subject. I really appreciate these videos!
@dataschool
@dataschool 9 жыл бұрын
BrothersFreedive You're very welcome! I greatly appreciate your kind comments!
@cozylifemodular1863
@cozylifemodular1863 2 жыл бұрын
Just chiming in to thank you for the series, really helps demistify and fill in the gaps. Looking forward to working through
@dataschool
@dataschool 2 жыл бұрын
You're very welcome!
@manasa41087
@manasa41087 7 жыл бұрын
I am so glad I found you. I am aspiring an data scientist and I find all your videos extremely useful and better than any documentation since you explain the intricate details very well. Thanks!!
@dataschool
@dataschool 7 жыл бұрын
Wow, thanks so much for your kind comments! Good luck in your journey to become a data scientist!
@danishbhatia5004
@danishbhatia5004 6 жыл бұрын
Sir, I really appreciate your work. I strongly think that these video series is probably the best I have ever come so far. I truly praise the way you teach, this becomes utmost clear. Thank you very much for these videos and hope to see more of them.
@dataschool
@dataschool 6 жыл бұрын
I'm glad to hear my videos have been helpful to you!
@mueez.mp4
@mueez.mp4 5 жыл бұрын
HOW DOES THIS VIDEO NOT HAVE LIKE A MILLION VIEWS?!? So good. Thank you, man!
@dataschool
@dataschool 5 жыл бұрын
HA! Thank you :)
@jamesdalley2394
@jamesdalley2394 11 ай бұрын
I watched a dozen videos on this topic. I was pretty certain I understood it, but I still had a few questions. You're video cleared those questions up amazingly! Thank you.
@dataschool
@dataschool 10 ай бұрын
That's awesome to hear! 🙌
@wlancer8826
@wlancer8826 5 жыл бұрын
You're soooooo good at explaining confusing concepts!!! I'm always wondering about the negative sign in loss function until now!!! Thank you!!!
@dataschool
@dataschool 5 жыл бұрын
You're very welcome! You might also want to read this post for an update: www.dataschool.io/how-to-update-your-scikit-learn-code-for-2018/
@jiwachhetri4165
@jiwachhetri4165 3 жыл бұрын
This is the best sklearn tutorial I have come across.
@dataschool
@dataschool 2 жыл бұрын
Thank you!
@colmorourke4657
@colmorourke4657 4 жыл бұрын
Outstanding work once again Kevin. A treasure to newcomers in the area.
@dataschool
@dataschool 4 жыл бұрын
Thank you!
@lucamarcello9696
@lucamarcello9696 3 жыл бұрын
The best explanation of cross-validation on the internet. Thank you!
@dataschool
@dataschool 2 жыл бұрын
Thank you!
@anilreddyk5
@anilreddyk5 5 жыл бұрын
Thanks for the Video. This is the best Video on KNN Cross validation that I have watched. Appreciate your effort...
@dataschool
@dataschool 5 жыл бұрын
Thanks! :)
@hamkam33521
@hamkam33521 2 жыл бұрын
I found a lot and lot of videos about ML and cross validation, I watched them all, I tried to follow but it was very hard understand. But you, you make it easier, I was very confused with this cross validation and now it's more than clear. Thank you very much for this video and for your channel
@dataschool
@dataschool 2 жыл бұрын
You're very welcome! Glad it was helpful to you!
@djs749
@djs749 3 жыл бұрын
Domain of liking something always was dominated on BY spontaneity BUT never it was without reasons. I liked all your videos with much enthusiasm and the simple reason is they are just BRILLIANT!
@dataschool
@dataschool 3 жыл бұрын
Thank you so much!
@davidtemael1307
@davidtemael1307 6 жыл бұрын
I took coursera lesson twice but never got what was going on and you bro walked me through like I've never expected! thank you
@dataschool
@dataschool 6 жыл бұрын
Awesome! You are very welcome!
@edbull4891
@edbull4891 2 жыл бұрын
Always eager to learn. You demystified the subject and you even made it easy for a 75 year old brain to comprehend ML methods. :) :) :)
@dataschool
@dataschool 2 жыл бұрын
Great to hear!
@johnathangonzalez5286
@johnathangonzalez5286 6 жыл бұрын
REALLY well done!! I found this video extremely helpful. Keep up the good work
@dataschool
@dataschool 6 жыл бұрын
Thanks for your kind comment! :)
@dataschool
@dataschool 6 жыл бұрын
*Note:* This video was recorded using Python 2.7 and scikit-learn 0.16. Recently, I updated the code to use Python 3.6 and scikit-learn 0.19.1. You can download the updated code here: github.com/justmarkham/scikit-learn-videos
@mubeenkhan8210
@mubeenkhan8210 4 жыл бұрын
Updated link shows me this message : Sorry, something went wrong. Reload?
@MasterofPlay7
@MasterofPlay7 4 жыл бұрын
is this still relevant 2020?
@tush16ar
@tush16ar 6 жыл бұрын
being a beginner to machine learning , this video lecture series are of great help ,providing crystal clear understanding of the concepts presented along the course . Dear sir please keep up with the good work
@dataschool
@dataschool 6 жыл бұрын
That's great to hear! Good luck with your education!
@miguelamaro4900
@miguelamaro4900 4 жыл бұрын
i have watched several videos on this subject. this was the only one that has met my expectations
@dataschool
@dataschool 4 жыл бұрын
Thanks for your kind words!
@XRobotexEditz
@XRobotexEditz 7 жыл бұрын
The Best explanation I have seen ever.
@dataschool
@dataschool 7 жыл бұрын
Wow, thank you so much!
@richardpacholski2715
@richardpacholski2715 9 жыл бұрын
Thank you Kevin, This is fantastic material. You made it easy for 60 year old brain to comprehend ML methods. Cross-validation material was excellent. I will try to run it on my own data sets. Looking forward to the next one. Regards Richard
@dataschool
@dataschool 9 жыл бұрын
Richard Pacholski Awesome! Very glad to hear :) I'm looking forward to making the next one!
@marvinjosephagor9493
@marvinjosephagor9493 8 жыл бұрын
These are all great material. Thank you very much for uploading these videos. Keep up the great work and know that they are all appreciated! :)
@dataschool
@dataschool 8 жыл бұрын
+MJoseph A Excellent! You are very welcome.
@akshaysingh1914
@akshaysingh1914 5 жыл бұрын
Sir firstly I would like to you thanks a lot, because you spent so much time to make this video ....this is really helpful to initial phase learner's for ML ; keep doing sir , I stopped this video in mid to say thanks , you saved my lots of hour to understand cross validation.....
@dataschool
@dataschool 4 жыл бұрын
That's awesome to hear! Thanks so much for letting me know! 🙌
@saisreenivas8875
@saisreenivas8875 5 жыл бұрын
You are awesome...you teach everything in a simple way....ask for the feedback....and make them much better.....And the best thing is you make everything (I REPEAT EVERYTHING) easy for us....So sweet of you :)
@dataschool
@dataschool 5 жыл бұрын
That is so kind of you to say! Thank you so much 😄
@prathameshmahankal4180
@prathameshmahankal4180 5 жыл бұрын
I really love your videos. They are so simple and to the point! Thanks for making such videos. :)
@dataschool
@dataschool 5 жыл бұрын
Thanks very much for your kind words!
@andretenreiro
@andretenreiro 6 жыл бұрын
Great videos to learn about machine learning! Thanks Kevin for making this avaiable.
@dataschool
@dataschool 6 жыл бұрын
You're welcome!
@soumyareddy3695
@soumyareddy3695 5 жыл бұрын
Hi Kevin, You are such a great teacher. Love your videos. Cant thank you enough!!
@dataschool
@dataschool 5 жыл бұрын
Thanks very much for your kind words! You are very welcome :)
@Bena_Gold
@Bena_Gold 5 жыл бұрын
This is the best explanation so far ... far better than my professor ... thumbs up ...
@dataschool
@dataschool 5 жыл бұрын
Great to hear! :)
@juancarlosesquivel7855
@juancarlosesquivel7855 6 жыл бұрын
Very clear and detailed explanations. Also the links after the videos are very helpful. Thanks.
@dataschool
@dataschool 6 жыл бұрын
You're welcome!
@marwanalbadawii
@marwanalbadawii 7 ай бұрын
Your explanations are very straightforward. Thanks a lot.
@dataschool
@dataschool 6 ай бұрын
Thanks!
@aditidubey2826
@aditidubey2826 5 жыл бұрын
amazingly explained. Sufficiently Slow for a fresher in Machine learning.. Easily understandable. Keep it up.
@dataschool
@dataschool 5 жыл бұрын
Awesome, thank you! :)
@KS-ko2zl
@KS-ko2zl 4 жыл бұрын
Thank you so much. Your tutorial and style of explaining is exceptional.
@dataschool
@dataschool 4 жыл бұрын
Thank you!
@flamboyantperson5936
@flamboyantperson5936 6 жыл бұрын
Great videos. Please keep the good work doing. We really need your lectures. Thank you so much.
@dataschool
@dataschool 6 жыл бұрын
Thanks for your kind words! I will definitely release more videos! :)
@flamboyantperson5936
@flamboyantperson5936 6 жыл бұрын
Waiting eagerly for new series because I have completed watching all your videos. Thank you so much for teaching me Python. You have made me educated you are a teacher for me and I respect you. Thank you so much.
@dataschool
@dataschool 6 жыл бұрын
Awesome! Thank you for watching and learning! :)
@dawittekie3796
@dawittekie3796 6 жыл бұрын
I am so happy to follow such kind of lecture because your teaching way is attractive and your language clarity is very excellent so I get knowledge an input for my ML thesis because am doing on classification (prediction) problem
@dataschool
@dataschool 6 жыл бұрын
Glad to hear that my videos are helpful to you! Good luck with your thesis!
@pierrelaurent8284
@pierrelaurent8284 7 жыл бұрын
Can't wait to see next lesson ! Bravo
@dataschool
@dataschool 7 жыл бұрын
Thanks!
@luismiguelcrespo9499
@luismiguelcrespo9499 5 жыл бұрын
Had to listened to it in 1.5 speed but it is very clear and concise. Thanks.
@dataschool
@dataschool 5 жыл бұрын
Thanks!
@stjepan_8902
@stjepan_8902 6 жыл бұрын
thank you for introducing me to ML, and also for helping me understand Python through your great pandas videos!
@dataschool
@dataschool 6 жыл бұрын
You are very welcome!
@mightyhlungwane2639
@mightyhlungwane2639 2 жыл бұрын
Kevin, you are very good in explaining. I wish I found you earlier. I just subscribed to receive all future videos and thank you for all the explanations.
@dataschool
@dataschool 2 жыл бұрын
Thanks for your kind words! 🙏
@aawinecoff
@aawinecoff 7 жыл бұрын
I really appreciate how easy this video series is to follow and that the notebooks are available so you can follow along. It would be excellent if the notebooks were updated to reflect that the cross_validation is now deprecated.
@dataschool
@dataschool 7 жыл бұрын
Thanks for the suggestion! Right now I'm on paternity leave from Data School, but it's on my to-do list :)
@johnf9231
@johnf9231 6 жыл бұрын
Congratulations!
@jsx0328
@jsx0328 6 жыл бұрын
It's deprecated, but it still works for me in Jupyter Notebook... I literally did the exact same cross validation
@dataschool
@dataschool 6 жыл бұрын
I recently updated the code to use Python 3.6 and scikit-learn 0.19.1. The updated code can be found here: github.com/justmarkham/scikit-learn-videos
@michaelbmotlhabi
@michaelbmotlhabi 4 жыл бұрын
All your videos W.I.N - you’re the best
@rakeshkumarkuwar6053
@rakeshkumarkuwar6053 4 жыл бұрын
Thank you sir for such a detailed explanation. I was struggling with the topic. Then luckily found your video and very bit of it is full of knowledge. Thanks again for making such informative videos.
@dataschool
@dataschool 4 жыл бұрын
Great to hear!
@raidtape123
@raidtape123 7 жыл бұрын
I really really appreciate your efforts..this series is so helpful in learning.
@dataschool
@dataschool 7 жыл бұрын
I'm glad to hear the series is helpful to you! :)
@mdinesk
@mdinesk 8 жыл бұрын
These videos have been very useful and excellent! Thanks!
@dataschool
@dataschool 8 жыл бұрын
+Dinesh Kumar Murali Great, thanks for your kind words!
@unsharma9229
@unsharma9229 4 жыл бұрын
i usually don't subscribe any channel but you earned this subs from me...keep going lots of love
@dataschool
@dataschool 4 жыл бұрын
Thank you! 🙌
@nikhilpandey2364
@nikhilpandey2364 7 жыл бұрын
Thanks. The notebook helped me a lot. I hope more topics get coverage like this one had. Please do a video on PCA.
@dataschool
@dataschool 7 жыл бұрын
Thanks for your suggestion! I'll consider it for the future.
@jsbros.
@jsbros. 6 жыл бұрын
It was confusing at first but you made it so clear I wish you will upload many other videos on ML. If you will upload a application on ML with python will be great for every one. Thank you. Love your way of teaching.
@dataschool
@dataschool 6 жыл бұрын
Thanks for your kind words! Here is my series on machine learning with Python: kzbin.info/aero/PL5-da3qGB5ICeMbQuqbbCOQWcS6OYBr5A
@ianmelanson9520
@ianmelanson9520 8 жыл бұрын
Great videos. Good approach combining thought process and tools.
@dataschool
@dataschool 8 жыл бұрын
+Ian Melanson Thanks!
@tabnaka
@tabnaka 9 жыл бұрын
Looking forward to the next video on this!
@dataschool
@dataschool 9 жыл бұрын
tabnaka Great! It will come out in about two weeks.
@johnnovotny4286
@johnnovotny4286 2 жыл бұрын
Excellent. Thanks for sharing your expertise.
@dataschool
@dataschool 2 жыл бұрын
Thank you!
@nonyabeeswax
@nonyabeeswax 6 жыл бұрын
Natural born teacher. Bravo! Thank you!
@dataschool
@dataschool 6 жыл бұрын
Thank you! :)
@jnandikonda
@jnandikonda 5 жыл бұрын
Best Explanation ever done by anyone in Machine Learning Community. Hats Off to your Great work and effort in teaching us. May god bless you. Yes we need more concepts on Scikit learn than pandas. but use pandas functionality when needed
@dataschool
@dataschool 5 жыл бұрын
Thanks very much for your kind words!
@Renan-st1zb
@Renan-st1zb 7 жыл бұрын
Great videos! It is well explained, once you understand why (and this is so important) you are using some function or model. Besides, you also have a great resource material (and it shows you have done it with excelence). You are an awesome professor! Congrats, from Brazil :)
@dataschool
@dataschool 7 жыл бұрын
Thanks so much for your kind words! I'm glad the videos have been helpful to you. Good luck with your machine learning education!
@RHONSON100
@RHONSON100 6 жыл бұрын
Just like Andrew Ng you are a genius....he gave a clear explanation in theory and you produced a mesmerising implementation techniques in such a simple way that is inexplicable..............Awesome machine learning video i have watched so far...you helped me a lot you could never imagine..thank you sir
@dataschool
@dataschool 6 жыл бұрын
Thanks very much for your kind words!
@RHONSON100
@RHONSON100 6 жыл бұрын
you are most welcome sir
@salmanpatel5666
@salmanpatel5666 3 жыл бұрын
Thanks a ton, perfectly explained the concept and the code
@dataschool
@dataschool 2 жыл бұрын
Great to hear!
@pranayrungta
@pranayrungta 5 жыл бұрын
Very well explained!!!! Explanation is very impressive...
@dataschool
@dataschool 5 жыл бұрын
Thanks!
@eyalcarmi3984
@eyalcarmi3984 6 жыл бұрын
Your video tutorial is very good. Thank you for helping understand these topics
@dataschool
@dataschool 6 жыл бұрын
You're welcome!
@Lala-qh3wl
@Lala-qh3wl Жыл бұрын
Great ! Thank you very much for sharing such a clear explanation 🙌
@dataschool
@dataschool Жыл бұрын
You're very welcome!
@bevansmith3210
@bevansmith3210 5 жыл бұрын
Thanks Kevin, very very helpful, as always.
@dataschool
@dataschool 5 жыл бұрын
You're very welcome! Glad it was helpful to you :)
@manishthapliyal6372
@manishthapliyal6372 5 жыл бұрын
Beautifully explained
@dataschool
@dataschool 5 жыл бұрын
Thanks!
@mikezhu7852
@mikezhu7852 4 жыл бұрын
THE best tutorial ever! Thank u
@abusaleham
@abusaleham 7 жыл бұрын
Awesome explanation....!
@dataschool
@dataschool 7 жыл бұрын
Thanks!
@ovoalways
@ovoalways 9 жыл бұрын
Great job Kevin. You're videos are really helpful
@dataschool
@dataschool 9 жыл бұрын
Ogheneovo Dibie Glad you're enjoying them!
@ovoalways
@ovoalways 9 жыл бұрын
Thanks Kevin. Do you know of any resources that make it easy to import and transform my own datasets before using sci kit learn? I have data samples contain both numerical, categorical and boolean features. Thanks Kevin
@dataschool
@dataschool 9 жыл бұрын
Ogheneovo Dibie I mostly use Pandas for data reading and transformation. I demonstrate Pandas in this video: kzbin.info/www/bejne/aYu6poOMjNZqppY Does that help?
@kamran_desu
@kamran_desu 8 жыл бұрын
Excellent explanation of cross validation and it's wonders - thanks for the improvement recommendations also
@dataschool
@dataschool 8 жыл бұрын
Thanks for your kind comment, and you're very welcome!
@kamran_desu
@kamran_desu 8 жыл бұрын
I actually used your method on my GBM model, something like a 10-fold stratified cross-validation on 80% of the data for hyperparameter tuning e.g. max depth, min rows, etc. in a search grid, and then kept 20% as hold-out set, works quite consistently :)
@dataschool
@dataschool 8 жыл бұрын
Great to hear!
@Kevin7896bn
@Kevin7896bn 5 жыл бұрын
One of the best explanation. Thanks
@dataschool
@dataschool 5 жыл бұрын
Thanks for your kind words!
@hppeng
@hppeng 7 жыл бұрын
THANK YOU SO MUCH. Wonderful video series. Well done. Thanks again.
@dataschool
@dataschool 7 жыл бұрын
You're very welcome! I'm glad the series is helpful to you!
@rabellomusic
@rabellomusic 7 жыл бұрын
you are amazing. Thank you for creating this course.
@dataschool
@dataschool 7 жыл бұрын
You're very welcome! I'm glad it's helpful to you!
@sarabroadcasting9591
@sarabroadcasting9591 6 жыл бұрын
This is really a very good video. Easy to understand
@dataschool
@dataschool 6 жыл бұрын
Thanks!
@user-vt3uh2in7o
@user-vt3uh2in7o 5 ай бұрын
best explanation, easy to understand. thank you so much
@dataschool
@dataschool 5 ай бұрын
Thank you!
@riderblack6401
@riderblack6401 7 жыл бұрын
I will always be your audience. Your teaching saves me. lol
@dataschool
@dataschool 7 жыл бұрын
Glad to hear! :)
@manalelai2598
@manalelai2598 6 жыл бұрын
What a great material ! Thanks a million
@dataschool
@dataschool 6 жыл бұрын
You are very welcome!
@swagatmishra9350
@swagatmishra9350 4 жыл бұрын
Thank you very much for such a very beautiful explanation!!!
@dataschool
@dataschool 4 жыл бұрын
🙏
@DTPwr
@DTPwr 5 жыл бұрын
All about cross validation in one video , THAAAAAAAAAAAAAAAAAAAAAANK YOU
@dataschool
@dataschool 5 жыл бұрын
You're very welcome! :)
@abmsaroar2829
@abmsaroar2829 7 жыл бұрын
Very Informative and well presented. Thanks a lot for sharing
@dataschool
@dataschool 7 жыл бұрын
You're very welcome! Hope you enjoy the rest of the series: kzbin.info/aero/PL5-da3qGB5ICeMbQuqbbCOQWcS6OYBr5A
@brendensong8000
@brendensong8000 3 жыл бұрын
Another great class!!!!
@dataschool
@dataschool 3 жыл бұрын
Thank you!
@abhisheksaxena200
@abhisheksaxena200 5 жыл бұрын
Just awesome.. beautifully explained.. . Thanks a ton
@dataschool
@dataschool 5 жыл бұрын
You're very welcome!
@libardomm.trasimaco
@libardomm.trasimaco 6 жыл бұрын
Very clear and useful video. Thanks you so much
@dataschool
@dataschool 6 жыл бұрын
You're welcome!
@NguyenDuy-jd6sm
@NguyenDuy-jd6sm 4 жыл бұрын
OMG those video are the bomb, Nice job mate !
@dataschool
@dataschool 4 жыл бұрын
Thank you!
@matinafragkogianni1376
@matinafragkogianni1376 8 жыл бұрын
Great video, thanks a lot!
@dataschool
@dataschool 8 жыл бұрын
+Matina Fragkogianni You're very welcome, I'm happy to help!
@rusmat0173
@rusmat0173 6 жыл бұрын
Absolutely brilliant! Thank you.
@dataschool
@dataschool 6 жыл бұрын
You're welcome!
@sevicore
@sevicore 2 жыл бұрын
Good video. Maybe is for my level of english but i dont understand why at 24:00 we compare the accuracy of KNN with Linear Regression when KNN is used for classification and Linear Regression is used for regression. I know Cross Validation works for both but the response variable in both cases should be different, since for KNN should be categorical and for LR should be continuos. Great series, enjoying them so far. Thanks for the good content :)
@dataschool
@dataschool 2 жыл бұрын
I'm comparing KNN with Logistic Regression, which is used for classification. Hope that helps!
@patite3103
@patite3103 3 жыл бұрын
Awesome video! Thank you a lot!
@dataschool
@dataschool 3 жыл бұрын
You're welcome!
@shivanishrivastava4968
@shivanishrivastava4968 7 жыл бұрын
Thank you so much, Sir!! Amazing tutorials :)
@dataschool
@dataschool 7 жыл бұрын
You're very welcome! :)
@comeinwiththerain19
@comeinwiththerain19 6 жыл бұрын
This was super helpful, thank you.
@dataschool
@dataschool 6 жыл бұрын
Great to hear!
@charlotteramos2267
@charlotteramos2267 4 жыл бұрын
Hi Kevin, how are you!! First of all, thanks for your videos, you are awesome for posting them for us, and also because you are a great teacher and very good explaining. I have two doubts: 1. why is cross validation better than fitting a model (or training it) with all the data? 2. is cross validation a usefull method for timeseries?
@reshaknarayan3944
@reshaknarayan3944 5 жыл бұрын
Saved my day! May god bless you.
@dataschool
@dataschool 5 жыл бұрын
Thanks!
@davidavornyo128
@davidavornyo128 2 жыл бұрын
This is absolutely excellent 👍
@dataschool
@dataschool 2 жыл бұрын
Thank you so much! 🙏
@javonnii436
@javonnii436 3 жыл бұрын
Great video! The only line of code that I needed to update is reshaping the data to pass into the binarize function and then flatten the return ndarray. '''y_pred_class_2 = binarize(y_pred_prob.reshape((192,1)), threshold=0.3).flatten() '''
@Dexter01
@Dexter01 4 жыл бұрын
You are charismatic, thank you!
@dataschool
@dataschool 4 жыл бұрын
Thanks!
@jongcheulkim7284
@jongcheulkim7284 2 жыл бұрын
Thank you so much. This is very helpful^^
@dataschool
@dataschool 2 жыл бұрын
Glad it was helpful!
@jaimegonzalezsuarez1566
@jaimegonzalezsuarez1566 7 жыл бұрын
good work you explain everything very well
@dataschool
@dataschool 7 жыл бұрын
Thanks so much for your comment!
@mikemyers9524
@mikemyers9524 6 жыл бұрын
wow...very CLEAR. very HELPFUL
@dataschool
@dataschool 6 жыл бұрын
Thanks!
@sridhaarrb
@sridhaarrb 6 жыл бұрын
Good Vedio, it make concepts clear and great to understand...
@dataschool
@dataschool 6 жыл бұрын
Thanks!
@NipunRawat08
@NipunRawat08 3 жыл бұрын
The best tutorials ever!!
@dataschool
@dataschool 3 жыл бұрын
Thanks!
How to find the best model parameters in scikit-learn
27:46
Data School
Рет қаралды 153 М.
How to evaluate a classifier in scikit-learn
54:47
Data School
Рет қаралды 151 М.
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН
ААААА СПАСИТЕ😲😲😲
00:17
Chapitosiki
Рет қаралды 3,6 МЛН
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,1 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 74 МЛН
Comparing machine learning models in scikit-learn
26:42
Data School
Рет қаралды 186 М.
Complete Guide to Cross Validation
29:49
Rob Mulla
Рет қаралды 50 М.
k-Fold Cross-Validation
15:20
David Caughlin
Рет қаралды 20 М.
How do I encode categorical features using scikit-learn?
27:59
Data School
Рет қаралды 137 М.
Power Analysis, Clearly Explained!!!
16:45
StatQuest with Josh Starmer
Рет қаралды 298 М.
XGBoost in Python from Start to Finish
56:43
StatQuest with Josh Starmer
Рет қаралды 217 М.
Making sense of the confusion matrix
35:25
Data School
Рет қаралды 118 М.
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН