Skip to content
A.B. Labs

AI / Machine Learning

Python for AI & Machine Learning

Learn Python, data analysis, statistics and core machine learning with real datasets — then take a model out of the notebook and serve it as an API.

Overview

Machine learning starts with solid programming and a clear understanding of data. This course builds both: you will learn Python from the ground up, then use it to clean, explore and visualize data before training, tuning and evaluating machine learning models.

The emphasis is on judgment rather than recipes. You will learn enough statistics to know when a result is real, how to tell a leaking pipeline from a good one, which metric actually matches the problem, and how to explain a model's predictions to someone who did not build it. The course ends where most beginner courses stop: taking a trained model out of a notebook, tracking the experiments that produced it, and serving it behind an API that other software can call.

Who it's for

  • Beginners interested in data science, machine learning and AI
  • Developers moving into Python and machine learning
  • Analysts who want to go beyond spreadsheets and dashboards
  • Anyone planning to continue into the Applied AI & LLM Engineering course

Before you start

  • No prior programming experience required
  • Comfort with school-level mathematics
  • A computer that can run Python and Jupyter
  • Curiosity about data, and patience with it being messy

Outcomes

What you'll learn.

  1. 01

    Write clear, idiomatic, typed Python and structure it into reusable modules

  2. 02

    Work reproducibly with virtual environments, Git and version-controlled notebooks

  3. 03

    Load, clean, reshape and join real data with pandas

  4. 04

    Compute efficiently with NumPy and understand vectorization

  5. 05

    Visualize data to find patterns and to communicate findings to non-specialists

  6. 06

    Apply the statistics that machine learning depends on, including sampling and significance

  7. 07

    Engineer features and build leak-free preprocessing pipelines

  8. 08

    Train, tune and compare regression, classification and clustering models

  9. 09

    Choose evaluation metrics that match the problem, including for imbalanced data

  10. 10

    Explain model behaviour with feature importance and SHAP

  11. 11

    Track experiments so results are reproducible months later

  12. 12

    Serve a trained model behind a FastAPI endpoint

  13. 13

    Recognize where machine learning is the wrong tool

Curriculum

