Тёмный

Training a machine learning model with scikit-learn 

Data School
Подписаться 242 тыс.
Просмотров 224 тыс.
50% 1

Now that we're familiar with the famous iris dataset, let's actually use a classification model in scikit-learn to predict the species of an iris! We'll learn how the K-nearest neighbors (KNN) model works, and then walk through the four steps for model training and prediction in scikit-learn. Finally, we'll see how easy it is to try out a different classification model, namely logistic regression.
Download the notebook: github.com/justmarkham/scikit...
Iris dataset: archive.ics.uci.edu/ml/dataset...
Nearest Neighbors user guide: scikit-learn.org/stable/module...
KNeighborsClassifier class documentation: scikit-learn.org/stable/module...
Logistic Regression user guide: scikit-learn.org/stable/module...
LogisticRegression class documentation: scikit-learn.org/stable/module...
Videos from An Introduction to Statistical Learning: www.dataschool.io/15-hours-of...
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:
ru-vid.com?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

Опубликовано:

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 546   
@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
@mightyflamelord
@mightyflamelord 7 лет назад
i appreciate the fact that you speak very slowly and express clearly!
@dataschool
@dataschool 7 лет назад
Thanks, I try to make it easy for others to understand me! :)
@11folders
@11folders 4 года назад
I totally agree. I don't have to pause the video as frequently while taking notes.
@johnlim640
@johnlim640 2 года назад
This is hands down the best machine learning tutorial. Definition and concept is well-explained. THANK YOU SO MUCH!
@dataschool
@dataschool 2 года назад
Thank you for your kind words! 🙏
@Aviel777Gergel
@Aviel777Gergel 2 года назад
It is so awesome, that you combine first class knowledge+ impressive pronunciation of a professional voice actor. It's super clear! Thank you for the series
@dataschool
@dataschool 2 года назад
Wow, thank you! 🙏 I really appreciate your truly kind words!
@ssagga
@ssagga 8 лет назад
Wow, ML suddenly feels a lot less scary. Can't wait to watch the rest of the series.
@dataschool
@dataschool 8 лет назад
Excellent! Here's a link to the entire video series, for others who are interested: ru-vid.com/group/PL5-da3qGB5ICeMbQuqbbCOQWcS6OYBr5A
@yechihast
@yechihast 6 лет назад
One of the best ML online tutor I have come across, very well thought, every minute in informative. AND I do support Kevin's slow speech pace; it makes it much easier to comprehend the complext concepts. Thank you Kevin.
@dataschool
@dataschool 6 лет назад
You're very welcome!
@Axle_Max
@Axle_Max 5 лет назад
Your ability to explain this topic in simple terms is remarkable. Thank you so much for these videos.
@dataschool
@dataschool 5 лет назад
You're very welcome!
@gsk1740
@gsk1740 5 лет назад
No words to Describe How awesome it is...after watching so many tutorials .
@dataschool
@dataschool 5 лет назад
Thanks very much for your kind words!
@kushalmiglani2691
@kushalmiglani2691 7 лет назад
you are doing a very good job. The stuff and tutorials you are providing for free seriously shows your dedication for your work and how much you care for those who cant afford such expensive tutorials. Thanks
@dataschool
@dataschool 7 лет назад
Thanks so much for your kind words! I'm really glad the tutorials have been helpful to you!
@garriedaden4168
@garriedaden4168 9 лет назад
Many thanks for this video series. I really like the way you develop the subject in manageable chunks and focus on what is really needed to master the subject.
@dataschool
@dataschool 9 лет назад
Garrie Daden That is excellent to hear, and is exactly what I was trying to do! Thanks for your thoughtful comment.
@aditi-ind
@aditi-ind 6 лет назад
Overwhelming, I have been trying to learn these basics since a long time, and finally got this video series, Thank you so much for such clear presentation of such a complex (esp for me) topic.
@dataschool
@dataschool 6 лет назад
You are very welcome! I'm so glad to hear it was helpful to you!
@hasyahaven
@hasyahaven 4 года назад
Loss of words! Ur explanation is with the purpose to answer every root question and with an aim so that one clearly understands. Thanks a lot.
@dataschool
@dataschool 4 года назад
You're welcome!
@tuvantran660
@tuvantran660 4 года назад
Wow, you're the best teacher I've learned so far. Easy to understand and the contents are well explained.
@flamboyantperson5936
@flamboyantperson5936 6 лет назад
Step by step explanation in a clear way. Just love it. Thank you so much.
@dataschool
@dataschool 6 лет назад
You're very welcome!
@pierrelaurent8284
@pierrelaurent8284 7 лет назад
It's a real pleasure to follow this serie, clear, concise and so well teached. Being a non native English speaker, it's 100% understandable. Bravo !
@dataschool
@dataschool 7 лет назад
Wow, thanks so much for your kind words! I really appreciate it.
@edmarkowitz9873
@edmarkowitz9873 5 лет назад
You're videos are so far superior to the commercial products out there I just can't believe it. I wish I had found them before dumping a small fortune into the "pay-to-play courses." Thank you for sharing this information and be sure that I will join the Paetron group.
@dataschool
@dataschool 5 лет назад
Wow! Thank you so much for your kind words! :) I look forward to having you in the Data School Insiders group... you can join here: www.patreon.com/dataschool
@kritikakamra22
@kritikakamra22 7 лет назад
Thanks for making such lucid videos Kevin! You have no idea how helpful these videos are for a novice like me.
@dataschool
@dataschool 7 лет назад
Excellent! That's very nice to hear!
@atiflatif7233
@atiflatif7233 7 лет назад
Thanks so much for making it so easy to understand. I have watch many videos on Machine Learning and have never felt so confident in applying the concepts. Well Done!
@dataschool
@dataschool 7 лет назад
You are very welcome! I'm glad to hear my video was helpful to you!
@KowsalyaSubramanian
@KowsalyaSubramanian 7 лет назад
Thanks Kevin. I like the videos very much. Wish I had known about this series a month back. I dropped my ML course in this semester because the material was very overwhelming. Very useful videos and the material is presented in a very organized manner. Keep up the good work!
@dataschool
@dataschool 7 лет назад
Thank you so much for your kind comments!
@c00kiemonster247
@c00kiemonster247 8 лет назад
This literally is best tutorial guide on the internet.. thank you so much
@dataschool
@dataschool 8 лет назад
Wow! What a kind thing to say... thank you!
@aquaman788
@aquaman788 4 года назад
Me too!!!!!!
@Dockmark5
@Dockmark5 6 лет назад
Not just educated, but a talented teacher. Fantastic combination
@dataschool
@dataschool 6 лет назад
Thanks so much! I really appreciate it! :)
@srivathsgondi191
@srivathsgondi191 Год назад
Despite this being an old playlist, without a doubt still the best one I found on youtube so far...
@dataschool
@dataschool Год назад
Thank you so much!
@Guinhulol
@Guinhulol 5 месяцев назад
Oh yeah! It doesn't get better than that!
@colmorourke4657
@colmorourke4657 4 года назад
Simply outstanding work. It's highly structured and clearly explained. I also greatly appreciate the excellent references you link for various sections.
@dataschool
@dataschool 4 года назад
Thank you so much for your kind words!
@sneharane2596
@sneharane2596 4 года назад
Very well explained, you are a great teacher! Loving this series !
@rayuduyarlagadda3473
@rayuduyarlagadda3473 6 лет назад
This is the best explanation, I have gone through many videos but this video helped me a lot for better understanding.... Thank you markham.
@dataschool
@dataschool 6 лет назад
You're very welcome! Glad it was helpful to you!
@lightningblade9347
@lightningblade9347 6 лет назад
This is the best Machine learning video I've ever watched, amazing how you did break a complicated topic like machine learning into small sections accompanied with very, very clear explanations, thank you very much I hope you continue it's been a long time since you posted a video on RU-vid.
@dataschool
@dataschool 6 лет назад
Thanks so much for your kind comments! I really appreciate it :) P.S. I published 10 videos last month, and will have more in the future!
@lightningblade9347
@lightningblade9347 6 лет назад
Wow thanks for the update, I'm gonna check them right now. bless you.
@adityarajora7219
@adityarajora7219 6 лет назад
Love your Speed and Clarity man.
@dataschool
@dataschool 6 лет назад
Thank you!
@alitanwir3372
@alitanwir3372 7 лет назад
Kevin, your a great teacher, your explanations are top notch! Subbed on the channel and the news letter! Thanks a lot! :)
@dataschool
@dataschool 7 лет назад
Wow, thanks so much! Great to hear :)
@ralfmatulat
@ralfmatulat 8 лет назад
This whole series is helpful and fun to watch. Thanks!
@dataschool
@dataschool 8 лет назад
That's excellent to hear. Thanks for watching!
@victorekwueme3581
@victorekwueme3581 8 лет назад
Your explanations in your videos are easy to understand and very or should I say extremely helpful. Keep it up....
@dataschool
@dataschool 8 лет назад
+Victor Ekwueme Thanks! I spent a lot of time figuring out how to teach this material in the classroom, and so I thought it was important to spread the knowledge using videos as well :)
@brunofazoli1
@brunofazoli1 7 лет назад
Amazing explanation! I'm so excited to finish the series! Congrats!
@dataschool
@dataschool 7 лет назад
Thanks very much! Glad you are enjoying the series :)
@shobhitsrivastava4496
@shobhitsrivastava4496 5 лет назад
You are one of the best teacher ever got taught !
@dataschool
@dataschool 5 лет назад
Thanks so much! :)
@Abhay17291
@Abhay17291 7 лет назад
Thank you for all these videos, Kevin! Very clear and easily understandable.
@dataschool
@dataschool 7 лет назад
You're very welcome! :)
@pranjalkumar9378
@pranjalkumar9378 5 лет назад
You choose your words very carefully. Awesome teaching 👏
@dataschool
@dataschool 5 лет назад
Thanks so much! 🙌
@spandanhetfield
@spandanhetfield 8 лет назад
You have done an awesome job. I'm the TA for a course on Bioinformatics and I'll be using your videos to teach my students a short primer on getting started with ML just so that they can shed that fear and get down to work :)
@dataschool
@dataschool 8 лет назад
+Spandan Madan That's awesome! Please let me know how it goes!
@guptaachin
@guptaachin 5 лет назад
You are the best Kevin. I always find the most relevant stuff in your videos.
@dataschool
@dataschool 5 лет назад
Thanks Achin!
@robindong3802
@robindong3802 6 лет назад
you are one of the best instructors online, thank you so much.
@dataschool
@dataschool 6 лет назад
Wow, thanks so much for your kind comment! :)
@RicardoFerrazLeal
@RicardoFerrazLeal 9 лет назад
Best series of machine learning tutorials out there!
@dataschool
@dataschool 9 лет назад
Ricardo Ferraz Leal Wow, thank you! What a kind compliment. I really appreciate it!
@talkingaboutitinaeasyway5067
@talkingaboutitinaeasyway5067 4 года назад
Thank you very much. Your videos really help me understand ML deeply.
@dataschool
@dataschool 4 года назад
That's great to hear! 🙌
@saraths9044
@saraths9044 3 года назад
Please keep on making videos of the same quality. Thank you so much
@dataschool
@dataschool 3 года назад
Thanks!
@ankrish8692
@ankrish8692 5 лет назад
this is the best speed to make a beginner understand the terminologies one by one ... i really appreciate and thankful yo you for this video . i have seen some videos and i was not able to get wat they were saying bcoz of the speed .... thanks...!!!!!!
@dataschool
@dataschool 5 лет назад
You're very welcome!
@satyakiguha415
@satyakiguha415 9 лет назад
finding these tutorials very interesting.....do continue putting them up...thanks a lot
@dataschool
@dataschool 9 лет назад
***** You're very welcome!
@arjunpukale3310
@arjunpukale3310 5 лет назад
Thank u very much I wanted to start off with ML and tried many tutorials but all were very fast. But u explained each line very nicely
@dataschool
@dataschool 5 лет назад
Great to hear!
@dishonfano7599
@dishonfano7599 5 лет назад
My friend...Thanks a lot..This is the best introduction to machine learning I have ever come across...Please do a deep learning tutorial...Again thanks a lot.
@dataschool
@dataschool 5 лет назад
Thanks very much for your kind words! I really appreciate it.
@SeaCreature_
@SeaCreature_ 6 лет назад
One of the best channels. Nice to see someone speaking so coherent and educational, compared to other channels. Great job Kevin.
@artemkovera5785
@artemkovera5785 6 лет назад
Totally agree with you. It's a great channel. I just published an e-book about machine learning with clustering algorithms. it's available for free for 5 days. Would you like to get a free copy?
@SeaCreature_
@SeaCreature_ 6 лет назад
of course, thank you Artem
@artemkovera5500
@artemkovera5500 6 лет назад
it's here www.amazon.com/dp/B076NX6KY7 You would really help me if you leave a little review on Amazon
@SeaCreature_
@SeaCreature_ 6 лет назад
Great thank you, and will do. I dont use Amazon kindle but I try to figure out how to get around it. Thanks
@artemkovera5785
@artemkovera5785 6 лет назад
You can easily create an account on Amazon if you don't have one (you don't necessarily need to enter your credit card). After that, you will be able to read free e-books on Amazon website through their cloud reader. I regularly read free e-books available on Amazon, and it's very convenient.
@hemenboro4313
@hemenboro4313 4 года назад
its pretty clear and precise explanation. Thanks for making such videos and keep us educated @data school
@avadhanulasairamaraviteja9271
@avadhanulasairamaraviteja9271 5 лет назад
You're just awesome...best videos in recent times...like your way of explanation and please do continue teaching and sharing your knowledge...peace..
@dataschool
@dataschool 5 лет назад
Thanks so much for your kind words! :)
@RohitShukla-mm3gz
@RohitShukla-mm3gz 3 года назад
Such an amazing video. I have never seen this type of clear video. I understand many things. Thanks a lot, Please make a video on unsupervised learning also.
@dataschool
@dataschool 3 года назад
Thanks for your suggestion!
@tugbaozkan207
@tugbaozkan207 4 года назад
your pronuncation is awesome ,im really understand because of you thanks a lot teacher !
@dataschool
@dataschool 4 года назад
Thanks!
@MJ-em_jay
@MJ-em_jay 8 лет назад
Very clear and easy to follow. Thanks!
@dataschool
@dataschool 8 лет назад
Excellent! You're very welcome!
@udaymallam43
@udaymallam43 6 лет назад
Great explanation, simple & effective, Big Thank you for the videos
@dataschool
@dataschool 6 лет назад
You're very welcome!
@omarnassor5259
@omarnassor5259 7 лет назад
very simple and straight forward, thank you data school.
@dataschool
@dataschool 7 лет назад
You're welcome!
@taor412
@taor412 8 лет назад
Thank you a lot for giving such a great video for beginner! Very thanks!
@dataschool
@dataschool 8 лет назад
+TA OR You're very welcome!
@harshitsharma589
@harshitsharma589 3 года назад
Thank you thank you .. I was having some doubts in concept and now it's cleared. I request you to please make some video on data normaliser
@rishabbamrara5072
@rishabbamrara5072 6 лет назад
Very very good and easy to learn lectures. Thank you..
@dataschool
@dataschool 6 лет назад
You're very welcome!
@victoreirekponor6052
@victoreirekponor6052 6 лет назад
Mr Kevin, I really appreciate this tutorials. I hope to become as good as you are some day..
@dataschool
@dataschool 6 лет назад
You're very welcome!
@vishwass9491
@vishwass9491 8 лет назад
clear cut and to the point .thanks.
@dataschool
@dataschool 8 лет назад
+vishwas s You're welcome!
@sravankumar5017
@sravankumar5017 4 года назад
Tq sir for your great explanation it will bring confidence in us that we can learn ml
@transmatter99
@transmatter99 7 лет назад
You're very helpful and intelligent. thank you for these very polished videos.
@dataschool
@dataschool 7 лет назад
You're very welcome!
@paolosalamon
@paolosalamon 6 лет назад
One of the best tutorial I ever seen. I love your speech also.
@dataschool
@dataschool 6 лет назад
Thanks! :)
@paolosalamon
@paolosalamon 6 лет назад
Hi. Are you going to make some new paid course?
@dataschool
@dataschool 6 лет назад
I am continuing to work on both free content and paid content. Stay tuned!
@khanhdo3988
@khanhdo3988 7 лет назад
Keep up the amazing work!
@dataschool
@dataschool 7 лет назад
Thanks!
@user-pn7gq3gk1m
@user-pn7gq3gk1m 5 лет назад
You are great teacher! Thank you very much!
@dataschool
@dataschool 5 лет назад
You're very welcome!
@dheerajsonawane6738
@dheerajsonawane6738 6 лет назад
Great videos, as great talent and easy method to teach, thanks!
@dataschool
@dataschool 6 лет назад
You're welcome!
@dimiro1
@dimiro1 9 лет назад
Very good explanation. Thank you.
@dataschool
@dataschool 9 лет назад
***** You're very welcome!
@bevansmith3210
@bevansmith3210 6 лет назад
Thanks Kevin, these are really great!
@dataschool
@dataschool 6 лет назад
You are very welcome!
@khushalvyas5633
@khushalvyas5633 5 лет назад
You are awesome! Thanks to you for making these videos.
@dataschool
@dataschool 5 лет назад
You're very welcome!
@srinidhibandi2313
@srinidhibandi2313 8 месяцев назад
It is because of these guys we are able to learn Machine Learning concepts so clearly and easily🎉🎉❤❤
@dataschool
@dataschool 7 месяцев назад
Thank you so much!
@srinidhibandi2313
@srinidhibandi2313 7 месяцев назад
@@dataschool Thanks to you Sir!
@GenzoVandervelden
@GenzoVandervelden 7 лет назад
These video's are really great, thanks!
@dataschool
@dataschool 7 лет назад
You're welcome!
@MrMikeWyn
@MrMikeWyn 7 лет назад
Great series of video. Thanks.
@dataschool
@dataschool 7 лет назад
You're welcome! Glad you are enjoying them :)
@HarshaXSoaD
@HarshaXSoaD 8 лет назад
Very effective tutorial series
@dataschool
@dataschool 8 лет назад
+HarshaXSoaD Thanks! Glad it's helpful to you.
@MohammedTamali
@MohammedTamali 8 лет назад
Thanks for the helpful videos It's really a good tutorial for learn safe machine learning.
@dataschool
@dataschool 8 лет назад
+Mohammed Tamali You're very welcome! Good luck with your studies.
@sandeepgautam2465
@sandeepgautam2465 5 лет назад
it only worked when i used two square bracket knn.predict([[3,5,4,2]])
@dataschool
@dataschool 5 лет назад
Right. See here for an explanation: www.dataschool.io/how-to-update-your-scikit-learn-code-for-2018/#only2ddataarrayscanbepassedtomodels
@hfsbhat
@hfsbhat 4 года назад
Thanks Sandeep
@yuvaraj2457
@yuvaraj2457 3 года назад
op = [[1.77, 2.55],] linreg.predict(op) this also works. it is expecting a 2d arrays but i dont know y. adding a comma next to a list makes sense
@danniecutts6221
@danniecutts6221 5 месяцев назад
Great communicator! Thanks!
@dataschool
@dataschool 4 месяца назад
Thank you!
@thisisgurkaran
@thisisgurkaran 6 лет назад
Great video man. You are hero of humanity.
@dataschool
@dataschool 6 лет назад
Wow, thank you! :)
@jerinjohn9518
@jerinjohn9518 6 лет назад
Clear to understand. Thanks kevin
@dataschool
@dataschool 6 лет назад
You're welcome!
@sebastianli5547
@sebastianli5547 5 лет назад
This totally saved me. I love you so much.
@dataschool
@dataschool 5 лет назад
Ha! You are very welcome :)
@JoeG2324
@JoeG2324 7 лет назад
why would anyone dislike this video?
@dataschool
@dataschool 6 лет назад
Ha! I ask myself that same question :)
@rmehdi5871
@rmehdi5871 6 лет назад
probably some other e-learn teaching competitors :)
@TheAlderFalder
@TheAlderFalder 5 лет назад
They hate-im, cus they ain't-im. ;)
@bardamu9662
@bardamu9662 4 года назад
@@dataschool Certainly because they are not using the appropriate classifier for high-end teaching videos :-) Congrats for your video series: very instructive, clearly articulated (pondering theory and examples) and with perfect emphasis in critical points. As a well-known French philosopher used to say: "whatever is well conceived is clearly said and the words to say it flow with ease". Bravo Kevin! Very talented teacher!
@aquaman788
@aquaman788 4 года назад
@@bardamu9662 very good ML lecture!!!!
@CLHLC
@CLHLC 6 лет назад
Thank you! I actually enjoy the speed, gives me time to type python. Thanks man
@dataschool
@dataschool 6 лет назад
You're very welcome!
@marco.nascimento
@marco.nascimento 5 лет назад
Lovinng the series
@dataschool
@dataschool 5 лет назад
Thanks!
@jossylopes
@jossylopes 8 лет назад
Brilliant explanation
@dataschool
@dataschool 8 лет назад
+jossylopes Glad it was helpful to you!
@mohitnagarkoti4086
@mohitnagarkoti4086 4 года назад
Thankyou , very helpfull resources. You are awsome
@dataschool
@dataschool 4 года назад
Thank you!
@pondapelagechandima8186
@pondapelagechandima8186 5 лет назад
Hello, Thanks for explaining such topics in clean manner. Could you please do a explanation for categorical and numerical NAN values imputations? ( How to handle NAN in Machine Learning ? )
@dataschool
@dataschool 5 лет назад
Thanks for your suggestion!
@AbhisarMohapatra
@AbhisarMohapatra 8 лет назад
Wow man !!! Wonderful :) Thank you so much.
@dataschool
@dataschool 8 лет назад
You're very welcome! :)
@Robin-ll9ml
@Robin-ll9ml 7 лет назад
great lectures. thank you so much
@dataschool
@dataschool 7 лет назад
You're very welcome!
@amitbaderia4194
@amitbaderia4194 6 лет назад
Excellent, very clear
@dataschool
@dataschool 6 лет назад
Thanks!
@malyabanbal6738
@malyabanbal6738 8 лет назад
Great videos !!
@dataschool
@dataschool 8 лет назад
Thanks!
@HanifiaDyoniputri
@HanifiaDyoniputri 7 лет назад
Hey, I enjoyed the video very much. But I still don't get it what 'random_state' really affects the accuracy?
@tomasemilio
@tomasemilio 7 лет назад
This is great man, I am watching this in x2 speed, haha.
@dataschool
@dataschool 7 лет назад
Great!
@saurabhkhodake
@saurabhkhodake 7 лет назад
same here
@waliqadri
@waliqadri 7 лет назад
I have to much ADHD to process it in x2
@maxinteltech3321
@maxinteltech3321 4 года назад
Exactly that's why it is so understandable
@sreekrishnanr1812
@sreekrishnanr1812 6 лет назад
Superb explanation thank u 😊😊
@dataschool
@dataschool 6 лет назад
Thanks!
@moDefrawy
@moDefrawy 6 лет назад
Very helpful videos thanks keep it up
@dataschool
@dataschool 6 лет назад
You're welcome!
@memensalihi4456
@memensalihi4456 4 года назад
can you explain the Dynamic time wraping for time series with example please
@JoaoVitorBRgomes
@JoaoVitorBRgomes 2 года назад
Kevin, you said you don't know how well your model do on new data, but when you test your model with predict on the test data, I think it is standard to evaluate the accuracy (or any other metric) of your model.
@dataschool
@dataschool 2 года назад
To be clear, if we are talking about truly "new" data, meaning out-of-sample data, then you actually don't know the true target values, and thus there's no way to check how accurate your model was with those samples. Hope that helps!
@JoaoVitorBRgomes
@JoaoVitorBRgomes 2 года назад
@@dataschool Ah ok, thanks for elaborating. Yes, indeed, e g. a new client asking for a loan (default or not)
@alexandermrkich8734
@alexandermrkich8734 2 года назад
Excellent, thank you!
@dataschool
@dataschool 2 года назад
You're welcome!
@levon9
@levon9 3 года назад
Very helpful and clear - thank you, incl the updated notebooks. Toward the end (t=15:40), using the logreg.fit(X, y) function results in a "/usr/local/lib/python3.6/dist-packages/sklearn/linear_model/_logistic.py:940: ConvergenceWarning: lbfgs failed to converge (status=1): STOP: TOTAL NO. of ITERATIONS REACHED LIMIT." warning and a result of [0, 0] even with the updated code. Any suggestions? Changing max_iter to 500 gets rid of the warning, but still ends up with [0, 0] rather than [2. 0] as shown in the video. Any suggestions? I'm using Colab notebooks.
@dataschool
@dataschool 3 года назад
The default solver for LogisticRegression has changed from liblinear to lbfgs. If you change it back to liblinear, it will converge. Try: logreg = LogisticRegression(solver='liblinear') before fitting. Hope that helps!
@ameer9900
@ameer9900 7 лет назад
thanks for the great videos.
@dataschool
@dataschool 7 лет назад
You're very welcome!
@anumeena74
@anumeena74 4 года назад
really good video thank you so much
@dataschool
@dataschool 4 года назад
Thanks!
@mustaqimkhan6885
@mustaqimkhan6885 7 лет назад
Your videos are awesome..
@dataschool
@dataschool 7 лет назад
Thanks for your kind comment!
@adiflorense1477
@adiflorense1477 3 года назад
6:01 Sir, is the white area color called outlier / noise?
@emmanuelabiola8602
@emmanuelabiola8602 8 лет назад
Hey, Do you have a tutorial on how to create a custom dataset for scikit learn or where I can find a tutorial on how to do this?
@dataschool
@dataschool 8 лет назад
If your goal is just to be able to read a dataset into memory for use with scikit-learn, I suggest storing it as a CSV file and reading it into memory using pandas. Here are two videos that might be helpful to you: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3ZWuPVWq7p4.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ylRlGCtAtiE.html Hope that helps!
@lrdyeah
@lrdyeah 8 лет назад
Thanks for the video
@dataschool
@dataschool 8 лет назад
You're very welcome!
Далее
Comparing machine learning models in scikit-learn
26:42
Jake VanderPlas: Machine Learning with Scikit Learn
1:34:37
All Learning Algorithms Explained in 14 Minutes
14:10
Просмотров 204 тыс.
5 Math Skills Every Programmer Needs
9:08
Просмотров 1 млн
Support Vector Machines: All you need to know!
14:58
Просмотров 139 тыс.