Python Machine Learning Tutorial (Data Science)
HTML-код
- Опубликовано: 27 апр 2024
- Build your first AI project with Python! 🤖 This beginner-friendly machine learning tutorial uses real-world data.
👍 Subscribe for more awesome Python tutorials like this: goo.gl/6PYaGF
👉 Get the CSV file: bit.ly/3muqqta
💡 Need Python basics? Check out these resources:
- Python in 1 Hour: • Python for Beginners -...
- Full Python Course: • Python Tutorial - Pyth...
✋ Stay connected:
- Twitter: / moshhamedani
- Facebook: / programmingwithmosh
- Instagram: / codewithmosh.official
- LinkedIn: / codewithmosh
💡 What you'll learn:
- Foundational machine learning concepts.
- How to apply algorithms using Python.
- Work with real-world data for practical results.
👉 This tutorial is perfect for you if:
- You're curious about AI and machine learning.
- You have basic Python knowledge.
- You want a hands-on learning experience.
Let's get started!
📖 TABLE OF CONTENT
0:00:00 Introduction
0:00:59 What is Machine Learning?
0:02:58 Machine Learning in Action
0:05:45 Libraries and Tools
0:10:40 Importing a Data Set
0:17:01 Jupyter Shortcuts
0:22:53 A Real Machine Learning Problem
0:26:09 Preparing the Data
0:29:15 Learning and Predicting
0:33:20 Calculating the Accuracy
0:39:41 Persisting Models
0:42:55 Visualizing a Decision Tree
#Python #AI #MachineLearning
for info:
1) At 32:52, to avoid UserWarning: X does not have valid feature names, we need to train the model with the values of input_dataset. i.e, use X.values instead of X in model.fit(X.values, y).
2) 42:04, joblib is now a seperate py package. we now need to import it as import joblib rather than from skilearn.externals.
Anyway thanks Mosh for another great tutorial..
Thanks for the help!
Welcome
Thank you!
Thank you, kind person! God bless you!
thanks
I'm so happy that you started giving courses on machine learning. I appreciate your clear teaching style.
@@programmingwithmosh, Do you have a full course in this subject please?
@@programmingwithmosh sir I have a query regarding machine learning recently I have done a smoke absorber machine project ,but I have a dialemma that whether I can apply Machine learning concept to that project and how to apply ??. Can you Please help me out sir.??
Yes I agree. Knowledge point to point. We love Moshs' teach style. Lots of Love from Nepal 🎉😘💐
@@programmingwithmosh I was wondering if you could make more Machine Learning project videos
hey, I can't find his machine learning course. can you please share the link.
Dude, ive been working with python for 2 years and never really dove into machine learning. This was such a cool tutorial thank you!
One of the best I have seen. The video has clear sound and it is easy to follow. You cut the unnecessary stuff out so we don’t get distracted or overwhelm by the small tiny detail that might not be important at the moment.
I finally got a video explaining only the topic of machine learning with python! Thank you very much Mosh! Really love this channel :)
Awesome video! Not only the video provided fast track intro into the world of machine learning, but also creates interest in us to learn it even if we weren't interested before. Great stuff Mosh!
I haven't come across a tutorial that helps a complete beginner understand Machine Learning like this video. Its super simplified. Thanks a million.
I'm so glad I stumbled upon this. You are amazing! This was very pleasant and easy to follow. I learned a ton and I especially like that you took us through your thought process while examining the music data set, too. Thank you very much! Subscribed.
Mister Mosh, thank you for all of the easy to follow tutorials that you make for us, please keep keep up the good work, i hope you post more courses (preferably in python) :)
You are the reason why I started programming. I'll never forget the things you've done to help me.
Same bruhhhh !!!!!!!!!!
me3
Is this tutorial useful for someone who is beginning in data science?
@@Intellectual_House yes, for people like me who have been intro android for a while
@@codespear could you recommend me any data science with python channel?
Amazing tutorial! You explained everything so clearly and helped me to grasp some of the topics even better!
This was excellent material! Nice to see how well planned and put together this whole thing was. Very professional content! And it actually got me to open my laptop to download jupyter to try this out...and start learning python along the way lol! I come from programming background so not too worried about that, I just mention this as a testament to this video and as feedback to the appeal it had for this particular viewer. 👍
Df _..... Plz how can find this in clavier (df _ pd.read_csv(vgsales.csv)
_ is not work with color pink
Words are not enough to appreciate what you present in your channel, I do believe you are number one in programming.
completely agree
Mosh You're really helping the students which cannot afford the costliest courses online. Thanx, a lot mosh, you're such an amazing person.
What a wonderful way to present ideas. The proper rhythm and match between words, movements and images! Congrats!
A really cool and hands-on approach to understanding the basics of ML and decision-tree. Bravo !! 1 hr well spent.
Thanks Mosh for your great course about machine learning with python! You are a great teacher and programmer!Looking forward to your further topics of M.L. !
Thank you Mosh , i have been following your tutorials and I love the way to break down python programming to my understanding .
Hey Mosh, your contents and teaching style are straightforward and easy to follow. It would be great help if you do some tutorials based on medical imaging (CT,MRI) data! I am having difficulties in dealing with those. Thank you!
This would really be helpful
That's one of the cool things about machine learning and why I want to get into it; it is applicable to virtually every subject matter and field. For Mosh to do specific use cases, I suppose they would have to become common or popular enough for him to do a video tutorial. He could also place it behind a pay wall as he does have lots of more in=depth content that costs money; check the description for links if you're interested.
loved the tutorial. I wish you cover more ML algorithms specially NLP.
Finally, I found something practical rather than theoretical.
Thank you sir😇
Any other good videos ?
Thank you very much sir, I've never seen a full tutorial like this
specifically for machine learning, data preparation until visualization
This course is mind-blowing! So organized, easy-to-understand! Thank you so much!
This is the best tutorial I've ever seen. The best use of time .❤️
Modern teaching requires modeling, hands-on training and right to the point - step-by-step like you would do at a real the job. I believe Mosh is a natural born teacher who puts students first. He’s a true master of his craft. I want to enroll in you data science class. You are simply the best.
Df _..... Plz how can find this in clavier (df _ pd.read_csv(vgsales.csv)
_ is not work with color pink
Thanks so much for creating this tutorial. It really pulled together some concepts for me from a data science bootcamp im currently taking.
Really love your tuts Mosh, want to tell you thank you. I have learn so much stuff with your videos this year!
Thanks for doing this!!!!
You mastered the art of content creation. I was asking you to do this for a quite long time. Looking forward to an end to end ML & DL COURSES.
I recently took some advanced ML courses partially but was unsure of how to handle real-world data even if I finish the course, but this basic course gave me a great foundation and the confidence to understand how machine learning works. Thank you so much for your help.
Is this tutorial useful for someone who is beginning in data science?
Your tutorials are really clear and informative. Thankyou Mosh!
The clearest tutorial I found on YT! Thanks a lot!
Thank you man ❤️ after completing your 6 hours python course. I loved the way you teach 🤩 This is what I'm waiting for 😍 Thank you Mosh 😊
Same here.Thanku Mosh!
is this enough video for machiine learning with python?
@@SaurabhSingh-kc8tm Nope. You have to learn more things gradually. This is the first step to make a strong base in ML using python. After that you can watch Videos from Coursera - Machine Learning (University of Stanford) - By Andrew NG
@@ammaraltaf8332any other good video to suggest for more data science learning ?
I am a little bit lost and need some orientation 😢
The way you explain is amazing! Do you have a course completely on machine learning? Thanks
You're one of the best teachers ever!
Please make more Machine Learning videos.
Thank you for this!
Mosh's programming courses are the best cources I have ever took. Thank you so much!
It helped me a lot!
You're a gifted teacher Mosh. I lost your channel on my old RUclips account, I just found your channel again. Do you have a longer machine learning tutorial covering clustering, classification, neuro networks, and logical regression?
i thought to myself “i’ll watch a video in bed to fall asleep” - ended up watching the whole thing and realised how easy it is to get started with machine learning! thank you for the amazing video
I’m literally doing the exact same thing lol. It’s 3:28 am
@@codyhaeysits 3:37 now here😅😂
That's an excellent tutorial! With all the appropriate details, and the code while the total duration was just perfect
Thank you so much! Love the visualization of the decision tree.
Please have more tutorials on machine learning in Python!
man this seems exciting as hell. I'm deep into javascript, react and all that stuff now but I'm gonna def come back to this sometime in the future.
You are the best teacher please make a full course on machine learning and deep learning.
Yeah mosh please we need machine learnings full course
@@mohammedfawaaz693 agreed!!!!!
@@mohammedfawaaz693 Yes agree tensorflow, keras and scikit learn.
Have patience there are other tutorials out there if you really need it now
@@bijoyketonWe want moshs style of explanation of machine learning viz best
Really enjoyed it. Thanks for your effort. Learnt Python from you and now, this too. Looking forward to much more tutorials
Fantastic, a single video that cleverly covers just enough to get started.
Great you are the best instructor and software engineer in the world you teach the best course in the world 😎😎😎👍👍👍👍👌👌👌👌✌✌🔥🔥🔥☄☄☄
Dude you are literally amazing, few months ago I bought your Python Mastery Course now you uploaded this for free, you are saving millions of people (by getting jobs) lol
Mosh, amazing tutorial as always, always wanted to write a simple ML code, Thanks for your work! :)
I am not going to lie, but that was one of the best video tutorials I have seen on ML. I kept on thinking that ML would be beyond me, but I ,amaged to grasp the fundamentals and understood further. Thank you so much for this. You have a subscriber.
data analysts should be charged for animal trafficking,, as they import pandas and feed them to python.
Hahaha that's funny
good sense of humour :)
we are laughing; really
Funny guy I like it
@@Abdul1999- 🤪🤭
Your assumptions in the kind of music liked based on age prediction,It's quite true. Building a model of such truly shows that you are one of the best guys who totally know what he does for real. Mosh, I doff my hat. Just keep it rolling !
I really enjoyed your video! One thing I would like to suggest is perhaps portraying the graph that was shown in the last minute of the video earlier on to portray how these results will end up being extrapolated. So far, really enjoying how I can program to take data similar to that on an Excel Spreadsheet and create a graph using Python. Kudos!
Excellent explanations, clear and detailed. 100% recommendable. Thank you so much!
thank you so much Mosh! I've been going through so many tutorials but this one fitted in my mind finally!
I am a university student. I was not good at programming in my first year, and always receive the less grade for programming. Then I followed your several courses. Now I am good at programming as well as other CS subjects. Thank you so much. Following your courses will make subject knowledge, how to learn programming, and how to think as a programmer.
Highly recommend your all courses....❤
This is the type of thing I have to read, watch ask questions. Your video is a great presentation, repeating a lot of what I have already read/been taught. It is nice to see the same information presented multiple ways. Thank you
You are the best teacher I've ever come across. You're better than our lecturers, lecturers teach us only to pass exams.
Best tutorial to get started with machine learning
Great!!! Kindly keep going on with ML and DL...
What I find fascinating is how schools struggle to teach kids because the teachers hate their job and don't want to be there along with the students, but you go to RUclips and you find enthusiastic, detailed, videos along with people who legitamently want to help people learn.
Then turn around and teach others how to do what they were taut and all that for the low low price of a like, comment and subscribe. I learn and use very very little of what I learned in school, but I know and learned so much more from RUclips. I know alot about Python, HTML, and Unity, SQL Database, Hacking, Pentation testing, building, home repair, car repair, and robotics ALL OF IT from RUclips not school.
Thank You!
Thank you for making this video and for free! Some of us want to learn but don’t have the resources! You are helping my future!
Please make a deep learning tutorial also please, This course helped me a lot. Please Thank you mosh you are the best guru.
HELLO MOSH PLEASE CONSIDER MAKING MORE VIDEOS ON MACHINE LEARNING LIKE THIS,YOU'RE MY FAVOURITE AND BEST INSTRUCTOR,YOUR WAY OF INSTRUCTING IS TO ANOTHER LEVEL.THANKS VERY MUCH FOR THIS! HOPING MORE IS COMING FROM YOU ON THIS FIELD
Hello any good links for machine learning
As usual, you're a life saver! thank you so much Mosh!!!!
Thanks, now I got an overview of what Machine learning is all about, and how we go about solving problems using algorithms. THANKS.
At 41:06, where Mosh types 'from sklearn.externals import joblib', I (and many other people) get the error that the module could not be found. The fix is to import joblib directly like: 'import joblib as jb' and use it as 'jb.dump(.........)' later on.
You 're really good teacher ❤
I hope you create a playlist speciallised in AI like tensor flow , pytorch and keras
Any other good link for data science?
You can't imagine how much you helped me with this video,
thank you very much!
Many thanks for this tutorial.
I enjoyed going through it.
structured
concise and into the point.
Seriously this tutorial is going amazing ☺️😊
Thank you so much mosh.
@@programmingwithmosh yes 😊🥰
@@programmingwithmosh can you help me with that graphiz part 😑
Feels like a lecture in a prestigious european university. Thanks Mosh.
Thank you. Your teaching style in programming is unmatched.
I loved the tutorial completely and the background score in between as well:)
MOOOOOSH! I found you earlier this week and bought your Python course. You teach so simply and clearly, thank you! Will you be coming out with a Machine Learning full course on your site soon? I need it yesterday!
??
From about 43:30, You can also plot the decision tree in Jupyter without creating a dot file. Just replace the tree.export_graphviz method with tree.plot_tree and leave out the "out_file" kwarg.
excellent, 100% working Thanks
Thank you! This is useful, because somehow the option: "open preview to the side" didnt show up for me
@@yahalo4409 Same... Very annoying
It works. Thank you! I have the same problem that "Open review to the side" didn't show up.
Nope, tree.export_graphviz did not work for me.
used graphviz preview by EFanZH
after exiting VSCode, did the following:
a) Installed GraphViz (for all users)
either directly from the marketplace or via the
VSCode extension install method - I prefer the direct install for this one… but….
powershell install is another way using ===>> winget install graphviz
b) in powershell, verified it was up with dot -V
c) edited the system PATHs (both of them) in environmental variables, using: C:\Program Files\Graphviz & C:\Program Files\Graphviz\bin for both PATH sections
d) restarted the PC (just in case)
e) opened VSCode
There it is…
Pretty amazing video. I’ve been wanting to see something that at least one end to end example. I know this is a super simple dataset, but it’s nice to get an understanding of the mechanics. Will very much consider doing your class.
Your clear explanations and practical approach have made complex concepts easier to understand. I truly appreciate the effort and time you put into creating such valuable tutorials. Thank you for empowering learners like me with the knowledge and skills needed to excel in data science.
Rather than run button we can press shift+enter for output
Sir you read my mind this was just the tutorial I was looking for. As before you are the best
I just searched about this tutorial today
He uploaded this a year ago under python tutorial , now he just bifurcated that and uploaded seperately
@@universal4334 Yes, but it's quite good for people who never searched for full python course.
I like how you explain everything so nicely!
This a god send, the best python tutorials out there! very clear, simple, to the point!
Very well Explained. Thanks for uploading this video, although i have a question, if i have string values in my csv files e.g names, publisher, genre, etc then how to work with DecisionTreeClassifier() ? I guess that only works on numerical data.
This kind of topics I expect from you for a long time man....keep rocking mosh 😁
Siva bro yellame padustiya bro coding theriyuma bto
@@mumbaiindiansfan3087 python ah
@@Siva-lx9dw aama bro entha channel la easy a padikalam sollunga bro
@@mumbaiindiansfan3087 intha channellaye python 6hours video irukum bro atha paarunga ...easy ah understand aagum...
@@mumbaiindiansfan3087 ruclips.net/video/_uQrJ0TkZlc/видео.html
You have made it so simple and clear for the beginners to understand such a complex concept 👍
Thank you so so much for this video!!!!!! You covered the theory briefly and went right into practicing, I really like it.
45:00 to visualize the decision tree right in the jupyter notebook.
tree.plot_tree(model, feature_names = ['age', 'gender'],
class_names = sorted(y.unique()),
filled = True)
lifesaver
YOU ARE THE MAN
Love the data set you took....all above 30 falling in love with classical music.
Great video. Took a machine learning course during undergrad but forgot most of it. After watching this video things came back. Thank you.
Ahhh this is such a great tutorial on such a useful topic! Thanks for sharing :)
I'm a high school student and this is super new to me but soooo cool
Any recommendations for how to build on top of this? Add complexity, improve accuracy? Am applying this lesson to my own project
I'm really glad that I watched this video! now we are working on Machine Learning base project for our Thesis. Thank you for your amazing work!
Thank you Mosh for this easy-to-learn ML tutorial. Am a great fan of your work. Keep up the good work sir.
You seem to be genuinely joyful when teaching ML. I appreciate this.
Also your clear voice and style makes it easy to follow for a person with my kind of hearing flaw. BL.
Please do a full tutorial on MERN
Start with MongoDB
Please a mega tutorial about this! 20hrs
One of the simplest demo on ML for begininers, with tools and setup information. thanks a lot!
Simple and Useful as Always! Great Tutorial Mosh!
Finally, i found the video which I was searching before.
And could you explain me the difference between using python IDE and jupyter notebook?
this is not a course for beginners, go pick a beginner level course (Mosh has one), then come back :)
For all the windows users, the music_data file in the description of this video will not work when you will import it in jupyter notebook. So simply, open this zip file in your file explorer and delete an extra folder from the file named as ' __MACOSX '. Next re-run your program, and it will work :)
MOSH HAMEDANI YOU GENIUS. PLEASE MAKE MORE DATA SCIENCE CONTENT. I'M VENTURING INTO THE FIELD AND MOST TUTORIALS THAT I WATCH ARE ALWAYS DIFFICULT TO UNDERSTAND. WITH YOU IT'S LIKE I UNDERSTAND EVERY WORD YOU SAY.
this man, presents well congrats! & thank you!!
When your flutter course is going release. Please mosh you are the greatest teacher I have ever in my life. Please tell us when your flutter course is going release. Can't wait for it... please
I aldo really want that course
@Tech With Tim has one you can follow that seies if you really gonna die if you dont learn it
@@bijoyketon I know but while tech with tim is awesome mosh explains this stuff lot more in detail and more deep
ruclips.net/channel/UCUEuQY2PwZDar70aly6ZNrQ