Module by module.

  1. Module 01Python Fundamentals
    • Syntax, variables, data types and operators
    • Control flow, loops and functions
    • Lists, dictionaries, sets, tuples and comprehensions
    • Strings, formatting and working with text
    • Working in Jupyter notebooks and in the terminal
  2. Module 02Writing Better Python
    • Modules, packages and project structure
    • Object-oriented programming: classes, dataclasses and composition
    • Type hints, and checking them with mypy
    • Error handling, logging and debugging
    • Reading and writing files, CSV, JSON and Parquet
    • Iterators, generators and decorators
  3. Module 03The Data Engineering Workflow
    • Virtual environments and dependency pinning
    • Git and GitHub for data work
    • Notebooks versus scripts, and when to graduate from one to the other
    • Reproducibility: seeds, environments and data versioning
    • Reading data from files, APIs and SQL databases
    • Testing data code with pytest
  4. Module 04Numerical Computing with NumPy
    • Arrays, dtypes and memory layout
    • Vectorized operations and why loops are slow
    • Indexing, slicing, masking and broadcasting
    • Linear algebra essentials for machine learning
    • Random numbers, sampling and simulation
  5. Module 05Data Analysis with pandas
    • Series, DataFrames and indexing
    • Loading messy, real-world data
    • Grouping, aggregating, pivoting and reshaping
    • Joining and merging datasets correctly
    • Time series, dates and resampling
    • Categorical data and memory-efficient types
  6. Module 06Cleaning & Preparing Data
    • Missing data: mechanisms, imputation and when to drop
    • Outliers, duplicates and inconsistent categories
    • Scaling, encoding and transformations
    • Feature engineering from dates, text and geography
    • Splitting data properly — and the many ways leakage sneaks in
    • Building preprocessing pipelines with ColumnTransformer
  7. Module 07Visualization & Exploratory Analysis
    • Plotting with Matplotlib and seaborn
    • Choosing the right chart for the question
    • Distributions, correlations, outliers and relationships
    • Small multiples and comparative views
    • Honest charts: axes, scales and misleading design
    • Turning an analysis into a clear written narrative
  8. Module 08Statistics for Machine Learning
    • Descriptive statistics and distributions
    • Probability, conditional probability and Bayes' rule
    • Sampling, the central limit theorem and confidence intervals
    • Hypothesis testing and p-values, and how they are misused
    • Correlation, causation and confounding
    • A/B testing fundamentals
  9. Module 09Machine Learning Foundations
    • Supervised, unsupervised and reinforcement learning
    • How a model learns: loss functions and gradient descent, intuitively
    • Train, validation and test splits, and cross-validation
    • Overfitting, underfitting and the bias–variance trade-off
    • Regularization and why simpler models often win
    • Baselines: the model you must beat before anything else
  10. Module 10Supervised Learning in Depth
    • Linear and logistic regression, and reading their coefficients
    • k-nearest neighbours and support vector machines
    • Decision trees, random forests and gradient boosting
    • XGBoost and LightGBM on tabular data
    • Hyperparameter search: grid, random and Bayesian
    • Class imbalance: resampling, class weights and threshold tuning
  11. Module 11Unsupervised Learning
    • k-means, hierarchical and density-based clustering
    • Choosing and validating the number of clusters
    • Dimensionality reduction with PCA
    • t-SNE and UMAP for visualization
    • Anomaly detection
    • Recommender system fundamentals
  12. Module 12Evaluation & Interpretability
    • Metrics that match the problem: RMSE, MAE, precision, recall, F1, ROC-AUC, PR-AUC
    • Confusion matrices, calibration and decision thresholds
    • Error analysis: looking at what the model gets wrong
    • Feature importance, permutation importance and SHAP
    • Fairness, bias and dataset representativeness
    • Communicating model limitations honestly
  13. Module 13An Introduction to Deep Learning
    • Neural networks from first principles
    • Training loops, optimizers and learning rates
    • When deep learning beats gradient boosting — and when it does not
    • Transfer learning on images and text
    • A first model in PyTorch
    • Where to continue: the Applied AI & LLM Engineering course
  14. Module 14From Notebook to Production
    • Structuring a machine learning project as a repository
    • Experiment tracking with MLflow
    • Saving, versioning and loading models safely
    • Serving predictions with FastAPI
    • Batch versus real-time inference
    • Monitoring, data drift and knowing when to retrain
    • Containerizing a model service with Docker
  15. Module 15Capstone & Career
    • Framing a real problem as a machine learning task — or deciding it is not one
    • Sourcing data, and being honest about its limits
    • Building, evaluating and iterating with review at each stage
    • Writing the project up as a technical report
    • A portfolio and GitHub profile for data roles
    • Data and ML interviews: SQL, statistics and case questions

Projects

What you'll build.

  1. 01

    An exploratory analysis of a public dataset, written up for a non-technical reader

  2. 02

    A regression model for a real pricing or demand problem, with an honest error analysis

  3. 03

    A classification project on imbalanced data, with a defended choice of metric

  4. 04

    A capstone: an end-to-end project from raw data to a deployed prediction API

We build this too

Machine learning models, LLM-powered applications and intelligent automation — designed around your data, evaluated rigorously and deployed into real products.

Keep learning

  • AI / Machine Learning

    Upcoming

    Applied AI & LLM Engineering

    Design, build, evaluate and ship applications powered by large language models — prompting, RAG, agents, fine-tuning, evaluation, safety and deployment.

    Level
    Intermediate to Advanced
    Duration
    12 Weeks
    • Python
    • FastAPI
    • LLMs
    • RAG
    • Vector databases
  • App Development

    Upcoming

    Modern App Development with Flutter

    Build and ship cross-platform mobile apps with Flutter and Dart — from your first widget to a tested, release-ready app on both stores.

    Level
    Beginner to Intermediate
    Duration
    14 Weeks
    • Flutter
    • Dart
    • BLoC
    • Firebase
    • Riverpod

FAQ

Course questions.

Who are the courses for?

Most courses start from the fundamentals and suit motivated beginners. More advanced courses list their prerequisites clearly on the course page, so you can choose the right starting point.

How are the courses taught?

Every course is project-based: you learn a concept, then apply it by building something real. Schedules, delivery format and fees are announced with each cohort — register your interest and we will share the details once they are confirmed.

Do I need prior experience?

Not for beginner-level courses. Each course page lists its level and prerequisites. If you are unsure which course fits, contact us and we will help you decide.

Will I build real projects?

Yes — projects are the core of every course. Each course page lists the projects you will build, ending with a capstone that brings everything together.

Do you offer training for teams?

If you are interested in training for a team or organization, get in touch and choose “Training”. Tell us about your team, its current skills and what you want to achieve.

Not sure where to start?

Let's find the right course.

Tell us about your background and goals, and we'll help you choose a starting point.