Machine Learning Engineering · Module 07
Classical ML: regression and classification
- Lessons
- 12
- Free
- 1
- Reading
- ~3 h
Your progress
0 / 12 lessons done
Sign in to trackLessons
- Linear regression from scratchFreeA straight line is the first model to try on any number you need to predict, and often the one that ships. It fits in a second, its weights read as rupees, and its residuals tell you exactly where it is wrong, if you look at them.
- Logistic regression: predicting probabilitiesLogistic regression is the first model most teams ship for a yes-or-no question, and often the one they keep. Reading its weights, scaling its inputs and trusting its chances is what lets you explain a ranked list to the people who spend money on it.
- k-nearest neighbours: learning from similar examplesk-nearest neighbours is the simplest model to explain to a business owner: “these 200 past customers looked like this one, and a third of them left.” It is also the first model where all the cost moves from training to prediction, which decides whether it can serve real traffic.
- Support vector machines: maximum-margin boundariesSVMs still appear in older pipelines, in small-data projects and as the default inside some library tools. Knowing what they optimize, what they cost to train and why they give no chances tells you when to keep one and when to replace it.
- Decision trees: learning rules by splitting dataDecision trees are the building block of random forests and gradient boosting, the models most teams ship for table data. Knowing how one tree picks its questions and when it stops is what lets you tune those models and explain their answers.
- Random forests: many trees voting togetherA random forest is often the first strong model a team tries on tabular data, because it works with almost no tuning. Knowing why it works tells you when more trees won’t help, which importance chart to trust, and what the model costs to store and score.
- Gradient boosting: XGBoost, LightGBM and CatBoostGradient-boosted trees are the model most teams reach for once a table of customer or order features has a baseline to beat. Setting the learning rate, the number of trees and the validation set well is most of the work of using them.
- Imbalanced classes: when positives are rareMost things worth predicting are rare: fraud, failures, a customer who buys after an email. A model for them can look nearly perfect on paper while catching nothing, and the fixes people reach for first often break the chances that the business decision depends on.
- Multi-class and multi-label problemsMost real classifiers have more than two answers: the category of a product, the topic of a ticket, the tags on a photo. Getting the output shape, the averaging and the cut for each label right decides whether the small classes work at all.
- Choosing a model for tabular dataMost models in a company are trained on tables: customers, orders, payments. Picking the model family well, and quickly, saves weeks of tuning the wrong one and gives you a result you can defend to the people who use it.
- Case: ShareChat’s trees versus neural rankersSooner or later someone on your team reads that a big company moved from boosted trees to a neural network and asks whether you should too. This case shows how to read such a result: what was compared, on how much data, at what cost, and what was never measured.
- Design: a churn prediction model for an online storeMost churn models fail before training starts: a label with no date, features that peek past it, or a split that mixes months. Getting those right, then choosing the list size from money, is most of what makes a churn model worth its vouchers.
Practise with
No tools or paper guides for this module yet.