Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Machine Learning in Python: 43 Algorithms Commonly Used
Rating: 5.0 out of 5(2 ratings)
12 students

Machine Learning in Python: 43 Algorithms Commonly Used

The algorithms most commonly used in practice — built, compared and defended in scikit-learn, XGBoost and PyTorch
Created byReal Numbers
Last updated 10/2026
English
English

What you'll learn

  • Choose the right algorithm for a problem and justify that choice to someone entitled to overrule you, using a five-question framework applied to all 43
  • Build and compare 43 machine learning algorithms in Python with scikit-learn, XGBoost, LightGBM, CatBoost and PyTorch, each from a runnable notebook
  • Ship two end-to-end projects: a governed credit risk scorecard, and a real-time card fraud system with alert queues, drift monitoring and reason codes
  • Spot the failures that quietly ruin models — leakage, miscalibration, drift, and metrics that look healthy while hiding total failure on what matters

Course content

19 sections • 111 lectures • 18h 39m total length
  • Why these 43 algorithms — and how each lecture works10:11

    The case for breadth, where the list came from, what it deliberately leaves out — and three different ways to get through it

  • Knowledge check
  • The card: five questions that index all forty-three9:56

    Five questions that index all 43 algorithms, and the five questions that take you from the list to a shortlist of two

  • Knowledge check
  • Setting up: Python, Jupyter, scikit-learn, PyTorch8:49

    A working environment in fifteen minutes — Python, a virtual environment, the seven packages, and where the course datasets live

  • Knowledge check

Requirements

  • Ability to read Python — you do not need to be fluent, and every notebook runs top to bottom unmodified
  • School-level algebra. No calculus or linear algebra background is assumed
  • A laptop that can install Python 3.10 or later. Everything runs on CPU — no GPU required anywhere
  • No prior machine learning experience; Sections 1 and 2 build the vocabulary from scratch

Description

This course contains the use of artificial intelligence.

You can already fit a model. What you cannot always do is say why that model and not one of the others — and that is the question you get asked.

This course covers the 43 algorithms most commonly used in practice, one at a time, across 19 sections and about 19 hours. Each gets a full concept lecture and a separate hands-on demo with a seeded notebook you run yourself. Every number quoted in every lecture was produced by code that ships with the course. Where a result was surprising or unflattering, it is reported as measured rather than as expected.

Every algorithm is introduced through the same five questions: what question does it answer, what does it need from you, what does it hand back, what does it cost to train and to score, and can you justify a single decision to somebody entitled to overrule you. By the end those cards stack into a comparison you can actually choose from.

The 19 sections are organised by the question being answered rather than by mathematical family, so the table of contents is itself the first filter you apply.
The nineteen sections
Orientation: how to use this course · The shared vocabulary: what every algorithm assumes · How models learn: optimisation from the ground up · Predicting a number: fit a form, or copy your neighbours · Predicting a category: the four classical classifiers · Making it stronger: ensembles and gradient boosting · Finding groups: six ways to cluster, and how they disagree · Finding the unusual: anomaly detection without labels · Fewer columns, same signal: projection and embedding · What comes next: forecasting a time series · Seeing: convolutional networks for vision · Reading and writing language: recurrence, attention and transformers · Relationships and networks: learning on graphs · Creating data: adversarial and diffusion generation · Deciding under uncertainty: reinforcement learning · Knowing what you don't know: uncertainty and causality · End-to-end demo: building a credit risk scorecard · End-to-end demo: real-time card fraud detection · Capstone: choosing, defending and shipping

Two of the sections are complete builds rather than algorithm lectures. The first is a credit risk scorecard, taken from the business problem through target definition, reject inference, weight-of-evidence binning, a logistic champion and a monotonically constrained XGBoost challenger, validation on discrimination, calibration and stability, and finally reason codes and a cut-off priced in money rather than in Gini. The second is a real-time card fraud system: the cost matrix, velocity features and label lag, an unsupervised first pass for when you have no labels at all, alert queues sized to the team who actually work them, and what it takes to keep the thing alive under drift.

Results reported as measured, not as expected

