Python Machine Learning Tutorial (Data Science)
VloĆŸit
- Äas pĆidĂĄn 15. 05. 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
Dude, ive been working with python for 2 years and never really dove into machine learning. This was such a cool tutorial thank you!
I haven't come across a tutorial that helps a complete beginner understand Machine Learning like this video. Its super simplified. Thanks a million.
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'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.
I finally got a video explaining only the topic of machine learning with python! Thank you very much Mosh! Really love this channel :)
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đ đ
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!
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?
Words are not enough to appreciate what you present in your channel, I do believe you are number one in programming.
completely agree
Amazing tutorial! You explained everything so clearly and helped me to grasp some of the topics even better!
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) :)
Mosh You're really helping the students which cannot afford the costliest courses online. Thanx, a lot mosh, you're such an amazing person.
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.
What a wonderful way to present ideas. The proper rhythm and match between words, movements and images! Congrats!
Finally, I found something practical rather than theoretical.
Thank you sirđ
Any other good videos ?
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
Thank you very much sir, I've never seen a full tutorial like this
specifically for machine learning, data preparation until visualization
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 CZcams 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 CZcams. I know alot about Python, HTML, and Unity, SQL Database, Hacking, Pentation testing, building, home repair, car repair, and robotics ALL OF IT from CZcams not school.
Thank You!
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- đ€Șđ€
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....â€
Thank you Mosh , i have been following your tutorials and I love the way to break down python programming to my understanding .
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
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. !
A really cool and hands-on approach to understanding the basics of ML and decision-tree. Bravo !! 1 hr well spent.
Mosh's programming courses are the best cources I have ever took. Thank you so much!
It helped me a lot!
You're one of the best teachers ever!
Please make more Machine Learning videos.
Thank you for this!
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 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?
Thanks so much for creating this tutorial. It really pulled together some concepts for me from a data science bootcamp im currently taking.
This course is mind-blowing! So organized, easy-to-understand! Thank you so much!
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 đą
You're a gifted teacher Mosh. I lost your channel on my old CZcams account, I just found your channel again. Do you have a longer machine learning tutorial covering clustering, classification, neuro networks, and logical regression?
Really love your tuts Mosh, want to tell you thank you. I have learn so much stuff with your videos this year!
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.
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
loved the tutorial. I wish you cover more ML algorithms specially NLP.
Fantastic, a single video that cleverly covers just enough to get started.
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
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.
This is the best tutorial I've ever seen. The best use of time .â€ïž
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!
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.
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
Great video. Took a machine learning course during undergrad but forgot most of it. After watching this video things came back. 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!
thank you so much Mosh! I've been going through so many tutorials but this one fitted in my mind finally!
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.
The clearest tutorial I found on YT! Thanks a lot!
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!
Great you are the best instructor and software engineer in the world you teach the best course in the world đđđđđđđđđđđââđ„đ„đ„âââ
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 are the best teacher I've ever come across. You're better than our lecturers, lecturers teach us only to pass exams.
Really enjoyed it. Thanks for your effort. Learnt Python from you and now, this too. Looking forward to much more tutorials
The way you explain is amazing! Do you have a course completely on machine learning? Thanks
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
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.
Your tutorials are really clear and informative. Thankyou Mosh!
Best tutorial to get started with machine learning
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
Mosh, amazing tutorial as always, always wanted to write a simple ML code, Thanks for your work! :)
I was dreading having to use machine learning for my upcoming project, but now it's really not as scary as I thought. Thank you for the excellent tutorial!
Feels like a lecture in a prestigious european university. Thanks Mosh.
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âŠ
Thanks, now I got an overview of what Machine learning is all about, and how we go about solving problems using algorithms. THANKS.
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.
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!
??
Please make a deep learning tutorial also please, This course helped me a lot. Please Thank you mosh you are the best guru.
Your was the best course I've taken in programming. It even solves my other problems that I had with python that even google couldn't answer me. Thanks.
thank you soo much for this tutorial, it was absolutely amazing, did not think I could make my first ML project in one night and have so much fun doing it!
Seriously this tutorial is going amazing âșïžđ
Thank you so much mosh.
@@programmingwithmosh yes đđ„°
@@programmingwithmosh can you help me with that graphiz part đ
Great!!! Kindly keep going on with ML and DL...
One of the simplest demo on ML for begininers, with tools and setup information. thanks a lot!
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.
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?
I must comment: you're organized, structured and a very very good teacher! Kudos!
This a god send, the best python tutorials out there! very clear, simple, to the point!
You can't imagine how much you helped me with this video,
thank you very much!
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.
Love the data set you took....all above 30 falling in love with classical music.
This video really helped me. You covered everything my professor tried to in his lecture and did it clearer, better and faster.
Mosh, i don't know how to say thanks to you. I have really benefitted from your tutorials so much. They include sql, react and some others. I'm from Nairobi, Kenya
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 czcams.com/video/_uQrJ0TkZlc/video.html
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!
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.
Excellent explanations, clear and detailed. 100% recommendable. Thank you so much!
Any recommendations for how to build on top of this? Add complexity, improve accuracy? Am applying this lesson to my own project
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.
Thank you Mosh for this easy-to-learn ML tutorial. Am a great fan of your work. Keep up the good work sir.
Rather than run button we can press shift+enter for output
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 :)
I've watching many videos about python, machine learn, sci-kit learn, computer languages and I think your videos are the best, highly didactical.
This is incredibly helpful. I'm doing research using these skills in the fall and while I'm STEM, I am NOT a CS major
Great Video. I built my website from following your tutorials
Great
Me too
Please a mega tutorial about this! 20hrs
Thank you so so much for this video!!!!!! You covered the theory briefly and went right into practicing, I really like it.
As usual, you're a life saver! thank you so much Mosh!!!!
Hi Mosh, Me and my friends have been watching most of your content of the python (the previous videos), we are currently leading C and C++, our professor is super fast and boring ,as it's his first class and he just completed his PhD, I request you to atleast upload C language, you explain really well and systematically, he is just jumping from loops to arrays, explaining basics for a few minutes and starts to write lengthy codes. Please upload C language related content, It will be really helpful.
Mosh, do you mind sharing your learning methods? I'm impressed on how you can learn so many different language/framework but still master them. Thank you.
Dude he already told in his website...just go through it.
codewithmosh.com/p/fundamentals
Thanks for pointing it out dude. I didn't know it exist. đ