Get started with AI and machine learning in Python
Learn machine learning for free: understand the core ideas, train your first models with Python and scikit-learn, then build a prediction project and explore LLMs.
- For you if
- You can write Python and have used Pandas a little. You want to understand how machine learning works and train your own models.
- Not for you if
- You have not used Pandas yet. Do the data analysis path first; most ML work is preparing data. Start with “Know Python basics? Start data analysis here” →
Steps in order
-
Free 9 lessons
Understand the core ideas of machine learning
What a model is, training versus testing, overfitting, and the difference between regression and classification. Short and concept-first.
Machine Learning Fundamentals [Python] Open course → Also useful for this step ↗ -
Free Video playlist
Train your first models with Python
A beginner playlist that builds linear regression, logistic regression, decision trees and more with scikit-learn, one model per video. Code along with each one.
Machine Learning Tutorial Python | Machine Learning For Beginners Open course → Also useful for this step ↗ -
Project About a week
Build a prediction project and explain your model
Follow the projects course, then make one of your own: pick a public dataset, train two models, compare their accuracy, and write in plain words which one you'd trust and why.
Python Machine Learning Projects for Beginners Open course →
Good free resources elsewhere
- Free course Google Machine Learning Crash Course (opens in a new tab) Google's course on regression, classification, data preparation and neural networks, with interactive exercises.
- Docs scikit-learn docs scikit-learn: Getting started (opens in a new tab) Fit, predict, pipelines and cross-validation in one page. The library you'll use most.
- Free course fast.ai Practical Deep Learning for Coders (opens in a new tab) Free, hands-on deep learning: 9 lessons of about 90 minutes each. The natural next step.
- Free course Hugging Face Hugging Face LLM Course (opens in a new tab) Free and ad-free course on large language models and the Transformers library.
How this path works
Machine learning means teaching a computer to make predictions from examples instead of hand-written rules. This path starts with the ideas, then has you train real models in Python, and ends with a project where you compare models and explain your choice, which is what ML work actually looks like.
Plan for about 4–6 weeks at 4–6 hours a week.
Before you start
You should be comfortable with Python and have loaded a CSV with Pandas. If not, do the data analysis path first. Use Google Colab so you don’t have to install anything; scikit-learn is already available there.
Tips that make the difference
- Always keep test data aside. A model that scores 100% on the data it trained on has learned nothing useful.
- Start simple. A linear or logistic regression baseline tells you whether a fancier model is worth it.
- Look at your data first. Most mistakes come from missing values, leaks and wrong data types, not from the algorithm.
- Write down why. Explaining your model in plain words is the skill that gets you hired.
Your project checklist
- A public dataset with a clear question, for example predicting house prices or whether a customer will leave.
- A train/test split and at least two models compared on the same metric.
- One chart that shows how well the best model does.
- A README that says, in plain words, which model you’d trust, why, and where it fails.
Frequently asked questions
How much maths do I need?
To start, very little: libraries like scikit-learn handle the maths. Linear algebra and statistics become useful as you go deeper.
What’s the difference between AI, machine learning and LLMs?
AI is the broad field. Machine learning is the part where computers learn patterns from data. Large language models, like the ones behind chatbots, are a kind of machine learning model trained on huge amounts of text.
What comes next?
Deep learning with fast.ai, then working with LLMs through the Hugging Face course. Browse our free machine learning courses too.