Most courses demonstrate that an algorithm works. This one runs the comparison and reports the answer even when it is inconvenient. Six of the findings you will see derived, with the code that produced them:

  • LightGBM lost on accuracy. Its native categorical handling scored 0.3902 tuned, against CatBoost's 0.4493 on the same nine columns and XGBoost's 0.4282 on 1,146 one-hot columns. LightGBM's real advantage is speed — 3.2× on the wide matrix — which is worth saying plainly rather than repeating the marketing.

  • UMAP predicted worse than PCA. Downstream Gini 0.3997 against 0.4345 at two components, despite clearly better neighbourhood preservation. Run on 3,000 rows of pure Gaussian noise, its embedding scores a silhouette of 0.3532 against 0.0123 on the raw noise: it manufactures convincing clusters from nothing.

  • Prophet lost to SARIMA by 29% on an identical 24-month walk-forward — 19,610 against 14,008 — and lost the gappy-data test it should have owned. Flagging a known shock as an event was worth 15.5% for four lines of code, which is its real strength.

  • Diffusion beat the GAN on every measure for tabular synthesis: correlation error 0.0201 against 0.1989, train-on-synthetic gap 0.0076 against 0.0385. The bill arrives in privacy — its rows sit 0.2884 from the nearest real customer where real-to-real is 0.2533, almost as close to real people as real people sit to each other. "Synthetic therefore safe" is not an argument.

  • Conformal prediction delivered every coverage level requested, including from a model with an AUC of 0.4945 — a coin flip — and still gave 0.0000 coverage for actual defaulters at a nominal 90%. The marginal guarantee was satisfied entirely by the majority class. The class-conditional fix works, and costs a 59.43% referral rate; the lecture prices it rather than hiding it.

  • Uplift modelling moved 3.3× more churn at the same budget than targeting by churn risk. The risk model's ranking correlated −0.113 with true uplift — near-orthogonal to the decision it was feeding, and flat across every budget depth.

The course is also honest about its edges. A lecture near the end names what is not here — recommender systems, survival analysis, Bayesian and probabilistic programming, speech generation, and production MLOps — and says what to read instead. Another names what has changed since these methods were established, including where a newer method has displaced one taught earlier in the course.

What ships with it

Forty-three notebooks, each seeded and runnable top to bottom without modification, plus the generator for every dataset they use. The data is synthetic by necessity — the domains are lending, cards and collections — but each set is tuned until it genuinely teaches the lesson, and the generator ships with it so you can see exactly what was planted and change it. Nothing depends on a paid API, a GPU, or a dataset that might disappear.

There are three sensible routes through it. Straight through in order, which is about 19 hours. The 43 hands-on demos only, roughly five hours, which makes a good refresher. Or as a reference: nothing assumes you watched the previous lecture, and every notebook stands alone.

What you'll master

• The full working toolkit. Linear and logistic regression, decision trees, KNN, naive Bayes, SVMs, random forests, AdaBoost, gradient boosting, XGBoost, LightGBM and CatBoost — in code, on real data.

• Unsupervised methods that behave differently. Six clustering algorithms, isolation forests for anomaly detection, and PCA, ICA and UMAP for structure.

• Deep learning as a practitioner meets it. CNNs, ResNet, EfficientNet, MobileNet, RNNs, LSTMs, transformers, BERT, graph neural networks, GANs and diffusion models.

• Forecasting and decisions. ARIMA, Prophet, hidden Markov models, and reinforcement learning from a readable Q-table through to PPO.

• The two things most courses skip. Conformal prediction for honest uncertainty, and causal inference with uplift modelling for when your model's output triggers an action.

• Two portfolio projects. A governed credit risk scorecard and a real-time card fraud system, both built the way a regulated business builds them.

Who this course is for

• Analysts and developers who can code but keep reaching for the same three algorithms.

• Data scientists preparing for interviews, where the question is 'why this model', not 'can you fit one'.

• Anyone in a regulated industry who needs models that survive a review, not just a validation set.

• People who finished an introductory course that covered five algorithms and called it machine learning.

Requirements: you can read Python — you do not need to be fluent — plus school-level algebra and a laptop that runs Python 3.10. No calculus, no linear algebra background, no GPU, and no prior machine learning.

By the end you will be able to look at a problem, name the two or three algorithms worth trying, compare them honestly, and defend the one you pick. Enrol now and start with the algorithm you were going to use anyway — then find out what you should have used instead.

Who this course is for:

  • Analysts, developers and data scientists who can already fit a model and want to know which model to fit, and why
  • Practitioners in banking, insurance and other regulated industries who must defend a model to someone who can overrule them