AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Calculus and optimisation: how a model finds its best answer

Slopes, derivatives, minimum points, gradient descent, the chain rule and price optimisation, learned by running small experiments instead of memorising rules.

Training a model means one thing: find the numbers that make the mistakes as small as possible. The tool that finds them is calculus. It tells you which way is downhill, and gradient descent follows it step by step. The same idea sets the price of a meal, plans a delivery route and trains a neural network with a billion weights.

You do not need school calculus, and no proofs. A derivative here is just "how fast does the answer change when I nudge the input?", and we measure it by nudging the input in Python. You need Python basics and NumPy; the linear algebra course helps in lessons 5 and 8.

  • Learn lessons build one idea at a time, with exercises you can repeat.
  • Industry ready lessons use real files (a meal-delivery price test, loan defaults) and end with the interview questions that go with them.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 20 min Free sample πŸ”’ AiTeky Pass Slopes: how fast is something changing? Measure the speed of a changing quantity as a slope over a shorter and shorter step, and meet the derivative as the slope at one exact moment.
  2. 02 25 min πŸ”’ AiTeky Pass Derivative rules: slopes without the nudging Learn the few rules that give a derivative directly (powers, sums, constants and the chain rule) and check each one against the nudging method.
  3. 03 25 min πŸ”’ AiTeky Pass Finding the lowest point of a curve Use the slope to find where a cost is lowest, by scanning, by setting the derivative to zero and with SciPy, and tell a minimum from a maximum.
  4. 04 25 min πŸ”’ AiTeky Pass Gradient descent: walking downhill in small steps Find the lowest point by repeating one move, step against the slope, and see what a too-small, a good and a too-big learning rate do.
  5. 05 30 min πŸ”’ AiTeky Pass Training a regression with gradient descent Use partial derivatives to train a line on real chai sales with gradient descent, see why unscaled data blows up, and match the answer from the formula.
  6. 07 30 min πŸ”’ AiTeky Pass The chain rule at work: backpropagation by hand Follow one neuron's error back through its steps with the chain rule, check the answer by nudging, and train it with gradient descent.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 06 40 min πŸ”’ AiTeky Pass On the job: what price should the lunch box sell at? Learn how orders react to price from a real price test, write profit as a curve, find its top with a derivative and SciPy, and say how sure you are before changing the price.
  2. 08 40 min πŸ”’ AiTeky Pass On the job: train a loan-default model from scratch Build logistic regression with log loss and gradient descent in plain NumPy, match scikit-learn, read the weights, test on unseen loans, choose the cut-off for a bank, and answer the interview questions.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in