Skip to content
Learning path · AI / machine learning

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” →
Start step 1 for free 3 steps · A trained prediction model in a notebook on GitHub Last reviewed

Steps in order

  1. 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] Udemy · 9 lessons Open course → Also useful for this step ↗
  2. 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 Beginner Open course → Also useful for this step ↗
  3. 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 Udemy · 18 lessons Open course →

Good free resources elsewhere

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

  1. A public dataset with a clear question, for example predicting house prices or whether a customer will leave.
  2. A train/test split and at least two models compared on the same metric.
  3. One chart that shows how well the best model does.
  4. 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.

Course Recommendations