Course description

If you can already use Python and pandas and you want to start building machine learning models, this course takes you from your first fitted line to a complete, carefully checked project, one clear step at a time.

You learn the workflow that every good model follows: prepare the data with pandas, keep some back for a fair check, train a model with scikit-learn, measure it properly and improve it without fooling yourself. You build linear regression, logistic regression, decision tree, k-nearest neighbours and random forest models, measure them with accuracy, precision, recall, the confusion matrix and regression errors, and use cross-validation, grid searches and pipelines to choose settings fairly. You also group data with k-means clustering, and you learn to check a model for bias, handle personal data with care and explain your results to people who aren't data specialists.

There are 10 sections and 50 written lessons, each with real code and its real output, a worked example, common slips, questions people often ask and a short exercise to try, and each section ends with a short quiz. You follow Tsegaye, a data analyst at a fictional leisure trust, as he predicts pool visitors and helps the membership manager decide which members to offer a friendly check-in call. Every section has a practice pack with made-up data files, starter scripts, finished solution scripts, expected output, a worksheet with an answer key and a cheat sheet. The final project gives you a new dataset, a brief, a full worked answer script and a sample write-up.


What you'll learn

  • Getting started with machine learning: what machine learning is and isn't, the words you'll meet, setting up Python, pandas, scikit-learn and Jupyter, the workflow, and a first model in a few lines.
  • Preparing data with pandas: exploring a new dataset, missing values, turning categories into numbers, making new features, and clean features and labels.
  • Splitting data and keeping some back: why a model must be judged on data it hasn't seen, making a hold-out set, fair splits for time and for uneven classes, leakage, and baselines.
  • Linear regression: how a fitted line works, fitting and reading one, several features, regression error measures, and where a straight line goes wrong.
  • Classification models: probabilities and classes, logistic regression, decision trees, k-nearest neighbours and a fair comparison of all three.
  • Evaluating models: accuracy and its limits, the confusion matrix, precision and recall, thresholds and the F1 score, and choosing the right measure for the job.
  • Overfitting and cross-validation: overfitting and underfitting, validation sets, cross-validation, tuning settings with a grid search, and keeping the hold-out set untouched.
  • Pipelines, preprocessing and random forests: pipelines that keep preparation fair, filling gaps and encoding text columns, random forests, feature importance and saving a model.
  • Clustering and responsible machine learning: k-means clustering and choosing the number of groups, checking a model for bias, handling personal data with care, and explaining results in plain words.
  • Final project: the Oddbarrow Veg Boxes model: a complete project on a new made-up dataset, from brief and first look to a final check and a write-up for the owner, with full worked answers.


Who it's for

Python learners and analysts who are comfortable with Python basics and with loading, cleaning and summarising data in pandas, and who want to take the next step into machine learning. No maths beyond everyday arithmetic is needed. If you're new to pandas, Python for Data Analysis: Clean, Analyse and Chart Real Data with pandas is the place to start, and if you're new to Python itself, begin with Python for Beginners: Write Real Programs from Scratch.


What this course is, and isn't

This is a practical introduction to machine learning with Python, pandas, NumPy, scikit-learn and matplotlib, using small, made-up datasets so you can see exactly what each model does. It isn't a course on deep learning or on building large language models, and it isn't legal advice about using personal data. Every code sample was run with the library versions named in Lesson 1.3. Tsegaye and every other person and organisation in the course are fictional.

What will I learn?

  • Explain what machine learning is and isn't, and follow the workflow from question to checked model
  • Prepare data with pandas: fill gaps, encode categories, make new features and keep features and labels apart
  • Keep a hold-out set back, choose a fair split, spot leakage and compare every model with a baseline
  • Build and read linear regression models, and measure them with mean absolute error, root mean squared error and R squared
  • Build logistic regression, decision tree and k-nearest neighbours classifiers and compare them fairly
  • Measure classifiers with accuracy, the confusion matrix, precision, recall and F1, and choose a threshold for the job
  • Spot overfitting, use cross-validation and grid searches to choose settings, and check the final choice once
  • Build scikit-learn pipelines with preprocessing for mixed columns, use random forests and explain feature importance
  • Group data with k-means clustering, and check models for bias, protect personal data and explain results in plain words
  • Complete a full machine learning project on a new dataset, from brief to write-up, and check it against worked answers

Requirements

  • You should know basic Python and be comfortable loading, cleaning and summarising data with pandas (Python for Data Analysis: Clean, Analyse and Chart Real Data with pandas covers this)
  • A computer where you can install Python 3 and free packages: pandas, NumPy, scikit-learn and matplotlib, with Jupyter if you like
  • No paid software and no advanced maths are needed; everyday arithmetic is enough

Frequently asked questions

It's for Python learners and analysts who can already use pandas and want to start building machine learning models. If you're new to pandas, start with Python for Data Analysis: Clean, Analyse and Chart Real Data with pandas.

Python 3 with the free pandas, NumPy, scikit-learn and matplotlib packages, and Jupyter if you'd like to use notebooks. Lesson 1.3 shows how to install them in a virtual environment and how to check your versions.

No. The course explains each model in plain words with small worked examples, and scikit-learn does the calculations. Everyday arithmetic is enough.

Yes. Every section has a practice pack with made-up data files, starter scripts with TODOs, finished solution scripts, the expected output, a worksheet with an answer key and a cheat sheet. The final project adds a brief, a full worked answer script and a sample write-up.

No. Every lesson is written, with real code and its real output, a worked example, common slips, questions people often ask and a short exercise. Each section ends with a short quiz.

No. It covers the core of machine learning with scikit-learn: regression, classification, clustering, fair evaluation, pipelines and responsible use. These ideas are the foundation for everything else.

You get lifetime access, including any lessons we add later.

Yes. You can ask for a refund within 14 days of buying if you've completed less than 30% of the course. Email support@rootlet.co.uk.
Machine Learning for Beginners: Build Your First Models with Python

£34.99

Lectures

60

Quizzes

10

Skill level

Beginner

Expiry period

Lifetime

Certificate

Yes

✓ 14-day money-back guarantee if you have completed less than 30% of the course. Refund policy

✓ Secure card payment by Stripe

✓ Questions before you buy? support@rootlet.co.uk

Sold by Rootlet Academy Ltd, a UK company (no. 17529179).

Share this course

Related courses

Learn something new every week

One short, practical tip each Thursday, plus news when new courses open. Free, and you can unsubscribe in one click.

We'll never share your email. See our privacy policy.